diff options
author | Seokmann Ju <seokmann.ju@qlogic.com> | 2008-04-24 18:21:29 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-27 13:19:59 -0400 |
commit | c6852c4c5984fff130a859792d4b26d30c85c54b (patch) | |
tree | 2dee2906fa8cd693a391903b96cafa544340b157 /drivers/scsi/qla2xxx/qla_fw.h | |
parent | 3b8117b837f5768f46e9a876a58de11606f63483 (diff) |
[SCSI] qla2xxx: Correct misc. endian and byte-ordering issues.
There were several places in the driver which could cause byte
ordering problem as provided by Al Viro
<viro@ZenIV.linux.org.uk>.
Signed-off-by: Seokmann Ju <seokmann.ju@qlogic.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_fw.h')
-rw-r--r-- | drivers/scsi/qla2xxx/qla_fw.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/drivers/scsi/qla2xxx/qla_fw.h b/drivers/scsi/qla2xxx/qla_fw.h index 078f2a15f40b..cf194517400d 100644 --- a/drivers/scsi/qla2xxx/qla_fw.h +++ b/drivers/scsi/qla2xxx/qla_fw.h | |||
@@ -1036,22 +1036,6 @@ struct mid_db_entry_24xx { | |||
1036 | uint8_t reserved_1; | 1036 | uint8_t reserved_1; |
1037 | }; | 1037 | }; |
1038 | 1038 | ||
1039 | /* | ||
1040 | * Virtual Fabric ID type definition. | ||
1041 | */ | ||
1042 | typedef struct vf_id { | ||
1043 | uint16_t id : 12; | ||
1044 | uint16_t priority : 4; | ||
1045 | } vf_id_t; | ||
1046 | |||
1047 | /* | ||
1048 | * Virtual Fabric HopCt type definition. | ||
1049 | */ | ||
1050 | typedef struct vf_hopct { | ||
1051 | uint16_t reserved : 8; | ||
1052 | uint16_t hopct : 8; | ||
1053 | } vf_hopct_t; | ||
1054 | |||
1055 | /* | 1039 | /* |
1056 | * Virtual Port Control IOCB | 1040 | * Virtual Port Control IOCB |
1057 | */ | 1041 | */ |
@@ -1082,10 +1066,10 @@ struct vp_ctrl_entry_24xx { | |||
1082 | 1066 | ||
1083 | uint8_t vp_idx_map[16]; | 1067 | uint8_t vp_idx_map[16]; |
1084 | uint16_t flags; | 1068 | uint16_t flags; |
1085 | struct vf_id id; | 1069 | uint16_t id; |
1086 | uint16_t reserved_4; | 1070 | uint16_t reserved_4; |
1087 | struct vf_hopct hopct; | 1071 | uint16_t hopct; |
1088 | uint8_t reserved_5[8]; | 1072 | uint8_t reserved_5[24]; |
1089 | }; | 1073 | }; |
1090 | 1074 | ||
1091 | /* | 1075 | /* |
@@ -1132,9 +1116,9 @@ struct vp_config_entry_24xx { | |||
1132 | uint16_t reserved_vp2; | 1116 | uint16_t reserved_vp2; |
1133 | uint8_t port_name_idx2[WWN_SIZE]; | 1117 | uint8_t port_name_idx2[WWN_SIZE]; |
1134 | uint8_t node_name_idx2[WWN_SIZE]; | 1118 | uint8_t node_name_idx2[WWN_SIZE]; |
1135 | struct vf_id id; | 1119 | uint16_t id; |
1136 | uint16_t reserved_4; | 1120 | uint16_t reserved_4; |
1137 | struct vf_hopct hopct; | 1121 | uint16_t hopct; |
1138 | uint8_t reserved_5; | 1122 | uint8_t reserved_5; |
1139 | }; | 1123 | }; |
1140 | 1124 | ||