diff options
author | Dan Williams <dcbw@redhat.com> | 2010-07-27 16:01:07 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-07-27 15:10:52 -0400 |
commit | 4c7c6e00f17365633638848197c44552dd353d49 (patch) | |
tree | 48f658ed2c2e342dff25d65a0961b70d1939ca58 /drivers/net/wireless/libertas/host.h | |
parent | 85dfbfed34bd6372daf4934256ca7f3b251c2016 (diff) |
libertas: convert register access to direct commands
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/host.h')
-rw-r--r-- | drivers/net/wireless/libertas/host.h | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index d0402aa3f30a..0a4ddc1cdd6c 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -567,24 +567,15 @@ struct cmd_ds_802_11_snmp_mib { | |||
567 | u8 value[128]; | 567 | u8 value[128]; |
568 | } __packed; | 568 | } __packed; |
569 | 569 | ||
570 | struct cmd_ds_mac_reg_access { | 570 | struct cmd_ds_reg_access { |
571 | __le16 action; | 571 | struct cmd_header hdr; |
572 | __le16 offset; | ||
573 | __le32 value; | ||
574 | } __packed; | ||
575 | |||
576 | struct cmd_ds_bbp_reg_access { | ||
577 | __le16 action; | ||
578 | __le16 offset; | ||
579 | u8 value; | ||
580 | u8 reserved[3]; | ||
581 | } __packed; | ||
582 | 572 | ||
583 | struct cmd_ds_rf_reg_access { | ||
584 | __le16 action; | 573 | __le16 action; |
585 | __le16 offset; | 574 | __le16 offset; |
586 | u8 value; | 575 | union { |
587 | u8 reserved[3]; | 576 | u8 bbp_rf; /* for BBP and RF registers */ |
577 | __le32 mac; /* for MAC registers */ | ||
578 | } value; | ||
588 | } __packed; | 579 | } __packed; |
589 | 580 | ||
590 | struct cmd_ds_802_11_radio_control { | 581 | struct cmd_ds_802_11_radio_control { |
@@ -968,9 +959,6 @@ struct cmd_ds_command { | |||
968 | /* command Body */ | 959 | /* command Body */ |
969 | union { | 960 | union { |
970 | struct cmd_ds_802_11_ps_mode psmode; | 961 | struct cmd_ds_802_11_ps_mode psmode; |
971 | struct cmd_ds_mac_reg_access macreg; | ||
972 | struct cmd_ds_bbp_reg_access bbpreg; | ||
973 | struct cmd_ds_rf_reg_access rfreg; | ||
974 | struct cmd_ds_bt_access bt; | 962 | struct cmd_ds_bt_access bt; |
975 | struct cmd_ds_fwt_access fwt; | 963 | struct cmd_ds_fwt_access fwt; |
976 | } params; | 964 | } params; |