/* * vboot - a standalone booter for * Godbout's 68000 board * & Duals SIO4 addressed at 0x20 * & Morrow's DJDMA * & Morrow's HDDMA */ #define K68 /* 68000 chip */ #ifdef K68 #define lobyte(a) ((long) (a) >> 0) #define midbyte(a) ((long) (a) >> 8) #define hibyte(a) ((long) (a) >> 16) #endif #define YES 1 #define NO 0 #define CHANNEL 0x50 #define BUSY 0 #define ACTIVE 0 /* * format of sector 0 on Morrow disks */ struct block0 { short ncyl, /* cylinders per volume */ nhead, /* number of heads per drive */ nsect, /* sectors per track */ norigin, /* first sector's number */ interleave, /* 1 is the default */ /* sector interleave */ bps, /* bytes per sector */ delay, /* step delay, settle delay in mS */ precomp, /* first cylinder of write precompensation */ lowcurrent, /* first cylinder of low current */ bootcyl, /* cylinder where the boot image starts */ boothead, /* head where the boot image starts */ bootsect, /* sector where the boot image starts */ bootcount, /* number of sectors in the boot image */ parkcyl; /* parking for shipping */ char extra [1000]; };