Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
wusb.h File Reference
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/uwb/spec.h>
#include <linux/usb/ch9.h>
#include <linux/param.h>

Go to the source code of this file.

Data Structures

struct  wuie_hdr
 
struct  wusb_ckhdid
 
struct  wuie_host_info
 
struct  wuie_connect_ack
 
struct  wuie_channel_stop
 
struct  wuie_keep_alive
 
struct  wuie_reset
 
struct  wuie_disconnect
 
struct  wuie_host_disconnect
 
struct  wusb_dn_hdr
 
struct  wusb_dn_connect
 
struct  wusb_dn_alive
 
struct  wusb_dn_disconnect
 
struct  aes_ccm_nonce
 
struct  aes_ccm_label
 
struct  wusb_keydvt_in
 
struct  wusb_keydvt_out
 

Macros

#define WUIE_ELT_MAX   4
 
#define WUSB_CKHDID_STRSIZE   (3 * sizeof(struct wusb_ckhdid) + 1)
 
#define WUSB_KEY_INDEX_TYPE_PTK   0 /* for HWA only */
 
#define WUSB_KEY_INDEX_TYPE_ASSOC   1
 
#define WUSB_KEY_INDEX_TYPE_GTK   2
 
#define WUSB_KEY_INDEX_ORIGINATOR_HOST   0
 
#define WUSB_KEY_INDEX_ORIGINATOR_DEVICE   1
 

Enumerations

enum  {
  WUIE_ID_WCTA = 0x80, WUIE_ID_CONNECTACK, WUIE_ID_HOST_INFO, WUIE_ID_CHANGE_ANNOUNCE,
  WUIE_ID_DEVICE_DISCONNECT, WUIE_ID_HOST_DISCONNECT, WUIE_ID_KEEP_ALIVE = 0x89, WUIE_ID_ISOCH_DISCARD,
  WUIE_ID_RESET_DEVICE
}
 
enum  { WUIE_HI_CAP_RECONNECT = 0, WUIE_HI_CAP_LIMITED, WUIE_HI_CAP_RESERVED, WUIE_HI_CAP_ALL }
 
enum  WUSB_DN {
  WUSB_DN_CONNECT = 0x01, WUSB_DN_DISCONNECT = 0x02, WUSB_DN_EPRDY = 0x03, WUSB_DN_MASAVAILCHANGED = 0x04,
  WUSB_DN_RWAKE = 0x05, WUSB_DN_SLEEP = 0x06, WUSB_DN_ALIVE = 0x07
}
 
enum  { WUSB_TRUST_TIMEOUT_MS = 4000 }
 

Functions

struct wuie_hdr __attribute__ ((packed))
 
const charwusb_et_name (u8)
 
int wusb_crypto_init (void)
 
void wusb_crypto_exit (void)
 
ssize_t wusb_prf (void *out, size_t out_size, const u8 key[16], const struct aes_ccm_nonce *_n, const struct aes_ccm_label *a, const void *b, size_t blen, size_t len)
 

Variables

u8 bLength
 
u8 bIEIdentifier
 
enum { ... }  __attribute__
 
u8 data [16]
 
struct wuie_hdr hdr
 
__le16 attributes
 
struct wusb_ckhdid CHID
 
struct {
   struct wusb_ckhdid   CDID
 
   u8   bDeviceAddress
 
   u8   bReserved
 
blk [WUIE_ELT_MAX]
 
u8 timestamp [3]
 
u8 padding
 
u8 bType
 
u8 notifdata []
 
u8 sfn [6]
 
u8 tkid [3]
 
struct uwb_dev_addr dest_addr
 
struct uwb_dev_addr src_addr
 
u8 hnonce [16]
 
u8 dnonce [16]
 
u8 kck [16]
 
u8 ptk [16]
 

Macro Definition Documentation

#define WUIE_ELT_MAX   4

Maximum number of array elements in a WUSB IE.

WUSB1.0[7.5 before table 7-38] says that in WUSB IEs that are "arrays" have to limited to 4 elements. So we define it like that to ease up and submit only the neeed size.

Definition at line 69 of file wusb.h.

#define WUSB_CKHDID_STRSIZE   (3 * sizeof(struct wusb_ckhdid) + 1)

Definition at line 85 of file wusb.h.

#define WUSB_KEY_INDEX_ORIGINATOR_DEVICE   1

Definition at line 273 of file wusb.h.

#define WUSB_KEY_INDEX_ORIGINATOR_HOST   0

Definition at line 272 of file wusb.h.

#define WUSB_KEY_INDEX_TYPE_ASSOC   1

Definition at line 270 of file wusb.h.

#define WUSB_KEY_INDEX_TYPE_GTK   2

Definition at line 271 of file wusb.h.

#define WUSB_KEY_INDEX_TYPE_PTK   0 /* for HWA only */

Definition at line 269 of file wusb.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
WUIE_ID_WCTA 
WUIE_ID_CONNECTACK 
WUIE_ID_HOST_INFO 
WUIE_ID_CHANGE_ANNOUNCE 
WUIE_ID_DEVICE_DISCONNECT 
WUIE_ID_HOST_DISCONNECT 
WUIE_ID_KEEP_ALIVE 
WUIE_ID_ISOCH_DISCARD 
WUIE_ID_RESET_DEVICE 

Definition at line 50 of file wusb.h.

anonymous enum

WUSB IE Host Information Element, Connect Availability

WUSB1.0[7.5.2], bmAttributes description

Enumerator:
WUIE_HI_CAP_RECONNECT 
WUIE_HI_CAP_LIMITED 
WUIE_HI_CAP_RESERVED 
WUIE_HI_CAP_ALL 

Definition at line 119 of file wusb.h.

anonymous enum
Enumerator:
WUSB_TRUST_TIMEOUT_MS 

Definition at line 234 of file wusb.h.

enum WUSB_DN

Device Notification codes (WUSB1.0[Table 7-54])

Enumerator:
WUSB_DN_CONNECT 
WUSB_DN_DISCONNECT 
WUSB_DN_EPRDY 
WUSB_DN_MASAVAILCHANGED 
WUSB_DN_RWAKE 
WUSB_DN_SLEEP 
WUSB_DN_ALIVE 

Definition at line 191 of file wusb.h.

Function Documentation

struct wuie_hdr __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.

void wusb_crypto_exit ( void  )

Definition at line 515 of file crypto.c.

int wusb_crypto_init ( void  )

Definition at line 502 of file crypto.c.

const char* wusb_et_name ( u8  x)
Returns
encryption type name

Definition at line 137 of file security.c.

ssize_t wusb_prf ( void out,
size_t  out_size,
const u8  key[16],
const struct aes_ccm_nonce _n,
const struct aes_ccm_label a,
const void b,
size_t  blen,
size_t  len 
)

Definition at line 299 of file crypto.c.

Variable Documentation

enum { ... } __attribute__
__le16 attributes

Definition at line 99 of file wusb.h.

u8 bDeviceAddress

Definition at line 116 of file wusb.h.

u8 bIEIdentifier

Definition at line 50 of file wusb.h.

u8 bLength

Definition at line 49 of file wusb.h.

struct { ... } blk[WUIE_ELT_MAX]
u8 bReserved

Definition at line 117 of file wusb.h.

u8 bType

Definition at line 189 of file wusb.h.

Definition at line 115 of file wusb.h.

Definition at line 100 of file wusb.h.

u8 data[14]

Definition at line 82 of file wusb.h.

struct uwb_dev_addr dest_addr

Definition at line 284 of file wusb.h.

u8 dnonce[16]

Definition at line 298 of file wusb.h.

Definition at line 98 of file wusb.h.

u8 hnonce[16]

Definition at line 297 of file wusb.h.

u8 kck[16]

Definition at line 306 of file wusb.h.

u8 notifdata[]

Definition at line 190 of file wusb.h.

u8 padding

Definition at line 174 of file wusb.h.

u8 ptk[16]

Definition at line 307 of file wusb.h.

u8 sfn[6]

Definition at line 282 of file wusb.h.

struct uwb_dev_addr src_addr

Definition at line 285 of file wusb.h.

Definition at line 138 of file wusb.h.

u8 tkid[3]

Definition at line 283 of file wusb.h.