diff options
Diffstat (limited to 'drivers/net/wireless/zd1211rw/zd_usb.h')
-rw-r--r-- | drivers/net/wireless/zd1211rw/zd_usb.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/net/wireless/zd1211rw/zd_usb.h b/drivers/net/wireless/zd1211rw/zd_usb.h index d6420283bd5..ded39de5f72 100644 --- a/drivers/net/wireless/zd1211rw/zd_usb.h +++ b/drivers/net/wireless/zd1211rw/zd_usb.h | |||
@@ -30,6 +30,7 @@ | |||
30 | enum devicetype { | 30 | enum devicetype { |
31 | DEVICE_ZD1211 = 0, | 31 | DEVICE_ZD1211 = 0, |
32 | DEVICE_ZD1211B = 1, | 32 | DEVICE_ZD1211B = 1, |
33 | DEVICE_INSTALLER = 2, | ||
33 | }; | 34 | }; |
34 | 35 | ||
35 | enum endpoints { | 36 | enum endpoints { |
@@ -73,17 +74,17 @@ enum control_requests { | |||
73 | struct usb_req_read_regs { | 74 | struct usb_req_read_regs { |
74 | __le16 id; | 75 | __le16 id; |
75 | __le16 addr[0]; | 76 | __le16 addr[0]; |
76 | } __attribute__((packed)); | 77 | }; |
77 | 78 | ||
78 | struct reg_data { | 79 | struct reg_data { |
79 | __le16 addr; | 80 | __le16 addr; |
80 | __le16 value; | 81 | __le16 value; |
81 | } __attribute__((packed)); | 82 | }; |
82 | 83 | ||
83 | struct usb_req_write_regs { | 84 | struct usb_req_write_regs { |
84 | __le16 id; | 85 | __le16 id; |
85 | struct reg_data reg_writes[0]; | 86 | struct reg_data reg_writes[0]; |
86 | } __attribute__((packed)); | 87 | }; |
87 | 88 | ||
88 | enum { | 89 | enum { |
89 | RF_IF_LE = 0x02, | 90 | RF_IF_LE = 0x02, |
@@ -100,7 +101,7 @@ struct usb_req_rfwrite { | |||
100 | /* RF2595: 24 */ | 101 | /* RF2595: 24 */ |
101 | __le16 bit_values[0]; | 102 | __le16 bit_values[0]; |
102 | /* (CR203 & ~(RF_IF_LE | RF_CLK | RF_DATA)) | (bit ? RF_DATA : 0) */ | 103 | /* (CR203 & ~(RF_IF_LE | RF_CLK | RF_DATA)) | (bit ? RF_DATA : 0) */ |
103 | } __attribute__((packed)); | 104 | }; |
104 | 105 | ||
105 | /* USB interrupt */ | 106 | /* USB interrupt */ |
106 | 107 | ||
@@ -117,12 +118,12 @@ enum usb_int_flags { | |||
117 | struct usb_int_header { | 118 | struct usb_int_header { |
118 | u8 type; /* must always be 1 */ | 119 | u8 type; /* must always be 1 */ |
119 | u8 id; | 120 | u8 id; |
120 | } __attribute__((packed)); | 121 | }; |
121 | 122 | ||
122 | struct usb_int_regs { | 123 | struct usb_int_regs { |
123 | struct usb_int_header hdr; | 124 | struct usb_int_header hdr; |
124 | struct reg_data regs[0]; | 125 | struct reg_data regs[0]; |
125 | } __attribute__((packed)); | 126 | }; |
126 | 127 | ||
127 | struct usb_int_retry_fail { | 128 | struct usb_int_retry_fail { |
128 | struct usb_int_header hdr; | 129 | struct usb_int_header hdr; |
@@ -130,7 +131,7 @@ struct usb_int_retry_fail { | |||
130 | u8 _dummy; | 131 | u8 _dummy; |
131 | u8 addr[ETH_ALEN]; | 132 | u8 addr[ETH_ALEN]; |
132 | u8 ibss_wakeup_dest; | 133 | u8 ibss_wakeup_dest; |
133 | } __attribute__((packed)); | 134 | }; |
134 | 135 | ||
135 | struct read_regs_int { | 136 | struct read_regs_int { |
136 | struct completion completion; | 137 | struct completion completion; |