Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations
rtl819x_Qos.h File Reference

Go to the source code of this file.

Data Structures

union  _QOS_CTRL_FIELD
 
union  _QOS_INFO_FIELD
 
union  _ACI_AIFSN
 
union  _ECW
 
union  _AC_PARAM
 
union  _QOS_TSINFO
 
union  _TSPEC_BODY
 
struct  _WMM_TSPEC
 
struct  _ACM
 
union  _QOS_TCLAS
 
struct  _QOS_TCLAS::_TYPE_GENERAL
 
struct  _QOS_TCLAS::_TYPE0_ETH
 
struct  _QOS_TCLAS::_TYPE1_IPV4
 
struct  _QOS_TCLAS::_TYPE1_IPV6
 
struct  _QOS_TCLAS::_TYPE2_8021Q
 
struct  _QOS_TSTREAM
 
struct  _OCTET_STRING
 
struct  _STA_QOS
 
struct  _BSS_QOS
 

Macros

#define BIT0   0x00000001
 
#define BIT1   0x00000002
 
#define BIT2   0x00000004
 
#define BIT3   0x00000008
 
#define BIT4   0x00000010
 
#define BIT5   0x00000020
 
#define BIT6   0x00000040
 
#define BIT7   0x00000080
 
#define BIT8   0x00000100
 
#define BIT9   0x00000200
 
#define BIT10   0x00000400
 
#define BIT11   0x00000800
 
#define BIT12   0x00001000
 
#define BIT13   0x00002000
 
#define BIT14   0x00004000
 
#define BIT15   0x00008000
 
#define BIT16   0x00010000
 
#define BIT17   0x00020000
 
#define BIT18   0x00040000
 
#define BIT19   0x00080000
 
#define BIT20   0x00100000
 
#define BIT21   0x00200000
 
#define BIT22   0x00400000
 
#define BIT23   0x00800000
 
#define BIT24   0x01000000
 
#define BIT25   0x02000000
 
#define BIT26   0x04000000
 
#define BIT27   0x08000000
 
#define BIT28   0x10000000
 
#define BIT29   0x20000000
 
#define BIT30   0x40000000
 
#define BIT31   0x80000000
 
#define MAX_WMMELE_LENGTH   64
 
#define QOS_DISABLE   0
 
#define QOS_WMM   1
 
#define QOS_WMMSA   2
 
#define QOS_EDCA   4
 
#define QOS_HCCA   8
 
#define QOS_WMM_UAPSD   16
 
#define AC_PARAM_SIZE   4
 
#define WMM_PARAM_ELE_BODY_LEN   18
 
#define WMM_PARAM_ELEMENT_SIZE   (8+(4*AC_PARAM_SIZE))
 
#define AC0_BE   0
 
#define AC1_BK   1
 
#define AC2_VI   2
 
#define AC3_VO   3
 
#define AC_MAX   4
 
#define GET_VO_UAPSD(_apsd)   ((_apsd) & BIT0)
 
#define SET_VO_UAPSD(_apsd)   ((_apsd) |= BIT0)
 
#define GET_VI_UAPSD(_apsd)   ((_apsd) & BIT1)
 
#define SET_VI_UAPSD(_apsd)   ((_apsd) |= BIT1)
 
#define GET_BK_UAPSD(_apsd)   ((_apsd) & BIT2)
 
#define SET_BK_UAPSD(_apsd)   ((_apsd) |= BIT2)
 
#define GET_BE_UAPSD(_apsd)   ((_apsd) & BIT3)
 
#define SET_BE_UAPSD(_apsd)   ((_apsd) |= BIT3)
 
#define sQoSCtlLng   2
 
#define QOS_CTRL_LEN(_QosMode)   ((_QosMode > QOS_DISABLE)? sQoSCtlLng : 0)
 
#define IsACValid(ac)   ((ac<=7 )?true:false )
 

Typedefs

typedef u32 QOS_MODE
 
typedef u32PQOS_MODE
 
typedef enum _ACK_POLICY ACK_POLICY
 
typedef enum _ACK_POLICYPACK_POLICY
 
typedef union _QOS_CTRL_FIELD QOS_CTRL_FIELD
 
typedef union _QOS_CTRL_FIELDPQOS_CTRL_FIELD
 
typedef union _QOS_INFO_FIELD QOS_INFO_FIELD
 
typedef union _QOS_INFO_FIELDPQOS_INFO_FIELD
 
typedef u32 AC_CODING
 
typedef union _ACI_AIFSN ACI_AIFSN
 
typedef union _ACI_AIFSNPACI_AIFSN
 
typedef union _ECW ECW
 
typedef union _ECWPECW
 
typedef union _AC_PARAM AC_PARAM
 
typedef union _AC_PARAMPAC_PARAM
 
typedef enum _QOS_ELE_SUBTYPE QOS_ELE_SUBTYPE
 
typedef enum _QOS_ELE_SUBTYPEPQOS_ELE_SUBTYPE
 
typedef enum _DIRECTION_VALUE DIRECTION_VALUE
 
typedef enum _DIRECTION_VALUEPDIRECTION_VALUE
 
typedef union _QOS_TSINFO QOS_TSINFO
 
typedef union _QOS_TSINFOPQOS_TSINFO
 
typedef union _TSPEC_BODY TSPEC_BODY
 
typedef union _TSPEC_BODYPTSPEC_BODY
 
typedef struct _WMM_TSPEC WMM_TSPEC
 
typedef struct _WMM_TSPECPWMM_TSPEC
 
typedef enum _ACM_METHOD ACM_METHOD
 
typedef enum _ACM_METHODPACM_METHOD
 
typedef struct _ACM ACM
 
typedef struct _ACMPACM
 
typedef u8 AC_UAPSD
 
typedef u8PAC_UAPSD
 
typedef union _QOS_TCLAS QOS_TCLAS
 
typedef union _QOS_TCLASPQOS_TCLAS
 
typedef struct _QOS_TSTREAM QOS_TSTREAM
 
typedef struct _QOS_TSTREAMPQOS_TSTREAM
 
typedef struct _OCTET_STRING OCTET_STRING
 
typedef struct _OCTET_STRINGPOCTET_STRING
 
typedef struct _STA_QOS STA_QOS
 
typedef struct _STA_QOSPSTA_QOS
 
typedef struct _BSS_QOS BSS_QOS
 
typedef struct _BSS_QOSPBSS_QOS
 

Enumerations

enum  _ACK_POLICY { eAckPlc0_ACK = 0x00, eAckPlc1_NoACK = 0x01 }
 
enum  _QOS_ELE_SUBTYPE { QOSELE_TYPE_INFO = 0x00, QOSELE_TYPE_PARAM = 0x01 }
 
enum  _DIRECTION_VALUE { DIR_UP = 0, DIR_DOWN = 1, DIR_DIRECT = 2, DIR_BI_DIR = 3 }
 
enum  _ACM_METHOD { eAcmWay0_SwAndHw = 0, eAcmWay1_HW = 1, eAcmWay2_SW = 2 }
 

Macro Definition Documentation

#define AC0_BE   0

Definition at line 236 of file rtl819x_Qos.h.

#define AC1_BK   1

Definition at line 237 of file rtl819x_Qos.h.

#define AC2_VI   2

Definition at line 238 of file rtl819x_Qos.h.

#define AC3_VO   3

Definition at line 239 of file rtl819x_Qos.h.

#define AC_MAX   4

Definition at line 240 of file rtl819x_Qos.h.

#define AC_PARAM_SIZE   4

Definition at line 59 of file rtl819x_Qos.h.

#define BIT0   0x00000001

Definition at line 4 of file rtl819x_Qos.h.

#define BIT1   0x00000002

Definition at line 5 of file rtl819x_Qos.h.

#define BIT10   0x00000400

Definition at line 14 of file rtl819x_Qos.h.

#define BIT11   0x00000800

Definition at line 15 of file rtl819x_Qos.h.

#define BIT12   0x00001000

Definition at line 16 of file rtl819x_Qos.h.

#define BIT13   0x00002000

Definition at line 17 of file rtl819x_Qos.h.

#define BIT14   0x00004000

Definition at line 18 of file rtl819x_Qos.h.

#define BIT15   0x00008000

Definition at line 19 of file rtl819x_Qos.h.

#define BIT16   0x00010000

Definition at line 20 of file rtl819x_Qos.h.

#define BIT17   0x00020000

Definition at line 21 of file rtl819x_Qos.h.

#define BIT18   0x00040000

Definition at line 22 of file rtl819x_Qos.h.

#define BIT19   0x00080000

Definition at line 23 of file rtl819x_Qos.h.

#define BIT2   0x00000004

Definition at line 6 of file rtl819x_Qos.h.

#define BIT20   0x00100000

Definition at line 24 of file rtl819x_Qos.h.

#define BIT21   0x00200000

Definition at line 25 of file rtl819x_Qos.h.

#define BIT22   0x00400000

Definition at line 26 of file rtl819x_Qos.h.

#define BIT23   0x00800000

Definition at line 27 of file rtl819x_Qos.h.

#define BIT24   0x01000000

Definition at line 28 of file rtl819x_Qos.h.

#define BIT25   0x02000000

Definition at line 29 of file rtl819x_Qos.h.

#define BIT26   0x04000000

Definition at line 30 of file rtl819x_Qos.h.

#define BIT27   0x08000000

Definition at line 31 of file rtl819x_Qos.h.

#define BIT28   0x10000000

Definition at line 32 of file rtl819x_Qos.h.

#define BIT29   0x20000000

Definition at line 33 of file rtl819x_Qos.h.

#define BIT3   0x00000008

Definition at line 7 of file rtl819x_Qos.h.

#define BIT30   0x40000000

Definition at line 34 of file rtl819x_Qos.h.

#define BIT31   0x80000000

Definition at line 35 of file rtl819x_Qos.h.

#define BIT4   0x00000010

Definition at line 8 of file rtl819x_Qos.h.

#define BIT5   0x00000020

Definition at line 9 of file rtl819x_Qos.h.

#define BIT6   0x00000040

Definition at line 10 of file rtl819x_Qos.h.

#define BIT7   0x00000080

Definition at line 11 of file rtl819x_Qos.h.

#define BIT8   0x00000100

Definition at line 12 of file rtl819x_Qos.h.

#define BIT9   0x00000200

Definition at line 13 of file rtl819x_Qos.h.

#define GET_BE_UAPSD (   _apsd)    ((_apsd) & BIT3)

Definition at line 404 of file rtl819x_Qos.h.

#define GET_BK_UAPSD (   _apsd)    ((_apsd) & BIT2)

Definition at line 401 of file rtl819x_Qos.h.

#define GET_VI_UAPSD (   _apsd)    ((_apsd) & BIT1)

Definition at line 398 of file rtl819x_Qos.h.

#define GET_VO_UAPSD (   _apsd)    ((_apsd) & BIT0)

Definition at line 395 of file rtl819x_Qos.h.

#define IsACValid (   ac)    ((ac<=7 )?true:false )

Definition at line 580 of file rtl819x_Qos.h.

#define MAX_WMMELE_LENGTH   64

Definition at line 37 of file rtl819x_Qos.h.

#define QOS_CTRL_LEN (   _QosMode)    ((_QosMode > QOS_DISABLE)? sQoSCtlLng : 0)

Definition at line 574 of file rtl819x_Qos.h.

#define QOS_DISABLE   0

Definition at line 52 of file rtl819x_Qos.h.

#define QOS_EDCA   4

Definition at line 55 of file rtl819x_Qos.h.

#define QOS_HCCA   8

Definition at line 56 of file rtl819x_Qos.h.

#define QOS_WMM   1

Definition at line 53 of file rtl819x_Qos.h.

#define QOS_WMM_UAPSD   16

Definition at line 57 of file rtl819x_Qos.h.

#define QOS_WMMSA   2

Definition at line 54 of file rtl819x_Qos.h.

#define SET_BE_UAPSD (   _apsd)    ((_apsd) |= BIT3)

Definition at line 405 of file rtl819x_Qos.h.

#define SET_BK_UAPSD (   _apsd)    ((_apsd) |= BIT2)

Definition at line 402 of file rtl819x_Qos.h.

#define SET_VI_UAPSD (   _apsd)    ((_apsd) |= BIT1)

Definition at line 399 of file rtl819x_Qos.h.

#define SET_VO_UAPSD (   _apsd)    ((_apsd) |= BIT0)

Definition at line 396 of file rtl819x_Qos.h.

#define sQoSCtlLng   2

Definition at line 573 of file rtl819x_Qos.h.

#define WMM_PARAM_ELE_BODY_LEN   18

Definition at line 60 of file rtl819x_Qos.h.

#define WMM_PARAM_ELEMENT_SIZE   (8+(4*AC_PARAM_SIZE))

Definition at line 71 of file rtl819x_Qos.h.

Typedef Documentation

typedef u32 AC_CODING

Definition at line 235 of file rtl819x_Qos.h.

typedef union _AC_PARAM AC_PARAM
typedef u8 AC_UAPSD

Definition at line 393 of file rtl819x_Qos.h.

typedef union _ACI_AIFSN ACI_AIFSN
typedef enum _ACK_POLICY ACK_POLICY
typedef struct _ACM ACM
typedef enum _ACM_METHOD ACM_METHOD
typedef union _ECW ECW
typedef union _AC_PARAM * PAC_PARAM
typedef u8 * PAC_UAPSD

Definition at line 393 of file rtl819x_Qos.h.

typedef union _ACI_AIFSN * PACI_AIFSN
typedef enum _ACK_POLICY* PACK_POLICY
typedef struct _ACM * PACM
typedef enum _ACM_METHOD* PACM_METHOD
typedef union _ECW * PECW
typedef u32 * PQOS_MODE

Definition at line 51 of file rtl819x_Qos.h.

typedef union _QOS_TCLAS * PQOS_TCLAS
typedef union _QOS_TSINFO * PQOS_TSINFO
typedef union _TSPEC_BODY * PTSPEC_BODY
typedef u32 QOS_MODE

Definition at line 51 of file rtl819x_Qos.h.

typedef union _QOS_TCLAS QOS_TCLAS
typedef union _QOS_TSINFO QOS_TSINFO
typedef union _TSPEC_BODY TSPEC_BODY

Enumeration Type Documentation

Enumerator:
eAckPlc0_ACK 
eAckPlc1_NoACK 

Definition at line 66 of file rtl819x_Qos.h.

Enumerator:
eAcmWay0_SwAndHw 
eAcmWay1_HW 
eAcmWay2_SW 

Definition at line 379 of file rtl819x_Qos.h.

Enumerator:
DIR_UP 
DIR_DOWN 
DIR_DIRECT 
DIR_BI_DIR 

Definition at line 302 of file rtl819x_Qos.h.

Enumerator:
QOSELE_TYPE_INFO 
QOSELE_TYPE_PARAM 

Definition at line 292 of file rtl819x_Qos.h.