dat.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * This file is part of the UCB release of Plan 9. It is subject to the license
  3. * terms in the LICENSE file found in the top-level directory of this
  4. * distribution and at http://akaros.cs.berkeley.edu/files/Plan9License. No
  5. * part of the UCB release of Plan 9, including this file, may be copied,
  6. * modified, propagated, or distributed except according to the terms contained
  7. * in the LICENSE file.
  8. */
  9. /* choline's configuration: 16K blocks, 32-bit sizes */
  10. /*
  11. * The most fundamental constant.
  12. * The code will not compile with RBUFSIZE made a variable;
  13. * for one thing, RBUFSIZE determines FEPERBUF, which determines
  14. * the number of elements in a free-list-block array.
  15. */
  16. #ifndef RBUFSIZE
  17. #define RBUFSIZE (16*1024) /* raw buffer size */
  18. #endif
  19. #include "32bit.h"
  20. /*
  21. * setting this to zero permits the use of discs of different sizes, but
  22. * can make jukeinit() quite slow while the robotics work through each disc
  23. * twice (once per side).
  24. */
  25. enum { FIXEDSIZE = 1 };
  26. #include "portdat.h"
  27. enum { MAXBANK = 2 };
  28. typedef struct Mbank {
  29. uint32_t base;
  30. uint32_t limit;
  31. } Mbank;
  32. typedef struct Mconf {
  33. Lock;
  34. Mbank bank[MAXBANK];
  35. int nbank;
  36. ulong memsize;
  37. } Mconf;
  38. extern Mconf mconf;