mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-08 22:43:04 +00:00
rtl8188eu: Remove C90 comments from include/*.h
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
e2285839e9
commit
b2720d8002
73 changed files with 3323 additions and 3402 deletions
|
@ -72,7 +72,7 @@ enum _NIC_VERSION {
|
|||
|
||||
#ifdef CONFIG_BR_EXT
|
||||
#include <rtw_br_ext.h>
|
||||
#endif // CONFIG_BR_EXT
|
||||
#endif /* CONFIG_BR_EXT */
|
||||
|
||||
#include "ioctl_cfg80211.h"
|
||||
|
||||
|
@ -98,14 +98,14 @@ struct registry_priv {
|
|||
u8 lbkmode;
|
||||
u8 hci;
|
||||
struct ndis_802_11_ssid ssid;
|
||||
u8 network_mode; //infra, ad-hoc, auto
|
||||
u8 channel;//ad-hoc support requirement
|
||||
u8 wireless_mode;//A, B, G, auto
|
||||
u8 scan_mode;//active, passive
|
||||
u8 network_mode; /* infra, ad-hoc, auto */
|
||||
u8 channel;/* ad-hoc support requirement */
|
||||
u8 wireless_mode;/* A, B, G, auto */
|
||||
u8 scan_mode;/* active, passive */
|
||||
u8 radio_enable;
|
||||
u8 preamble;//long, short, auto
|
||||
u8 vrtl_carrier_sense;//Enable, Disable, Auto
|
||||
u8 vcs_type;//RTS/CTS, CTS-to-self
|
||||
u8 preamble;/* long, short, auto */
|
||||
u8 vrtl_carrier_sense;/* Enable, Disable, Auto */
|
||||
u8 vcs_type;/* RTS/CTS, CTS-to-self */
|
||||
u16 rts_thresh;
|
||||
u16 frag_thresh;
|
||||
u8 adhoc_tx_pwr;
|
||||
|
@ -121,7 +121,7 @@ struct registry_priv {
|
|||
u8 software_encrypt;
|
||||
u8 software_decrypt;
|
||||
u8 acm_method;
|
||||
//UAPSD
|
||||
/* UAPSD */
|
||||
u8 wmm_enable;
|
||||
u8 uapsd_enable;
|
||||
u8 uapsd_max_sp;
|
||||
|
@ -132,13 +132,13 @@ struct registry_priv {
|
|||
struct wlan_bssid_ex dev_network;
|
||||
u8 ht_enable;
|
||||
u8 cbw40_enable;
|
||||
u8 ampdu_enable;//for tx
|
||||
u8 ampdu_enable;/* for tx */
|
||||
u8 rx_stbc;
|
||||
u8 ampdu_amsdu;//A-MPDU Supports A-MSDU is permitted
|
||||
u8 ampdu_amsdu;/* A-MPDU Supports A-MSDU is permitted */
|
||||
u8 lowrate_two_xmit;
|
||||
u8 rf_config ;
|
||||
u8 low_power ;
|
||||
u8 wifi_spec;// !turbo_mode
|
||||
u8 wifi_spec;/* !turbo_mode */
|
||||
u8 channel_plan;
|
||||
#ifdef CONFIG_BT_COEXIST
|
||||
u8 btcoex;
|
||||
|
@ -149,12 +149,12 @@ struct registry_priv {
|
|||
bool bAcceptAddbaReq;
|
||||
u8 antdiv_cfg;
|
||||
u8 antdiv_type;
|
||||
u8 usbss_enable;//0:disable,1:enable
|
||||
u8 hwpdn_mode;//0:disable,1:enable,2:decide by EFUSE config
|
||||
u8 hwpwrp_detect;//0:disable,1:enable
|
||||
u8 hw_wps_pbc;//0:disable,1:enable
|
||||
u8 max_roaming_times; // the max number driver will try to roaming
|
||||
u8 fw_iol; //enable iol without other concern
|
||||
u8 usbss_enable;/* 0:disable,1:enable */
|
||||
u8 hwpdn_mode;/* 0:disable,1:enable,2:decide by EFUSE config */
|
||||
u8 hwpwrp_detect;/* 0:disable,1:enable */
|
||||
u8 hw_wps_pbc;/* 0:disable,1:enable */
|
||||
u8 max_roaming_times; /* the max number driver will try to roaming */
|
||||
u8 fw_iol; /* enable iol without other concern */
|
||||
#ifdef CONFIG_80211D
|
||||
u8 enable80211d;
|
||||
#endif
|
||||
|
@ -166,7 +166,7 @@ struct registry_priv {
|
|||
};
|
||||
|
||||
|
||||
//For registry parameters
|
||||
/* For registry parameters */
|
||||
#define RGTRY_OFT(field) ((ULONG)FIELD_OFFSET(struct registry_priv,field))
|
||||
#define RGTRY_SZ(field) sizeof(((struct registry_priv*) 0)->field)
|
||||
#define BSSID_OFT(field) ((ULONG)FIELD_OFFSET(struct wlan_bssid_ex,field))
|
||||
|
@ -179,8 +179,8 @@ struct registry_priv {
|
|||
#define GET_ADAPTER(padapter, iface_id) (((struct adapter *)padapter)->dvobj->padapters[iface_id])
|
||||
|
||||
enum _IFACE_ID {
|
||||
IFACE_ID0, //maping to PRIMARY_ADAPTER
|
||||
IFACE_ID1, //maping to SECONDARY_ADAPTER
|
||||
IFACE_ID0, /* maping to PRIMARY_ADAPTER */
|
||||
IFACE_ID1, /* maping to SECONDARY_ADAPTER */
|
||||
IFACE_ID2,
|
||||
IFACE_ID3,
|
||||
IFACE_ID_MAX,
|
||||
|
@ -192,33 +192,33 @@ struct rt_firmware {
|
|||
};
|
||||
|
||||
struct dvobj_priv {
|
||||
struct adapter *if1; //PRIMARY_ADAPTER
|
||||
struct adapter *if2; //SECONDARY_ADAPTER
|
||||
struct adapter *if1; /* PRIMARY_ADAPTER */
|
||||
struct adapter *if2; /* SECONDARY_ADAPTER */
|
||||
|
||||
s32 processing_dev_remove;
|
||||
|
||||
//for local/global synchronization
|
||||
/* for local/global synchronization */
|
||||
_mutex hw_init_mutex;
|
||||
_mutex h2c_fwcmd_mutex;
|
||||
_mutex setch_mutex;
|
||||
_mutex setbw_mutex;
|
||||
|
||||
unsigned char oper_channel; //saved channel info when call set_channel_bw
|
||||
unsigned char oper_channel; /* saved channel info when call set_channel_bw */
|
||||
unsigned char oper_bwmode;
|
||||
unsigned char oper_ch_offset;//PRIME_CHNL_OFFSET
|
||||
unsigned char oper_ch_offset;/* PRIME_CHNL_OFFSET */
|
||||
u32 on_oper_ch_time;
|
||||
|
||||
struct adapter *padapters[IFACE_ID_MAX];
|
||||
u8 iface_nums; // total number of ifaces used runtime
|
||||
u8 iface_nums; /* total number of ifaces used runtime */
|
||||
|
||||
//For 92D, DMDP have 2 interface.
|
||||
/* For 92D, DMDP have 2 interface. */
|
||||
u8 InterfaceNumber;
|
||||
u8 NumInterfaces;
|
||||
|
||||
//In /Out Pipe information
|
||||
/* In /Out Pipe information */
|
||||
int RtInPipe[2];
|
||||
int RtOutPipe[3];
|
||||
u8 Queue2Pipe[HW_QUEUE_ENTRY];//for out pipe mapping
|
||||
u8 Queue2Pipe[HW_QUEUE_ENTRY];/* for out pipe mapping */
|
||||
|
||||
u8 irq_alloc;
|
||||
ATOMIC_T continual_io_error;
|
||||
|
@ -238,7 +238,7 @@ struct dvobj_priv {
|
|||
u8 ishighspeed;
|
||||
u8 RtNumInPipes;
|
||||
u8 RtNumOutPipes;
|
||||
int ep_num[5]; //endpoint number
|
||||
int ep_num[5]; /* endpoint number */
|
||||
|
||||
int RegUsbSS;
|
||||
|
||||
|
@ -264,8 +264,8 @@ static struct device *dvobj_to_dev(struct dvobj_priv *dvobj)
|
|||
}
|
||||
|
||||
enum _IFACE_TYPE {
|
||||
IFACE_PORT0, //mapping to port0 for C/D series chips
|
||||
IFACE_PORT1, //mapping to port1 for C/D series chip
|
||||
IFACE_PORT0, /* mapping to port0 for C/D series chips */
|
||||
IFACE_PORT1, /* mapping to port1 for C/D series chip */
|
||||
MAX_IFACE_PORT,
|
||||
};
|
||||
|
||||
|
@ -291,7 +291,7 @@ struct proxim {
|
|||
union recv_frame *precv_frame);
|
||||
u8 (*proxim_get_var)(struct adapter* padapter, u8 type);
|
||||
};
|
||||
#endif //CONFIG_INTEL_PROXIM
|
||||
#endif /* CONFIG_INTEL_PROXIM */
|
||||
|
||||
#ifdef CONFIG_MAC_LOOPBACK_DRIVER
|
||||
typedef struct loopbackdata
|
||||
|
@ -311,30 +311,30 @@ typedef struct loopbackdata
|
|||
#endif
|
||||
|
||||
struct adapter {
|
||||
int DriverState;// for disable driver using module, use dongle to replace module.
|
||||
int pid[3];//process id from UI, 0:wps, 1:hostapd, 2:dhcpcd
|
||||
int bDongle;//build-in module or external dongle
|
||||
int DriverState;/* for disable driver using module, use dongle to replace module. */
|
||||
int pid[3];/* process id from UI, 0:wps, 1:hostapd, 2:dhcpcd */
|
||||
int bDongle;/* build-in module or external dongle */
|
||||
u16 chip_type;
|
||||
u16 HardwareType;
|
||||
u16 interface_type;//USB,SDIO,SPI,PCI
|
||||
u16 interface_type;/* USB,SDIO,SPI,PCI */
|
||||
|
||||
struct dvobj_priv *dvobj;
|
||||
struct mlme_priv mlmepriv;
|
||||
struct mlme_ext_priv mlmeextpriv;
|
||||
struct cmd_priv cmdpriv;
|
||||
struct evt_priv evtpriv;
|
||||
//struct io_queue *pio_queue;
|
||||
/* struct io_queue *pio_queue; */
|
||||
struct io_priv iopriv;
|
||||
struct xmit_priv xmitpriv;
|
||||
struct recv_priv recvpriv;
|
||||
struct sta_priv stapriv;
|
||||
struct security_priv securitypriv;
|
||||
spinlock_t security_key_mutex; // add for CONFIG_IEEE80211W, none 11w also can use
|
||||
spinlock_t security_key_mutex; /* add for CONFIG_IEEE80211W, none 11w also can use */
|
||||
struct registry_priv registrypriv;
|
||||
struct eeprom_priv eeprompriv;
|
||||
struct led_priv ledpriv;
|
||||
#if defined(CONFIG_CHECK_BT_HANG) && defined(CONFIG_BT_COEXIST)
|
||||
//Check BT status for BT Hung.
|
||||
/* Check BT status for BT Hung. */
|
||||
struct workqueue_struct *priv_checkbt_wq;
|
||||
struct delayed_work checkbt_work;
|
||||
#endif
|
||||
|
@ -348,13 +348,13 @@ struct adapter {
|
|||
#endif
|
||||
#ifdef CONFIG_P2P
|
||||
struct cfg80211_wifidirect_info cfg80211_wdinfo;
|
||||
#endif //CONFIG_P2P
|
||||
#endif /* CONFIG_P2P */
|
||||
u32 setband;
|
||||
struct wifidirect_info wdinfo;
|
||||
|
||||
#ifdef CONFIG_P2P
|
||||
struct wifi_display_info wfd_info;
|
||||
#endif //CONFIG_P2P
|
||||
#endif /* CONFIG_P2P */
|
||||
|
||||
void * HalData;
|
||||
u32 hal_data_sz;
|
||||
|
@ -383,7 +383,7 @@ struct adapter {
|
|||
|
||||
struct net_device * pnetdev;
|
||||
|
||||
// used by rtw_rereg_nd_name related function
|
||||
/* used by rtw_rereg_nd_name related function */
|
||||
struct rereg_nd_name_data {
|
||||
struct net_device * old_pnetdev;
|
||||
char old_ifname[IFNAMSIZ];
|
||||
|
@ -394,7 +394,7 @@ struct adapter {
|
|||
int bup;
|
||||
struct net_device_stats stats;
|
||||
struct iw_statistics iwstats;
|
||||
struct proc_dir_entry *dir_dev;// for proc directory
|
||||
struct proc_dir_entry *dir_dev;/* for proc directory */
|
||||
struct proc_dir_entry *dir_odm;
|
||||
|
||||
struct wireless_dev *rtw_wdev;
|
||||
|
@ -406,12 +406,12 @@ struct adapter {
|
|||
u8 bReadPortCancel;
|
||||
u8 bWritePortCancel;
|
||||
u8 bRxRSSIDisplay;
|
||||
// Added by Albert 2012/10/26
|
||||
// The driver will show up the desired channel number when this flag is 1.
|
||||
/* Added by Albert 2012/10/26 */
|
||||
/* The driver will show up the desired channel number when this flag is 1. */
|
||||
u8 bNotifyChannelChange;
|
||||
#ifdef CONFIG_P2P
|
||||
// Added by Albert 2012/12/06
|
||||
// The driver will show the current P2P status when the upper application reads it.
|
||||
/* Added by Albert 2012/12/06 */
|
||||
/* The driver will show the current P2P status when the upper application reads it. */
|
||||
u8 bShowGetP2PState;
|
||||
#endif
|
||||
#ifdef CONFIG_AUTOSUSPEND
|
||||
|
@ -420,14 +420,13 @@ struct adapter {
|
|||
|
||||
struct adapter *pbuddy_adapter;
|
||||
|
||||
//extend to support multi interface
|
||||
//IFACE_ID0 is equals to PRIMARY_ADAPTER
|
||||
//IFACE_ID1 is equals to SECONDARY_ADAPTER
|
||||
/* extend to support multi interface */
|
||||
/* IFACE_ID0 is equals to PRIMARY_ADAPTER */
|
||||
/* IFACE_ID1 is equals to SECONDARY_ADAPTER */
|
||||
u8 iface_id;
|
||||
|
||||
#ifdef CONFIG_BR_EXT
|
||||
spinlock_t br_ext_lock;
|
||||
//unsigned int macclone_completed;
|
||||
struct nat25_network_db_entry *nethash[NAT25_HASH_SIZE];
|
||||
int pppoe_connection_in_progress;
|
||||
unsigned char pppoe_addr[MACADDRLEN];
|
||||
|
@ -438,14 +437,14 @@ struct adapter {
|
|||
unsigned char br_ip[4];
|
||||
|
||||
struct br_ext_info ethBrExtInfo;
|
||||
#endif // CONFIG_BR_EXT
|
||||
#endif /* CONFIG_BR_EXT */
|
||||
|
||||
#ifdef CONFIG_INTEL_PROXIM
|
||||
/* intel Proximity, should be alloc mem
|
||||
* in intel Proximity module and can only
|
||||
* be used in intel Proximity mode */
|
||||
struct proxim proximity;
|
||||
#endif //CONFIG_INTEL_PROXIM
|
||||
#endif /* CONFIG_INTEL_PROXIM */
|
||||
|
||||
#ifdef CONFIG_MAC_LOOPBACK_DRIVER
|
||||
PLOOPBACKDATA ploopback;
|
||||
|
@ -468,4 +467,4 @@ __inline static u8 *myid(struct eeprom_priv *peepriv)
|
|||
}
|
||||
|
||||
|
||||
#endif //__DRV_TYPES_H__
|
||||
#endif /* __DRV_TYPES_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue