aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aacraid/aacraid.h
diff options
context:
space:
mode:
authorMark Haverkamp <markh@osdl.org>2005-04-27 09:05:51 -0400
committerJames Bottomley <jejb@mulgrave.(none)>2005-05-20 13:53:38 -0400
commit56b5871223f66d4a34e6e1069f241077e9f0a154 (patch)
tree8a259fd9d1544dd6d8b3a607b8589ffd2f935693 /drivers/scsi/aacraid/aacraid.h
parent1c2fb3f38e250dd3b88612435869acf92b4f51e2 (diff)
[SCSI] aacraid: remove sparse warnings
This patch addresses the sparse -Wbitwise warnings that Christoph wanted me to eliminate. This mostly consisted of making data structure elements of hardware associated structures the __le* equivalent. Although there were a couple places where there was mixing of cpu and le variable math. These changes have been tested on both an x86 and ppc machine running bonnie++. The usage of the LE32_ALL_ONES macro has been eliminated. Signed-off-by: Mark Haverkamp <markh@osdl.org> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aacraid/aacraid.h')
-rw-r--r--drivers/scsi/aacraid/aacraid.h397
1 files changed, 222 insertions, 175 deletions
diff --git a/drivers/scsi/aacraid/aacraid.h b/drivers/scsi/aacraid/aacraid.h
index 3f89ee995130..a250a6f359b1 100644
--- a/drivers/scsi/aacraid/aacraid.h
+++ b/drivers/scsi/aacraid/aacraid.h
@@ -89,11 +89,21 @@ struct diskparm
89 * on 64 bit systems not all cards support the 64 bit version 89 * on 64 bit systems not all cards support the 64 bit version
90 */ 90 */
91struct sgentry { 91struct sgentry {
92 __le32 addr; /* 32-bit address. */
93 __le32 count; /* Length. */
94};
95
96struct user_sgentry {
92 u32 addr; /* 32-bit address. */ 97 u32 addr; /* 32-bit address. */
93 u32 count; /* Length. */ 98 u32 count; /* Length. */
94}; 99};
95 100
96struct sgentry64 { 101struct sgentry64 {
102 __le32 addr[2]; /* 64-bit addr. 2 pieces for data alignment */
103 __le32 count; /* Length. */
104};
105
106struct user_sgentry64 {
97 u32 addr[2]; /* 64-bit addr. 2 pieces for data alignment */ 107 u32 addr[2]; /* 64-bit addr. 2 pieces for data alignment */
98 u32 count; /* Length. */ 108 u32 count; /* Length. */
99}; 109};
@@ -106,15 +116,25 @@ struct sgentry64 {
106 */ 116 */
107 117
108struct sgmap { 118struct sgmap {
109 u32 count; 119 __le32 count;
110 struct sgentry sg[1]; 120 struct sgentry sg[1];
111}; 121};
112 122
113struct sgmap64 { 123struct user_sgmap {
114 u32 count; 124 u32 count;
125 struct user_sgentry sg[1];
126};
127
128struct sgmap64 {
129 __le32 count;
115 struct sgentry64 sg[1]; 130 struct sgentry64 sg[1];
116}; 131};
117 132
133struct user_sgmap64 {
134 u32 count;
135 struct user_sgentry64 sg[1];
136};
137
118struct creation_info 138struct creation_info
119{ 139{
120 u8 buildnum; /* e.g., 588 */ 140 u8 buildnum; /* e.g., 588 */
@@ -123,14 +143,14 @@ struct creation_info
123 * 2 = API 143 * 2 = API
124 */ 144 */
125 u8 year; /* e.g., 1997 = 97 */ 145 u8 year; /* e.g., 1997 = 97 */
126 u32 date; /* 146 __le32 date; /*
127 * unsigned Month :4; // 1 - 12 147 * unsigned Month :4; // 1 - 12
128 * unsigned Day :6; // 1 - 32 148 * unsigned Day :6; // 1 - 32
129 * unsigned Hour :6; // 0 - 23 149 * unsigned Hour :6; // 0 - 23
130 * unsigned Minute :6; // 0 - 60 150 * unsigned Minute :6; // 0 - 60
131 * unsigned Second :6; // 0 - 60 151 * unsigned Second :6; // 0 - 60
132 */ 152 */
133 u32 serial[2]; /* e.g., 0x1DEADB0BFAFAF001 */ 153 __le32 serial[2]; /* e.g., 0x1DEADB0BFAFAF001 */
134}; 154};
135 155
136 156
@@ -175,8 +195,8 @@ struct creation_info
175 */ 195 */
176 196
177struct aac_entry { 197struct aac_entry {
178 u32 size; /* Size in bytes of Fib which this QE points to */ 198 __le32 size; /* Size in bytes of Fib which this QE points to */
179 u32 addr; /* Receiver address of the FIB */ 199 __le32 addr; /* Receiver address of the FIB */
180}; 200};
181 201
182/* 202/*
@@ -185,9 +205,10 @@ struct aac_entry {
185 */ 205 */
186 206
187struct aac_qhdr { 207struct aac_qhdr {
188 u64 header_addr; /* Address to hand the adapter to access to this queue head */ 208 __le64 header_addr;/* Address to hand the adapter to access
189 u32 *producer; /* The producer index for this queue (host address) */ 209 to this queue head */
190 u32 *consumer; /* The consumer index for this queue (host address) */ 210 __le32 *producer; /* The producer index for this queue (host address) */
211 __le32 *consumer; /* The consumer index for this queue (host address) */
191}; 212};
192 213
193/* 214/*
@@ -261,19 +282,23 @@ enum aac_queue_types {
261 */ 282 */
262 283
263struct aac_fibhdr { 284struct aac_fibhdr {
264 u32 XferState; // Current transfer state for this CCB 285 __le32 XferState; /* Current transfer state for this CCB */
265 u16 Command; // Routing information for the destination 286 __le16 Command; /* Routing information for the destination */
266 u8 StructType; // Type FIB 287 u8 StructType; /* Type FIB */
267 u8 Flags; // Flags for FIB 288 u8 Flags; /* Flags for FIB */
268 u16 Size; // Size of this FIB in bytes 289 __le16 Size; /* Size of this FIB in bytes */
269 u16 SenderSize; // Size of the FIB in the sender (for response sizing) 290 __le16 SenderSize; /* Size of the FIB in the sender
270 u32 SenderFibAddress; // Host defined data in the FIB 291 (for response sizing) */
271 u32 ReceiverFibAddress; // Logical address of this FIB for the adapter 292 __le32 SenderFibAddress; /* Host defined data in the FIB */
272 u32 SenderData; // Place holder for the sender to store data 293 __le32 ReceiverFibAddress;/* Logical address of this FIB for
294 the adapter */
295 u32 SenderData; /* Place holder for the sender to store data */
273 union { 296 union {
274 struct { 297 struct {
275 u32 _ReceiverTimeStart; // Timestamp for receipt of fib 298 __le32 _ReceiverTimeStart; /* Timestamp for
276 u32 _ReceiverTimeDone; // Timestamp for completion of fib 299 receipt of fib */
300 __le32 _ReceiverTimeDone; /* Timestamp for
301 completion of fib */
277 } _s; 302 } _s;
278 } _u; 303 } _u;
279}; 304};
@@ -385,19 +410,20 @@ enum fib_xfer_state {
385 410
386struct aac_init 411struct aac_init
387{ 412{
388 u32 InitStructRevision; 413 __le32 InitStructRevision;
389 u32 MiniPortRevision; 414 __le32 MiniPortRevision;
390 u32 fsrev; 415 __le32 fsrev;
391 u32 CommHeaderAddress; 416 __le32 CommHeaderAddress;
392 u32 FastIoCommAreaAddress; 417 __le32 FastIoCommAreaAddress;
393 u32 AdapterFibsPhysicalAddress; 418 __le32 AdapterFibsPhysicalAddress;
394 u32 AdapterFibsVirtualAddress; 419 __le32 AdapterFibsVirtualAddress;
395 u32 AdapterFibsSize; 420 __le32 AdapterFibsSize;
396 u32 AdapterFibAlign; 421 __le32 AdapterFibAlign;
397 u32 printfbuf; 422 __le32 printfbuf;
398 u32 printfbufsiz; 423 __le32 printfbufsiz;
399 u32 HostPhysMemPages; // number of 4k pages of host physical memory 424 __le32 HostPhysMemPages; /* number of 4k pages of host
400 u32 HostElapsedSeconds; // number of seconds since 1970. 425 physical memory */
426 __le32 HostElapsedSeconds; /* number of seconds since 1970. */
401}; 427};
402 428
403enum aac_log_level { 429enum aac_log_level {
@@ -763,27 +789,27 @@ struct fib {
763 789
764struct aac_adapter_info 790struct aac_adapter_info
765{ 791{
766 u32 platform; 792 __le32 platform;
767 u32 cpu; 793 __le32 cpu;
768 u32 subcpu; 794 __le32 subcpu;
769 u32 clock; 795 __le32 clock;
770 u32 execmem; 796 __le32 execmem;
771 u32 buffermem; 797 __le32 buffermem;
772 u32 totalmem; 798 __le32 totalmem;
773 u32 kernelrev; 799 __le32 kernelrev;
774 u32 kernelbuild; 800 __le32 kernelbuild;
775 u32 monitorrev; 801 __le32 monitorrev;
776 u32 monitorbuild; 802 __le32 monitorbuild;
777 u32 hwrev; 803 __le32 hwrev;
778 u32 hwbuild; 804 __le32 hwbuild;
779 u32 biosrev; 805 __le32 biosrev;
780 u32 biosbuild; 806 __le32 biosbuild;
781 u32 cluster; 807 __le32 cluster;
782 u32 clusterchannelmask; 808 __le32 clusterchannelmask;
783 u32 serial[2]; 809 __le32 serial[2];
784 u32 battery; 810 __le32 battery;
785 u32 options; 811 __le32 options;
786 u32 OEM; 812 __le32 OEM;
787}; 813};
788 814
789/* 815/*
@@ -1016,83 +1042,102 @@ struct aac_dev
1016 1042
1017struct aac_read 1043struct aac_read
1018{ 1044{
1019 u32 command; 1045 __le32 command;
1020 u32 cid; 1046 __le32 cid;
1021 u32 block; 1047 __le32 block;
1022 u32 count; 1048 __le32 count;
1023 struct sgmap sg; // Must be last in struct because it is variable 1049 struct sgmap sg; // Must be last in struct because it is variable
1024}; 1050};
1025 1051
1026struct aac_read64 1052struct aac_read64
1027{ 1053{
1028 u32 command; 1054 __le32 command;
1029 u16 cid; 1055 __le16 cid;
1030 u16 sector_count; 1056 __le16 sector_count;
1031 u32 block; 1057 __le32 block;
1032 u16 pad; 1058 __le16 pad;
1033 u16 flags; 1059 __le16 flags;
1034 struct sgmap64 sg; // Must be last in struct because it is variable 1060 struct sgmap64 sg; // Must be last in struct because it is variable
1035}; 1061};
1036 1062
1037struct aac_read_reply 1063struct aac_read_reply
1038{ 1064{
1039 u32 status; 1065 __le32 status;
1040 u32 count; 1066 __le32 count;
1041}; 1067};
1042 1068
1043struct aac_write 1069struct aac_write
1044{ 1070{
1045 u32 command; 1071 __le32 command;
1046 u32 cid; 1072 __le32 cid;
1047 u32 block; 1073 __le32 block;
1048 u32 count; 1074 __le32 count;
1049 u32 stable; // Not used 1075 __le32 stable; // Not used
1050 struct sgmap sg; // Must be last in struct because it is variable 1076 struct sgmap sg; // Must be last in struct because it is variable
1051}; 1077};
1052 1078
1053struct aac_write64 1079struct aac_write64
1054{ 1080{
1055 u32 command; 1081 __le32 command;
1056 u16 cid; 1082 __le16 cid;
1057 u16 sector_count; 1083 __le16 sector_count;
1058 u32 block; 1084 __le32 block;
1059 u16 pad; 1085 __le16 pad;
1060 u16 flags; 1086 __le16 flags;
1061 struct sgmap64 sg; // Must be last in struct because it is variable 1087 struct sgmap64 sg; // Must be last in struct because it is variable
1062}; 1088};
1063struct aac_write_reply 1089struct aac_write_reply
1064{ 1090{
1065 u32 status; 1091 __le32 status;
1066 u32 count; 1092 __le32 count;
1067 u32 committed; 1093 __le32 committed;
1068}; 1094};
1069 1095
1070#define CT_FLUSH_CACHE 129 1096#define CT_FLUSH_CACHE 129
1071struct aac_synchronize { 1097struct aac_synchronize {
1072 u32 command; /* VM_ContainerConfig */ 1098 __le32 command; /* VM_ContainerConfig */
1073 u32 type; /* CT_FLUSH_CACHE */ 1099 __le32 type; /* CT_FLUSH_CACHE */
1074 u32 cid; 1100 __le32 cid;
1075 u32 parm1; 1101 __le32 parm1;
1076 u32 parm2; 1102 __le32 parm2;
1077 u32 parm3; 1103 __le32 parm3;
1078 u32 parm4; 1104 __le32 parm4;
1079 u32 count; /* sizeof(((struct aac_synchronize_reply *)NULL)->data) */ 1105 __le32 count; /* sizeof(((struct aac_synchronize_reply *)NULL)->data) */
1080}; 1106};
1081 1107
1082struct aac_synchronize_reply { 1108struct aac_synchronize_reply {
1083 u32 dummy0; 1109 __le32 dummy0;
1084 u32 dummy1; 1110 __le32 dummy1;
1085 u32 status; /* CT_OK */ 1111 __le32 status; /* CT_OK */
1086 u32 parm1; 1112 __le32 parm1;
1087 u32 parm2; 1113 __le32 parm2;
1088 u32 parm3; 1114 __le32 parm3;
1089 u32 parm4; 1115 __le32 parm4;
1090 u32 parm5; 1116 __le32 parm5;
1091 u8 data[16]; 1117 u8 data[16];
1092}; 1118};
1093 1119
1094struct aac_srb 1120struct aac_srb
1095{ 1121{
1122 __le32 function;
1123 __le32 channel;
1124 __le32 id;
1125 __le32 lun;
1126 __le32 timeout;
1127 __le32 flags;
1128 __le32 count; // Data xfer size
1129 __le32 retry_limit;
1130 __le32 cdb_size;
1131 u8 cdb[16];
1132 struct sgmap sg;
1133};
1134
1135/*
1136 * This and assocated data structs are used by the
1137 * ioctl caller and are in cpu order.
1138 */
1139struct user_aac_srb
1140{
1096 u32 function; 1141 u32 function;
1097 u32 channel; 1142 u32 channel;
1098 u32 id; 1143 u32 id;
@@ -1103,20 +1148,18 @@ struct aac_srb
1103 u32 retry_limit; 1148 u32 retry_limit;
1104 u32 cdb_size; 1149 u32 cdb_size;
1105 u8 cdb[16]; 1150 u8 cdb[16];
1106 struct sgmap sg; 1151 struct user_sgmap sg;
1107}; 1152};
1108 1153
1109
1110
1111#define AAC_SENSE_BUFFERSIZE 30 1154#define AAC_SENSE_BUFFERSIZE 30
1112 1155
1113struct aac_srb_reply 1156struct aac_srb_reply
1114{ 1157{
1115 u32 status; 1158 __le32 status;
1116 u32 srb_status; 1159 __le32 srb_status;
1117 u32 scsi_status; 1160 __le32 scsi_status;
1118 u32 data_xfer_length; 1161 __le32 data_xfer_length;
1119 u32 sense_data_size; 1162 __le32 sense_data_size;
1120 u8 sense_data[AAC_SENSE_BUFFERSIZE]; // Can this be SCSI_SENSE_BUFFERSIZE 1163 u8 sense_data[AAC_SENSE_BUFFERSIZE]; // Can this be SCSI_SENSE_BUFFERSIZE
1121}; 1164};
1122/* 1165/*
@@ -1223,14 +1266,14 @@ struct aac_srb_reply
1223 */ 1266 */
1224 1267
1225struct aac_fsinfo { 1268struct aac_fsinfo {
1226 u32 fsTotalSize; /* Consumed by fs, incl. metadata */ 1269 __le32 fsTotalSize; /* Consumed by fs, incl. metadata */
1227 u32 fsBlockSize; 1270 __le32 fsBlockSize;
1228 u32 fsFragSize; 1271 __le32 fsFragSize;
1229 u32 fsMaxExtendSize; 1272 __le32 fsMaxExtendSize;
1230 u32 fsSpaceUnits; 1273 __le32 fsSpaceUnits;
1231 u32 fsMaxNumFiles; 1274 __le32 fsMaxNumFiles;
1232 u32 fsNumFreeFiles; 1275 __le32 fsNumFreeFiles;
1233 u32 fsInodeDensity; 1276 __le32 fsInodeDensity;
1234}; /* valid iff ObjType == FT_FILESYS && !(ContentState & FSCS_NOTCLEAN) */ 1277}; /* valid iff ObjType == FT_FILESYS && !(ContentState & FSCS_NOTCLEAN) */
1235 1278
1236union aac_contentinfo { 1279union aac_contentinfo {
@@ -1243,32 +1286,32 @@ union aac_contentinfo {
1243 1286
1244#define CT_GET_CONFIG_STATUS 147 1287#define CT_GET_CONFIG_STATUS 147
1245struct aac_get_config_status { 1288struct aac_get_config_status {
1246 u32 command; /* VM_ContainerConfig */ 1289 __le32 command; /* VM_ContainerConfig */
1247 u32 type; /* CT_GET_CONFIG_STATUS */ 1290 __le32 type; /* CT_GET_CONFIG_STATUS */
1248 u32 parm1; 1291 __le32 parm1;
1249 u32 parm2; 1292 __le32 parm2;
1250 u32 parm3; 1293 __le32 parm3;
1251 u32 parm4; 1294 __le32 parm4;
1252 u32 parm5; 1295 __le32 parm5;
1253 u32 count; /* sizeof(((struct aac_get_config_status_resp *)NULL)->data) */ 1296 __le32 count; /* sizeof(((struct aac_get_config_status_resp *)NULL)->data) */
1254}; 1297};
1255 1298
1256#define CFACT_CONTINUE 0 1299#define CFACT_CONTINUE 0
1257#define CFACT_PAUSE 1 1300#define CFACT_PAUSE 1
1258#define CFACT_ABORT 2 1301#define CFACT_ABORT 2
1259struct aac_get_config_status_resp { 1302struct aac_get_config_status_resp {
1260 u32 response; /* ST_OK */ 1303 __le32 response; /* ST_OK */
1261 u32 dummy0; 1304 __le32 dummy0;
1262 u32 status; /* CT_OK */ 1305 __le32 status; /* CT_OK */
1263 u32 parm1; 1306 __le32 parm1;
1264 u32 parm2; 1307 __le32 parm2;
1265 u32 parm3; 1308 __le32 parm3;
1266 u32 parm4; 1309 __le32 parm4;
1267 u32 parm5; 1310 __le32 parm5;
1268 struct { 1311 struct {
1269 u32 action; /* CFACT_CONTINUE, CFACT_PAUSE or CFACT_ABORT */ 1312 __le32 action; /* CFACT_CONTINUE, CFACT_PAUSE or CFACT_ABORT */
1270 u16 flags; 1313 __le16 flags;
1271 s16 count; 1314 __le16 count;
1272 } data; 1315 } data;
1273}; 1316};
1274 1317
@@ -1279,8 +1322,8 @@ struct aac_get_config_status_resp {
1279#define CT_COMMIT_CONFIG 152 1322#define CT_COMMIT_CONFIG 152
1280 1323
1281struct aac_commit_config { 1324struct aac_commit_config {
1282 u32 command; /* VM_ContainerConfig */ 1325 __le32 command; /* VM_ContainerConfig */
1283 u32 type; /* CT_COMMIT_CONFIG */ 1326 __le32 type; /* CT_COMMIT_CONFIG */
1284}; 1327};
1285 1328
1286/* 1329/*
@@ -1289,16 +1332,16 @@ struct aac_commit_config {
1289 1332
1290#define CT_GET_CONTAINER_COUNT 4 1333#define CT_GET_CONTAINER_COUNT 4
1291struct aac_get_container_count { 1334struct aac_get_container_count {
1292 u32 command; /* VM_ContainerConfig */ 1335 __le32 command; /* VM_ContainerConfig */
1293 u32 type; /* CT_GET_CONTAINER_COUNT */ 1336 __le32 type; /* CT_GET_CONTAINER_COUNT */
1294}; 1337};
1295 1338
1296struct aac_get_container_count_resp { 1339struct aac_get_container_count_resp {
1297 u32 response; /* ST_OK */ 1340 __le32 response; /* ST_OK */
1298 u32 dummy0; 1341 __le32 dummy0;
1299 u32 MaxContainers; 1342 __le32 MaxContainers;
1300 u32 ContainerSwitchEntries; 1343 __le32 ContainerSwitchEntries;
1301 u32 MaxPartitions; 1344 __le32 MaxPartitions;
1302}; 1345};
1303 1346
1304 1347
@@ -1308,15 +1351,19 @@ struct aac_get_container_count_resp {
1308 */ 1351 */
1309 1352
1310struct aac_mntent { 1353struct aac_mntent {
1311 u32 oid; 1354 __le32 oid;
1312 u8 name[16]; // if applicable 1355 u8 name[16]; /* if applicable */
1313 struct creation_info create_info; // if applicable 1356 struct creation_info create_info; /* if applicable */
1314 u32 capacity; 1357 __le32 capacity;
1315 u32 vol; // substrate structure 1358 __le32 vol; /* substrate structure */
1316 u32 obj; // FT_FILESYS, FT_DATABASE, etc. 1359 __le32 obj; /* FT_FILESYS,
1317 u32 state; // unready for mounting, readonly, etc. 1360 FT_DATABASE, etc. */
1318 union aac_contentinfo fileinfo; // Info specific to content manager (eg, filesystem) 1361 __le32 state; /* unready for mounting,
1319 u32 altoid; // != oid <==> snapshot or broken mirror exists 1362 readonly, etc. */
1363 union aac_contentinfo fileinfo; /* Info specific to content
1364 manager (eg, filesystem) */
1365 __le32 altoid; /* != oid <==> snapshot or
1366 broken mirror exists */
1320}; 1367};
1321 1368
1322#define FSCS_NOTCLEAN 0x0001 /* fsck is neccessary before mounting */ 1369#define FSCS_NOTCLEAN 0x0001 /* fsck is neccessary before mounting */
@@ -1324,40 +1371,40 @@ struct aac_mntent {
1324#define FSCS_HIDDEN 0x0004 /* should be ignored - set during a clear */ 1371#define FSCS_HIDDEN 0x0004 /* should be ignored - set during a clear */
1325 1372
1326struct aac_query_mount { 1373struct aac_query_mount {
1327 u32 command; 1374 __le32 command;
1328 u32 type; 1375 __le32 type;
1329 u32 count; 1376 __le32 count;
1330}; 1377};
1331 1378
1332struct aac_mount { 1379struct aac_mount {
1333 u32 status; 1380 __le32 status;
1334 u32 type; /* should be same as that requested */ 1381 __le32 type; /* should be same as that requested */
1335 u32 count; 1382 __le32 count;
1336 struct aac_mntent mnt[1]; 1383 struct aac_mntent mnt[1];
1337}; 1384};
1338 1385
1339#define CT_READ_NAME 130 1386#define CT_READ_NAME 130
1340struct aac_get_name { 1387struct aac_get_name {
1341 u32 command; /* VM_ContainerConfig */ 1388 __le32 command; /* VM_ContainerConfig */
1342 u32 type; /* CT_READ_NAME */ 1389 __le32 type; /* CT_READ_NAME */
1343 u32 cid; 1390 __le32 cid;
1344 u32 parm1; 1391 __le32 parm1;
1345 u32 parm2; 1392 __le32 parm2;
1346 u32 parm3; 1393 __le32 parm3;
1347 u32 parm4; 1394 __le32 parm4;
1348 u32 count; /* sizeof(((struct aac_get_name_resp *)NULL)->data) */ 1395 __le32 count; /* sizeof(((struct aac_get_name_resp *)NULL)->data) */
1349}; 1396};
1350 1397
1351#define CT_OK 218 1398#define CT_OK 218
1352struct aac_get_name_resp { 1399struct aac_get_name_resp {
1353 u32 dummy0; 1400 __le32 dummy0;
1354 u32 dummy1; 1401 __le32 dummy1;
1355 u32 status; /* CT_OK */ 1402 __le32 status; /* CT_OK */
1356 u32 parm1; 1403 __le32 parm1;
1357 u32 parm2; 1404 __le32 parm2;
1358 u32 parm3; 1405 __le32 parm3;
1359 u32 parm4; 1406 __le32 parm4;
1360 u32 parm5; 1407 __le32 parm5;
1361 u8 data[16]; 1408 u8 data[16];
1362}; 1409};
1363 1410
@@ -1366,8 +1413,8 @@ struct aac_get_name_resp {
1366 */ 1413 */
1367 1414
1368struct aac_close { 1415struct aac_close {
1369 u32 command; 1416 __le32 command;
1370 u32 cid; 1417 __le32 cid;
1371}; 1418};
1372 1419
1373struct aac_query_disk 1420struct aac_query_disk
@@ -1573,8 +1620,8 @@ extern struct aac_common aac_config;
1573 */ 1620 */
1574 1621
1575struct aac_aifcmd { 1622struct aac_aifcmd {
1576 u32 command; /* Tell host what type of notify this is */ 1623 __le32 command; /* Tell host what type of notify this is */
1577 u32 seqnum; /* To allow ordering of reports (if necessary) */ 1624 __le32 seqnum; /* To allow ordering of reports (if necessary) */
1578 u8 data[1]; /* Undefined length (from kernel viewpoint) */ 1625 u8 data[1]; /* Undefined length (from kernel viewpoint) */
1579}; 1626};
1580 1627