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