dat.h 794 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* 9net32.16k's configuration: 16K blocks, 32-bit sizes */
  2. /*
  3. * The most fundamental constant.
  4. * The code will not compile with RBUFSIZE made a variable;
  5. * for one thing, RBUFSIZE determines FEPERBUF, which determines
  6. * the number of elements in a free-list-block array.
  7. */
  8. #ifndef RBUFSIZE
  9. #define RBUFSIZE (16*1024) /* raw buffer size */
  10. #endif
  11. #include "32bit.h"
  12. /*
  13. * setting this to zero permits the use of discs of different sizes, but
  14. * can make jukeinit() quite slow while the robotics work through each disc
  15. * twice (once per side).
  16. */
  17. enum { FIXEDSIZE = 1 };
  18. #include "portdat.h"
  19. enum { MAXBANK = 2 };
  20. typedef struct Mbank {
  21. ulong base;
  22. ulong limit;
  23. } Mbank;
  24. typedef struct Mconf {
  25. Lock;
  26. Mbank bank[MAXBANK];
  27. int nbank;
  28. ulong memsize;
  29. } Mconf;
  30. extern Mconf mconf;