Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
unifiio.h File Reference
#include <linux/types.h>

Go to the source code of this file.

Data Structures

struct  unifiio_img_t
 
struct  udi_msg_t
 
struct  unifiio_filter_t
 
struct  unifiio_snap_filter_t
 
struct  unifi_putest_cmd52
 
struct  unifi_putest_block_cmd52_r
 
struct  unifi_putest_gp_rw16
 
struct  uf_cfg_bcast_packet_filter
 
struct  uf_cfg_ap_config
 
struct  tcpic_clsfr
 
struct  tclas
 
struct  unifiio_wapi_key_t
 
struct  unifiio_coredump_req
 

Macros

#define UNIFI_GET_UDI_ENABLE   _IOR('u', 1, int)
 
#define UNIFI_SET_UDI_ENABLE   _IOW('u', 2, int)
 
#define UDI_ENABLE_DATA   0x1
 
#define UDI_ENABLE_CONTROL   0x2
 
#define UNIFI_GET_MIB   _IOWR('u', 3, unsigned char *)
 
#define UNIFI_SET_MIB   _IOW ('u', 4, unsigned char *)
 
#define MAX_VARBIND_LENGTH   127
 
#define SIOCIWS80211POWERSAVEPRIV   SIOCIWFIRSTPRIV
 
#define SIOCIWG80211POWERSAVEPRIV   SIOCIWFIRSTPRIV + 1
 
#define SIOCIWS80211RELOADDEFAULTSPRIV   SIOCIWFIRSTPRIV + 2
 
#define SIOCIWSCONFWAPIPRIV   SIOCIWFIRSTPRIV + 4
 
#define SIOCIWSWAPIKEYPRIV   SIOCIWFIRSTPRIV + 6
 
#define SIOCIWSSMEDEBUGPRIV   SIOCIWFIRSTPRIV + 8
 
#define SIOCIWSAPCFGPRIV   SIOCIWFIRSTPRIV + 10
 
#define SIOCIWSAPSTARTPRIV   SIOCIWFIRSTPRIV + 12
 
#define SIOCIWSAPSTOPPRIV   SIOCIWFIRSTPRIV + 14
 
#define SIOCIWSFWRELOADPRIV   SIOCIWFIRSTPRIV + 16
 
#define SIOCIWSSTACKSTART   SIOCIWFIRSTPRIV + 18
 
#define SIOCIWSSTACKSTOP   SIOCIWFIRSTPRIV + 20
 
#define IWPRIV_POWER_SAVE_MAX_STRING   32
 
#define IWPRIV_SME_DEBUG_MAX_STRING   32
 
#define IWPRIV_SME_MAX_STRING   120
 
#define UNIFI_CFG   _IOWR('u', 5, unsigned char *)
 
#define UNIFI_PUTEST   _IOWR('u', 6, unsigned char *)
 
#define UNIFI_BUILD_TYPE   _IOWR('u', 7, unsigned char)
 
#define UNIFI_BUILD_NME   1
 
#define UNIFI_BUILD_WEXT   2
 
#define UNIFI_BUILD_AP   3
 
#define UNIFI_KICK   _IO ('u', 0x10)
 
#define UNIFI_SET_DEBUG   _IO ('u', 0x11)
 
#define UNIFI_SET_TRACE   _IO ('u', 0x12)
 
#define UNIFI_GET_INIT_STATUS   _IOR ('u', 0x15, int)
 
#define UNIFI_SET_UDI_LOG_MASK   _IOR('u', 0x18, unifiio_filter_t)
 
#define UNIFI_SET_UDI_SNAP_MASK   _IOW('u', 0x1a, unifiio_snap_filter_t)
 
#define UNIFI_SET_AMP_ENABLE   _IOWR('u', 0x1b, int)
 
#define UNIFI_INIT_HW   _IOR ('u', 0x13, unsigned char)
 
#define UNIFI_INIT_NETDEV   _IOW ('u', 0x14, unsigned char[6])
 
#define UNIFI_SME_PRESENT   _IOW ('u', 0x19, int)
 
#define UNIFI_CFG_PERIOD_TRAFFIC   _IOW ('u', 0x21, unsigned char *)
 
#define UNIFI_CFG_UAPSD_TRAFFIC   _IOW ('u', 0x22, unsigned char)
 
#define UNIFI_COREDUMP_GET_REG   _IOWR('u', 0x23, unifiio_coredump_req_t)
 
#define UDI_FROM_HOST   0
 
#define UDI_TO_HOST   1
 
#define UDI_CONFIG_IND   2
 
#define UNIFI_PUTEST_START   0
 
#define UNIFI_PUTEST_STOP   1
 
#define UNIFI_PUTEST_SET_SDIO_CLOCK   2
 
#define UNIFI_PUTEST_CMD52_READ   3
 
#define UNIFI_PUTEST_CMD52_WRITE   4
 
#define UNIFI_PUTEST_DL_FW   5
 
#define UNIFI_PUTEST_DL_FW_BUFF   6
 
#define UNIFI_PUTEST_CMD52_BLOCK_READ   7
 
#define UNIFI_PUTEST_COREDUMP_PREPARE   8
 
#define UNIFI_PUTEST_GP_READ16   9
 
#define UNIFI_PUTEST_GP_WRITE16   10
 
#define UNIFI_CFG_FILTER_NONE   0x0000
 
#define UNIFI_CFG_FILTER_DHCP   0x0001
 
#define UNIFI_CFG_FILTER_ARP   0x0002
 
#define UNIFI_CFG_FILTER_NBNS   0x0004
 
#define UNIFI_CFG_FILTER_NBDS   0x0008
 
#define UNIFI_CFG_FILTER_CUPS   0x0010
 
#define UNIFI_CFG_FILTER_ALL   0xFFFF
 
#define CONFIG_IND_ERROR   0x01
 
#define CONFIG_IND_EXIT   0x02
 
#define CONFIG_SME_NOT_PRESENT   0x10
 
#define CONFIG_SME_PRESENT   0x20
 

Typedefs

typedef u8 unifi_putest_command_t
 
typedef enum unifi_cfg_command unifi_cfg_command_t
 
typedef enum unifi_cfg_power unifi_cfg_power_t
 
typedef enum unifi_cfg_powersupply unifi_cfg_powersupply_t
 
typedef enum unifi_cfg_powersave unifi_cfg_powersave_t
 
typedef enum unifi_cfg_get unifi_cfg_get_t
 
typedef struct
uf_cfg_bcast_packet_filter 
uf_cfg_bcast_packet_filter_t
 
typedef struct uf_cfg_ap_config uf_cfg_ap_config_t
 
typedef enum unifiio_coredump_space unifiio_coredump_space_t
 
typedef struct unifiio_coredump_req unifiio_coredump_req_t
 

Enumerations

enum  uf_sigfilter_action_t { UfSigFil_AllOn = 0, UfSigFil_AllOff = 1, UfSigFil_SelectOn = 2, UfSigFil_SelectOff = 3 }
 
enum  unifi_cfg_command {
  UNIFI_CFG_GET, UNIFI_CFG_POWER, UNIFI_CFG_POWERSAVE, UNIFI_CFG_FILTER,
  UNIFI_CFG_POWERSUPPLY, UNIFI_CFG_WMM_QOSINFO, UNIFI_CFG_WMM_ADDTS, UNIFI_CFG_WMM_DELTS,
  UNIFI_CFG_STRICT_DRAFT_N, UNIFI_CFG_ENABLE_OKC, UNIFI_CFG_SET_AP_CONFIG, UNIFI_CFG_CORE_DUMP
}
 
enum  unifi_cfg_power { UNIFI_CFG_POWER_UNSPECIFIED, UNIFI_CFG_POWER_OFF, UNIFI_CFG_POWER_ON }
 
enum  unifi_cfg_powersupply { UNIFI_CFG_POWERSUPPLY_UNSPECIFIED, UNIFI_CFG_POWERSUPPLY_MAINS, UNIFI_CFG_POWERSUPPLY_BATTERIES }
 
enum  unifi_cfg_powersave {
  UNIFI_CFG_POWERSAVE_UNSPECIFIED, UNIFI_CFG_POWERSAVE_NONE, UNIFI_CFG_POWERSAVE_FAST, UNIFI_CFG_POWERSAVE_FULL,
  UNIFI_CFG_POWERSAVE_AUTO
}
 
enum  unifi_cfg_get {
  UNIFI_CFG_GET_COEX, UNIFI_CFG_GET_POWER_MODE, UNIFI_CFG_GET_VERSIONS, UNIFI_CFG_GET_POWER_SUPPLY,
  UNIFI_CFG_GET_INSTANCE, UNIFI_CFG_GET_AP_CONFIG
}
 
enum  unifiio_coredump_space {
  UNIFIIO_COREDUMP_MAC_REG, UNIFIIO_COREDUMP_PHY_REG, UNIFIIO_COREDUMP_SH_DMEM, UNIFIIO_COREDUMP_MAC_DMEM,
  UNIFIIO_COREDUMP_PHY_DMEM, UNIFIIO_COREDUMP_TRIGGER_MAGIC = 0xFEED
}
 

Functions

struct tcpic_clsfr __attribute__ ((packed)) tcpip_clsfr_t
 

Variables

typedef __attribute__
 
__u8 cls_fr_type
 
__u8 cls_fr_mask
 
__u8 version
 
__u8 source_ip_addr [4]
 
__u8 dest_ip_addr [4]
 
__u16 source_port
 
__u16 dest_port
 
__u8 dscp
 
__u8 protocol
 
__u8 reserved
 
__u8 element_id
 
__u8 length
 
__u8 user_priority
 
tcpip_clsfr_t tcp_ip_cls_fr
 

Macro Definition Documentation

#define CONFIG_IND_ERROR   0x01

Definition at line 352 of file unifiio.h.

#define CONFIG_IND_EXIT   0x02

Definition at line 353 of file unifiio.h.

#define CONFIG_SME_NOT_PRESENT   0x10

Definition at line 354 of file unifiio.h.

#define CONFIG_SME_PRESENT   0x20

Definition at line 355 of file unifiio.h.

#define IWPRIV_POWER_SAVE_MAX_STRING   32

Definition at line 50 of file unifiio.h.

#define IWPRIV_SME_DEBUG_MAX_STRING   32

Definition at line 51 of file unifiio.h.

#define IWPRIV_SME_MAX_STRING   120

Definition at line 52 of file unifiio.h.

#define MAX_VARBIND_LENGTH   127

Definition at line 32 of file unifiio.h.

#define SIOCIWG80211POWERSAVEPRIV   SIOCIWFIRSTPRIV + 1

Definition at line 36 of file unifiio.h.

#define SIOCIWS80211POWERSAVEPRIV   SIOCIWFIRSTPRIV

Definition at line 35 of file unifiio.h.

#define SIOCIWS80211RELOADDEFAULTSPRIV   SIOCIWFIRSTPRIV + 2

Definition at line 37 of file unifiio.h.

#define SIOCIWSAPCFGPRIV   SIOCIWFIRSTPRIV + 10

Definition at line 41 of file unifiio.h.

#define SIOCIWSAPSTARTPRIV   SIOCIWFIRSTPRIV + 12

Definition at line 42 of file unifiio.h.

#define SIOCIWSAPSTOPPRIV   SIOCIWFIRSTPRIV + 14

Definition at line 43 of file unifiio.h.

#define SIOCIWSCONFWAPIPRIV   SIOCIWFIRSTPRIV + 4

Definition at line 38 of file unifiio.h.

#define SIOCIWSFWRELOADPRIV   SIOCIWFIRSTPRIV + 16

Definition at line 44 of file unifiio.h.

#define SIOCIWSSMEDEBUGPRIV   SIOCIWFIRSTPRIV + 8

Definition at line 40 of file unifiio.h.

#define SIOCIWSSTACKSTART   SIOCIWFIRSTPRIV + 18

Definition at line 45 of file unifiio.h.

#define SIOCIWSSTACKSTOP   SIOCIWFIRSTPRIV + 20

Definition at line 46 of file unifiio.h.

#define SIOCIWSWAPIKEYPRIV   SIOCIWFIRSTPRIV + 6

Definition at line 39 of file unifiio.h.

#define UDI_CONFIG_IND   2

Definition at line 175 of file unifiio.h.

#define UDI_ENABLE_CONTROL   0x2

Definition at line 27 of file unifiio.h.

#define UDI_ENABLE_DATA   0x1

Definition at line 26 of file unifiio.h.

#define UDI_FROM_HOST   0

Definition at line 173 of file unifiio.h.

#define UDI_TO_HOST   1

Definition at line 174 of file unifiio.h.

#define UNIFI_BUILD_AP   3

Definition at line 107 of file unifiio.h.

#define UNIFI_BUILD_NME   1

Definition at line 105 of file unifiio.h.

#define UNIFI_BUILD_TYPE   _IOWR('u', 7, unsigned char)

Definition at line 104 of file unifiio.h.

#define UNIFI_BUILD_WEXT   2

Definition at line 106 of file unifiio.h.

#define UNIFI_CFG   _IOWR('u', 5, unsigned char *)

Definition at line 56 of file unifiio.h.

#define UNIFI_CFG_FILTER_ALL   0xFFFF

Definition at line 298 of file unifiio.h.

#define UNIFI_CFG_FILTER_ARP   0x0002

Definition at line 294 of file unifiio.h.

#define UNIFI_CFG_FILTER_CUPS   0x0010

Definition at line 297 of file unifiio.h.

#define UNIFI_CFG_FILTER_DHCP   0x0001

Definition at line 293 of file unifiio.h.

#define UNIFI_CFG_FILTER_NBDS   0x0008

Definition at line 296 of file unifiio.h.

#define UNIFI_CFG_FILTER_NBNS   0x0004

Definition at line 295 of file unifiio.h.

#define UNIFI_CFG_FILTER_NONE   0x0000

Definition at line 292 of file unifiio.h.

#define UNIFI_CFG_PERIOD_TRAFFIC   _IOW ('u', 0x21, unsigned char *)

Definition at line 123 of file unifiio.h.

#define UNIFI_CFG_UAPSD_TRAFFIC   _IOW ('u', 0x22, unsigned char)

Definition at line 124 of file unifiio.h.

#define UNIFI_COREDUMP_GET_REG   _IOWR('u', 0x23, unifiio_coredump_req_t)

Definition at line 126 of file unifiio.h.

#define UNIFI_GET_INIT_STATUS   _IOR ('u', 0x15, int)

Definition at line 114 of file unifiio.h.

#define UNIFI_GET_MIB   _IOWR('u', 3, unsigned char *)

Definition at line 30 of file unifiio.h.

#define UNIFI_GET_UDI_ENABLE   _IOR('u', 1, int)

Definition at line 23 of file unifiio.h.

#define UNIFI_INIT_HW   _IOR ('u', 0x13, unsigned char)

Definition at line 119 of file unifiio.h.

#define UNIFI_INIT_NETDEV   _IOW ('u', 0x14, unsigned char[6])

Definition at line 120 of file unifiio.h.

#define UNIFI_KICK   _IO ('u', 0x10)

Definition at line 110 of file unifiio.h.

#define UNIFI_PUTEST   _IOWR('u', 6, unsigned char *)

Definition at line 81 of file unifiio.h.

#define UNIFI_PUTEST_CMD52_BLOCK_READ   7

Definition at line 223 of file unifiio.h.

#define UNIFI_PUTEST_CMD52_READ   3

Definition at line 219 of file unifiio.h.

#define UNIFI_PUTEST_CMD52_WRITE   4

Definition at line 220 of file unifiio.h.

#define UNIFI_PUTEST_COREDUMP_PREPARE   8

Definition at line 224 of file unifiio.h.

#define UNIFI_PUTEST_DL_FW   5

Definition at line 221 of file unifiio.h.

#define UNIFI_PUTEST_DL_FW_BUFF   6

Definition at line 222 of file unifiio.h.

#define UNIFI_PUTEST_GP_READ16   9

Definition at line 225 of file unifiio.h.

#define UNIFI_PUTEST_GP_WRITE16   10

Definition at line 226 of file unifiio.h.

#define UNIFI_PUTEST_SET_SDIO_CLOCK   2

Definition at line 218 of file unifiio.h.

#define UNIFI_PUTEST_START   0

Definition at line 216 of file unifiio.h.

#define UNIFI_PUTEST_STOP   1

Definition at line 217 of file unifiio.h.

#define UNIFI_SET_AMP_ENABLE   _IOWR('u', 0x1b, int)

Definition at line 117 of file unifiio.h.

#define UNIFI_SET_DEBUG   _IO ('u', 0x11)

Definition at line 111 of file unifiio.h.

#define UNIFI_SET_MIB   _IOW ('u', 4, unsigned char *)

Definition at line 31 of file unifiio.h.

#define UNIFI_SET_TRACE   _IO ('u', 0x12)

Definition at line 112 of file unifiio.h.

#define UNIFI_SET_UDI_ENABLE   _IOW('u', 2, int)

Definition at line 24 of file unifiio.h.

#define UNIFI_SET_UDI_LOG_MASK   _IOR('u', 0x18, unifiio_filter_t)

Definition at line 115 of file unifiio.h.

#define UNIFI_SET_UDI_SNAP_MASK   _IOW('u', 0x1a, unifiio_snap_filter_t)

Definition at line 116 of file unifiio.h.

#define UNIFI_SME_PRESENT   _IOW ('u', 0x19, int)

Definition at line 121 of file unifiio.h.

Typedef Documentation

Definition at line 214 of file unifiio.h.

Enumeration Type Documentation

Enumerator:
UfSigFil_AllOn 
UfSigFil_AllOff 
UfSigFil_SelectOn 
UfSigFil_SelectOff 

Definition at line 185 of file unifiio.h.

Enumerator:
UNIFI_CFG_GET 
UNIFI_CFG_POWER 
UNIFI_CFG_POWERSAVE 
UNIFI_CFG_FILTER 
UNIFI_CFG_POWERSUPPLY 
UNIFI_CFG_WMM_QOSINFO 
UNIFI_CFG_WMM_ADDTS 
UNIFI_CFG_WMM_DELTS 
UNIFI_CFG_STRICT_DRAFT_N 
UNIFI_CFG_ENABLE_OKC 
UNIFI_CFG_SET_AP_CONFIG 
UNIFI_CFG_CORE_DUMP 

Definition at line 248 of file unifiio.h.

Enumerator:
UNIFI_CFG_GET_COEX 
UNIFI_CFG_GET_POWER_MODE 
UNIFI_CFG_GET_VERSIONS 
UNIFI_CFG_GET_POWER_SUPPLY 
UNIFI_CFG_GET_INSTANCE 
UNIFI_CFG_GET_AP_CONFIG 

Definition at line 283 of file unifiio.h.

Enumerator:
UNIFI_CFG_POWER_UNSPECIFIED 
UNIFI_CFG_POWER_OFF 
UNIFI_CFG_POWER_ON 

Definition at line 263 of file unifiio.h.

Enumerator:
UNIFI_CFG_POWERSAVE_UNSPECIFIED 
UNIFI_CFG_POWERSAVE_NONE 
UNIFI_CFG_POWERSAVE_FAST 
UNIFI_CFG_POWERSAVE_FULL 
UNIFI_CFG_POWERSAVE_AUTO 

Definition at line 275 of file unifiio.h.

Enumerator:
UNIFI_CFG_POWERSUPPLY_UNSPECIFIED 
UNIFI_CFG_POWERSUPPLY_MAINS 
UNIFI_CFG_POWERSUPPLY_BATTERIES 

Definition at line 269 of file unifiio.h.

Enumerator:
UNIFIIO_COREDUMP_MAC_REG 
UNIFIIO_COREDUMP_PHY_REG 
UNIFIIO_COREDUMP_SH_DMEM 
UNIFIIO_COREDUMP_MAC_DMEM 
UNIFIIO_COREDUMP_PHY_DMEM 
UNIFIIO_COREDUMP_TRIGGER_MAGIC 

Definition at line 371 of file unifiio.h.

Function Documentation

struct tcpic_clsfr __attribute__ ( (packed)  )
read

mcontroller : adapter info structure for old mimd_t apps

: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id

Definition at line 171 of file esd_usb2.c.

Variable Documentation

typedef __attribute__
__u8 cls_fr_mask

Definition at line 344 of file unifiio.h.

__u8 cls_fr_type

Definition at line 343 of file unifiio.h.

__u8 dest_ip_addr[4]

Definition at line 347 of file unifiio.h.

__u16 dest_port

Definition at line 349 of file unifiio.h.

__u8 dscp

Definition at line 350 of file unifiio.h.

u8 element_id

Definition at line 350 of file unifiio.h.

__u8 length

Definition at line 351 of file unifiio.h.

Definition at line 351 of file unifiio.h.

__u8 reserved

Definition at line 352 of file unifiio.h.

__u8 source_ip_addr[4]

Definition at line 346 of file unifiio.h.

__u16 source_port

Definition at line 348 of file unifiio.h.

tcpip_clsfr_t tcp_ip_cls_fr

Definition at line 353 of file unifiio.h.

__u8 user_priority

Definition at line 352 of file unifiio.h.

__u8 version

Definition at line 345 of file unifiio.h.