1 #ifndef_CONFIG_H 2 #define_CONFIG_H 3
4 /* #define LASU_HD */ 5 #defineLINUS_HD 6
7 /* 8 * Amount of ram memory (in bytes, 640k-1M not discounted). Currently 8Mb. 9 * Don't make this bigger without making sure that there are enough page 10 * directory entries (boot/head.s) 11 */ 12 #ifdefined(LINUS_HD)
13 #defineHIGH_MEMORY (0x800000)
14 #elifdefined(LASU_HD)
15 #defineHIGH_MEMORY (0x400000)
16 #else 17 #error "must define hd"
18 #endif 19
20 /* End of buffer memory. Must be 0xA0000, or > 0x100000, 4096-byte aligned */ 21 #if (HIGH_MEMORY>=0x600000)
22 #defineBUFFER_END 0x200000
23 #else 24 #defineBUFFER_END 0xA0000
25 #endif 26
27 /* Root device at bootup. */ 28 #ifdefined(LINUS_HD)
29 #defineROOT_DEV 0x306
30 #elifdefined(LASU_HD)
31 #defineROOT_DEV 0x302
32 #else 33 #error "must define HD"
34 #endif 35
36 /* 37 * HD type. If 2, put 2 structures with a comma. If just 1, put 38 * only 1 struct. The structs are { HEAD, SECTOR, TRACKS, WPCOM, LZONE, CTL } 39 * 40 * NOTE. CTL is supposed to be 0 for drives with less than 8 heads, and 41 * 8 if heads >= 8. Don't know why, and I haven't tested it on a drive with 42 * more than 8 heads, but that is what the bios-listings seem to imply. I 43 * just love not having a manual. 44 */ 45 #ifdefined(LASU_HD)
46 #defineHD_TYPE{ 7,35,915,65536,920,0 } 47 #elifdefined(LINUS_HD)
48 #defineHD_TYPE{ 5,17,980,300,980,0 },{ 5,17,980,300,980,0 } 49 #else 50 #error "must define a hard-disk type"
51 #endif 52
53 #endif