aoe.h (1048B)
1 enum { 2 ACata, 3 ACconfig, 4 }; 5 6 enum { 7 AQCread, 8 AQCtest, 9 AQCprefix, 10 AQCset, 11 AQCfset, 12 }; 13 14 enum { 15 AEcmd = 1, 16 AEarg, 17 AEdev, 18 AEcfg, 19 AEver, 20 }; 21 22 enum { 23 Aoetype = 0x88a2, 24 Aoesectsz = 512, 25 Szaoeata = 24+12, 26 Szaoeqc = 24+8, 27 Aoever = 1, 28 29 AFerr = 1<<2, 30 AFrsp = 1<<3, 31 32 AAFwrite= 1, 33 AAFext = 1<<6, 34 }; 35 36 typedef struct { 37 uchar dst[Eaddrlen]; 38 uchar src[Eaddrlen]; 39 uchar type[2]; 40 uchar verflag; 41 uchar error; 42 uchar major[2]; 43 uchar minor; 44 uchar cmd; 45 uchar tag[4]; 46 } Aoehdr; 47 48 typedef struct { 49 uchar dst[Eaddrlen]; 50 uchar src[Eaddrlen]; 51 uchar type[2]; 52 uchar verflag; 53 uchar error; 54 uchar major[2]; 55 uchar minor; 56 uchar cmd; 57 uchar tag[4]; 58 uchar aflag; 59 uchar errfeat; 60 uchar scnt; 61 uchar cmdstat; 62 uchar lba[6]; 63 uchar res[2]; 64 } Aoeata; 65 66 typedef struct { 67 uchar dst[Eaddrlen]; 68 uchar src[Eaddrlen]; 69 uchar type[2]; 70 uchar verflag; 71 uchar error; 72 uchar major[2]; 73 uchar minor; 74 uchar cmd; 75 uchar tag[4]; 76 uchar bufcnt[2]; 77 uchar fwver[2]; 78 uchar scnt; 79 uchar verccmd; 80 uchar cslen[2]; 81 } Aoeqc; 82 83 extern char Echange[]; 84 extern char Enotup[];