dat.h 612 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * The most fundamental constant.
  3. * The code will not compile with RBUFSIZE made a variable;
  4. * for one thing, RBUFSIZE determines FEPERBUF, which determines
  5. * the number of elements in a free-list-block array.
  6. */
  7. #define RBUFSIZE (16*1024) /* raw buffer size */
  8. #include "../port/portdat.h"
  9. extern Mach mach0;
  10. typedef struct Segdesc Segdesc;
  11. struct Segdesc
  12. {
  13. ulong d0;
  14. ulong d1;
  15. };
  16. typedef struct Mbank {
  17. ulong base;
  18. ulong limit;
  19. } Mbank;
  20. #define MAXBANK 8
  21. typedef struct Mconf {
  22. Lock;
  23. Mbank bank[MAXBANK];
  24. int nbank;
  25. ulong topofmem;
  26. } Mconf;
  27. extern Mconf mconf;
  28. extern char nvrfile[128];