diff options
author | Randy Dunlap <randy.dunlap@oracle.com> | 2011-04-26 18:25:29 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-04-28 14:53:18 -0400 |
commit | 8973a6e770fc891f92daacbc1c92c7cd396fcf7e (patch) | |
tree | 3e5025263b23db5c7cac9c64af6ba948701de980 /drivers/net/wireless/libertas/host.h | |
parent | 47684808fd89d6809c0886e06f8ac324252499d8 (diff) |
libertas: use kernel-doc notation, fix comment style
Convert all libertas/ files to use kernel-doc notation instead
of whatever it was (doxygen?).
Add or fix function parameters in several places.
Use expected style for multi-line comments in lots of places.
Remove erroneous /** in multiple places.
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Acked-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 | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/drivers/net/wireless/libertas/host.h b/drivers/net/wireless/libertas/host.h index 6cb6935ee4a3..2e2dbfa2ee50 100644 --- a/drivers/net/wireless/libertas/host.h +++ b/drivers/net/wireless/libertas/host.h | |||
@@ -1,7 +1,7 @@ | |||
1 | /** | 1 | /* |
2 | * This file function prototypes, data structure | 2 | * This file function prototypes, data structure |
3 | * and definitions for all the host/station commands | 3 | * and definitions for all the host/station commands |
4 | */ | 4 | */ |
5 | 5 | ||
6 | #ifndef _LBS_HOST_H_ | 6 | #ifndef _LBS_HOST_H_ |
7 | #define _LBS_HOST_H_ | 7 | #define _LBS_HOST_H_ |
@@ -13,9 +13,10 @@ | |||
13 | 13 | ||
14 | #define CMD_OPTION_WAITFORRSP 0x0002 | 14 | #define CMD_OPTION_WAITFORRSP 0x0002 |
15 | 15 | ||
16 | /** Host command IDs */ | 16 | /* Host command IDs */ |
17 | 17 | ||
18 | /* Return command are almost always the same as the host command, but with | 18 | /* |
19 | * Return command are almost always the same as the host command, but with | ||
19 | * bit 15 set high. There are a few exceptions, though... | 20 | * bit 15 set high. There are a few exceptions, though... |
20 | */ | 21 | */ |
21 | #define CMD_RET(cmd) (0x8000 | cmd) | 22 | #define CMD_RET(cmd) (0x8000 | cmd) |
@@ -251,7 +252,7 @@ enum cmd_mesh_config_types { | |||
251 | CMD_TYPE_MESH_GET_MESH_IE, /* GET_DEFAULTS is superset of GET_MESHIE */ | 252 | CMD_TYPE_MESH_GET_MESH_IE, /* GET_DEFAULTS is superset of GET_MESHIE */ |
252 | }; | 253 | }; |
253 | 254 | ||
254 | /** Card Event definition */ | 255 | /* Card Event definition */ |
255 | #define MACREG_INT_CODE_TX_PPA_FREE 0 | 256 | #define MACREG_INT_CODE_TX_PPA_FREE 0 |
256 | #define MACREG_INT_CODE_TX_DMA_DONE 1 | 257 | #define MACREG_INT_CODE_TX_DMA_DONE 1 |
257 | #define MACREG_INT_CODE_LINK_LOST_W_SCAN 2 | 258 | #define MACREG_INT_CODE_LINK_LOST_W_SCAN 2 |
@@ -624,12 +625,14 @@ struct cmd_ds_802_11_rf_channel { | |||
624 | struct cmd_ds_802_11_rssi { | 625 | struct cmd_ds_802_11_rssi { |
625 | struct cmd_header hdr; | 626 | struct cmd_header hdr; |
626 | 627 | ||
627 | /* request: number of beacons (N) to average the SNR and NF over | 628 | /* |
629 | * request: number of beacons (N) to average the SNR and NF over | ||
628 | * response: SNR of most recent beacon | 630 | * response: SNR of most recent beacon |
629 | */ | 631 | */ |
630 | __le16 n_or_snr; | 632 | __le16 n_or_snr; |
631 | 633 | ||
632 | /* The following fields are only set in the response. | 634 | /* |
635 | * The following fields are only set in the response. | ||
633 | * In the request these are reserved and should be set to 0. | 636 | * In the request these are reserved and should be set to 0. |
634 | */ | 637 | */ |
635 | __le16 nf; /* most recent beacon noise floor */ | 638 | __le16 nf; /* most recent beacon noise floor */ |
@@ -680,14 +683,16 @@ struct cmd_ds_802_11_ps_mode { | |||
680 | 683 | ||
681 | __le16 action; | 684 | __le16 action; |
682 | 685 | ||
683 | /* Interval for keepalive in PS mode: | 686 | /* |
687 | * Interval for keepalive in PS mode: | ||
684 | * 0x0000 = don't change | 688 | * 0x0000 = don't change |
685 | * 0x001E = firmware default | 689 | * 0x001E = firmware default |
686 | * 0xFFFF = disable | 690 | * 0xFFFF = disable |
687 | */ | 691 | */ |
688 | __le16 nullpktinterval; | 692 | __le16 nullpktinterval; |
689 | 693 | ||
690 | /* Number of DTIM intervals to wake up for: | 694 | /* |
695 | * Number of DTIM intervals to wake up for: | ||
691 | * 0 = don't change | 696 | * 0 = don't change |
692 | * 1 = firmware default | 697 | * 1 = firmware default |
693 | * 5 = max | 698 | * 5 = max |
@@ -697,7 +702,8 @@ struct cmd_ds_802_11_ps_mode { | |||
697 | __le16 reserved; | 702 | __le16 reserved; |
698 | __le16 locallisteninterval; | 703 | __le16 locallisteninterval; |
699 | 704 | ||
700 | /* AdHoc awake period (FW v9+ only): | 705 | /* |
706 | * AdHoc awake period (FW v9+ only): | ||
701 | * 0 = don't change | 707 | * 0 = don't change |
702 | * 1 = always awake (IEEE standard behavior) | 708 | * 1 = always awake (IEEE standard behavior) |
703 | * 2 - 31 = sleep for (n - 1) periods and awake for 1 period | 709 | * 2 - 31 = sleep for (n - 1) periods and awake for 1 period |
@@ -771,7 +777,8 @@ struct adhoc_bssdesc { | |||
771 | __le16 capability; | 777 | __le16 capability; |
772 | u8 rates[MAX_RATES]; | 778 | u8 rates[MAX_RATES]; |
773 | 779 | ||
774 | /* DO NOT ADD ANY FIELDS TO THIS STRUCTURE. It is used below in the | 780 | /* |
781 | * DO NOT ADD ANY FIELDS TO THIS STRUCTURE. It is used below in the | ||
775 | * Adhoc join command and will cause a binary layout mismatch with | 782 | * Adhoc join command and will cause a binary layout mismatch with |
776 | * the firmware | 783 | * the firmware |
777 | */ | 784 | */ |