--- xinu/h/xebec.h 2018/04/24 17:39:02 1.1.1.1 +++ xinu/h/xebec.h 2018/04/24 17:39:15 1.1.1.2 @@ -2,15 +2,22 @@ /* Xebec S1410 5.25 inch Winchester Disk Controller */ +/*============================================================================= + * The following is structure of the Xebec disk controller registers. + * You may notice that every other byte has been swapped. This is due + * to the way the 68000 does byte transfers. See the User's Manual for + * details. + *============================================================================= + */ struct xbdcb { /* Xebec disk controller regs. */ - char xop; /* command class/opcode */ char xunit; /* unit/high-order address bits */ - char xmaddr; /* middle-order address bits */ + char xop; /* command class/opcode */ char xladdr; /* low-order address bits */ - char xcount; /* block count */ + char xmaddr; /* middle-order address bits */ char xcntl; /* control field */ - char xres1; /* reserved field #1 */ + char xcount; /* block count */ char xres2; /* reserved field #2 */ + char xres1; /* reserved field #1 */ }; /* Xebec controller operation codes */