diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-12-01 07:15:53 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-12-02 03:52:30 -0500 |
commit | d4d7f1f9116089a4ae5102dcda35e8120308a515 (patch) | |
tree | 7c528e319d653a32ca84564f472f5a6843c14ab9 /drivers/net/ps3_gelic_net.h | |
parent | 0dffc83e5b831df1df83dfe32a0c267347f9950b (diff) |
net/ps3: Cleanup gelic enums
Cleanup of the gelic driver enumerations:
o Add some missing commas.
o Add an Ether port post fix (PS3 currently only supports PORT_0).
o Add a new enum gelic_lv1_phy to use when interacting with the PHY.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ps3_gelic_net.h')
-rw-r--r-- | drivers/net/ps3_gelic_net.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/net/ps3_gelic_net.h b/drivers/net/ps3_gelic_net.h index 8b413868bbe2..a09e4862706a 100644 --- a/drivers/net/ps3_gelic_net.h +++ b/drivers/net/ps3_gelic_net.h | |||
@@ -186,7 +186,7 @@ enum gelic_lv1_net_control_code { | |||
186 | GELIC_LV1_GET_CHANNEL = 6, | 186 | GELIC_LV1_GET_CHANNEL = 6, |
187 | GELIC_LV1_POST_WLAN_CMD = 9, | 187 | GELIC_LV1_POST_WLAN_CMD = 9, |
188 | GELIC_LV1_GET_WLAN_CMD_RESULT = 10, | 188 | GELIC_LV1_GET_WLAN_CMD_RESULT = 10, |
189 | GELIC_LV1_GET_WLAN_EVENT = 11 | 189 | GELIC_LV1_GET_WLAN_EVENT = 11, |
190 | }; | 190 | }; |
191 | 191 | ||
192 | /* for GELIC_LV1_SET_WOL */ | 192 | /* for GELIC_LV1_SET_WOL */ |
@@ -217,24 +217,29 @@ enum gelic_lv1_ether_port_status { | |||
217 | GELIC_LV1_ETHER_SPEED_10 = 0x0000000000000010L, | 217 | GELIC_LV1_ETHER_SPEED_10 = 0x0000000000000010L, |
218 | GELIC_LV1_ETHER_SPEED_100 = 0x0000000000000020L, | 218 | GELIC_LV1_ETHER_SPEED_100 = 0x0000000000000020L, |
219 | GELIC_LV1_ETHER_SPEED_1000 = 0x0000000000000040L, | 219 | GELIC_LV1_ETHER_SPEED_1000 = 0x0000000000000040L, |
220 | GELIC_LV1_ETHER_SPEED_MASK = 0x0000000000000070L | 220 | GELIC_LV1_ETHER_SPEED_MASK = 0x0000000000000070L, |
221 | }; | 221 | }; |
222 | 222 | ||
223 | enum gelic_lv1_vlan_index { | 223 | enum gelic_lv1_vlan_index { |
224 | /* for outgoing packets */ | 224 | /* for outgoing packets */ |
225 | GELIC_LV1_VLAN_TX_ETHERNET = 0x0000000000000002L, | 225 | GELIC_LV1_VLAN_TX_ETHERNET_0 = 0x0000000000000002L, |
226 | GELIC_LV1_VLAN_TX_WIRELESS = 0x0000000000000003L, | 226 | GELIC_LV1_VLAN_TX_WIRELESS = 0x0000000000000003L, |
227 | |||
227 | /* for incoming packets */ | 228 | /* for incoming packets */ |
228 | GELIC_LV1_VLAN_RX_ETHERNET = 0x0000000000000012L, | 229 | GELIC_LV1_VLAN_RX_ETHERNET_0 = 0x0000000000000012L, |
229 | GELIC_LV1_VLAN_RX_WIRELESS = 0x0000000000000013L | 230 | GELIC_LV1_VLAN_RX_WIRELESS = 0x0000000000000013L, |
231 | }; | ||
232 | |||
233 | enum gelic_lv1_phy { | ||
234 | GELIC_LV1_PHY_ETHERNET_0 = 0x0000000000000002L, | ||
230 | }; | 235 | }; |
231 | 236 | ||
232 | /* size of hardware part of gelic descriptor */ | 237 | /* size of hardware part of gelic descriptor */ |
233 | #define GELIC_DESCR_SIZE (32) | 238 | #define GELIC_DESCR_SIZE (32) |
234 | 239 | ||
235 | enum gelic_port_type { | 240 | enum gelic_port_type { |
236 | GELIC_PORT_ETHERNET = 0, | 241 | GELIC_PORT_ETHERNET_0 = 0, |
237 | GELIC_PORT_WIRELESS = 1, | 242 | GELIC_PORT_WIRELESS = 1, |
238 | GELIC_PORT_MAX | 243 | GELIC_PORT_MAX |
239 | }; | 244 | }; |
240 | 245 | ||