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

Go to the source code of this file.

Data Structures

struct  oz_elt
 
struct  oz_hdr
 
struct  oz_elt_connect_req
 
struct  oz_elt_connect_rsp
 
struct  oz_elt_farewell
 
struct  oz_elt_update_param
 
struct  oz_app_hdr
 
struct  oz_usb_hdr
 
struct  oz_get_desc_req
 
struct  oz_get_desc_rsp
 
struct  oz_feature_req
 
struct  oz_feature_rsp
 
struct  oz_set_config_req
 
struct  oz_set_config_rsp
 
struct  oz_set_interface_req
 
struct  oz_set_interface_rsp
 
struct  oz_get_interface_req
 
struct  oz_get_interface_rsp
 
struct  oz_vendor_class_req
 
struct  oz_vendor_class_rsp
 
struct  oz_data
 
struct  oz_isoc_fixed
 
struct  oz_multiple_fixed
 
struct  oz_fragmented
 
struct  oz_isoc_large
 

Macros

#define PACKED   __packed
 
#define OZ_ETHERTYPE   0x892e
 
#define OZ_STATUS_SUCCESS   0
 
#define OZ_STATUS_INVALID_PARAM   1
 
#define OZ_STATUS_TOO_MANY_PDS   2
 
#define OZ_STATUS_NOT_ALLOWED   4
 
#define OZ_STATUS_SESSION_MISMATCH   5
 
#define OZ_STATUS_SESSION_TEARDOWN   6
 
#define oz_next_elt(__elt)   (struct oz_elt *)((u8 *)((__elt) + 1) + (__elt)->length)
 
#define OZ_ELT_CONNECT_REQ   0x06
 
#define OZ_ELT_CONNECT_RSP   0x07
 
#define OZ_ELT_DISCONNECT   0x08
 
#define OZ_ELT_UPDATE_PARAM_REQ   0x11
 
#define OZ_ELT_FAREWELL_REQ   0x12
 
#define OZ_ELT_APP_DATA   0x31
 
#define OZ_PROTOCOL_VERSION   0x1
 
#define OZ_VERSION_MASK   0xc
 
#define OZ_VERSION_SHIFT   2
 
#define OZ_F_ACK   0x10
 
#define OZ_F_ISOC   0x20
 
#define OZ_F_MORE_DATA   0x40
 
#define OZ_F_ACK_REQUESTED   0x80
 
#define oz_get_prot_ver(__x)   (((__x) & OZ_VERSION_MASK) >> OZ_VERSION_SHIFT)
 
#define OZ_LAST_PN_MASK   0x00ff
 
#define OZ_LAST_PN_HALF_CYCLE   127
 
#define OZ_LATENCY_MASK   0xc0
 
#define OZ_ONE_MS_LATENCY   0x40
 
#define OZ_TEN_MS_LATENCY   0x80
 
#define OZ_MODE_POLLED   0x0
 
#define OZ_MODE_TRIGGERED   0x1
 
#define OZ_MODE_MASK   0xf
 
#define OZ_F_ISOC_NO_ELTS   0x40
 
#define OZ_F_ISOC_ANYTIME   0x80
 
#define OZ_NO_ELTS_ANYTIME   0xc0
 
#define OZ_KALIVE_TYPE_MASK   0xc0
 
#define OZ_KALIVE_VALUE_MASK   0x3f
 
#define OZ_KALIVE_SPECIAL   0x00
 
#define OZ_KALIVE_SECS   0x40
 
#define OZ_KALIVE_MINS   0x80
 
#define OZ_KALIVE_HOURS   0xc0
 
#define OZ_APPID_USB   0x1
 
#define OZ_APPID_UNUSED1   0x2
 
#define OZ_APPID_UNUSED2   0x3
 
#define OZ_APPID_SERIAL   0x4
 
#define OZ_APPID_MAX   OZ_APPID_SERIAL
 
#define OZ_NB_APPS   (OZ_APPID_MAX+1)
 
#define OZ_GET_DESC_REQ   1
 
#define OZ_GET_DESC_RSP   2
 
#define OZ_SET_CONFIG_REQ   3
 
#define OZ_SET_CONFIG_RSP   4
 
#define OZ_SET_INTERFACE_REQ   5
 
#define OZ_SET_INTERFACE_RSP   6
 
#define OZ_VENDOR_CLASS_REQ   7
 
#define OZ_VENDOR_CLASS_RSP   8
 
#define OZ_GET_STATUS_REQ   9
 
#define OZ_GET_STATUS_RSP   10
 
#define OZ_CLEAR_FEATURE_REQ   11
 
#define OZ_CLEAR_FEATURE_RSP   12
 
#define OZ_SET_FEATURE_REQ   13
 
#define OZ_SET_FEATURE_RSP   14
 
#define OZ_GET_CONFIGURATION_REQ   15
 
#define OZ_GET_CONFIGURATION_RSP   16
 
#define OZ_GET_INTERFACE_REQ   17
 
#define OZ_GET_INTERFACE_RSP   18
 
#define OZ_SYNCH_FRAME_REQ   19
 
#define OZ_SYNCH_FRAME_RSP   20
 
#define OZ_USB_ENDPOINT_DATA   23
 
#define OZ_REQD_D2H   0x80
 
#define OZ_DESC_DEVICE   0x01
 
#define OZ_DESC_CONFIG   0x02
 
#define OZ_DESC_STRING   0x03
 
#define OZ_RECP_MASK   0x1F
 
#define OZ_RECP_DEVICE   0x00
 
#define OZ_RECP_INTERFACE   0x01
 
#define OZ_RECP_ENDPOINT   0x02
 
#define OZ_REQT_MASK   0x60
 
#define OZ_REQT_STD   0x00
 
#define OZ_REQT_CLASS   0x20
 
#define OZ_REQT_VENDOR   0x40
 
#define OZ_DATA_F_TYPE_MASK   0xF
 
#define OZ_DATA_F_MULTIPLE_FIXED   0x1
 
#define OZ_DATA_F_MULTIPLE_VAR   0x2
 
#define OZ_DATA_F_ISOC_FIXED   0x3
 
#define OZ_DATA_F_ISOC_VAR   0x4
 
#define OZ_DATA_F_FRAGMENTED   0x5
 
#define OZ_DATA_F_ISOC_LARGE   0x7
 

Variables

struct oz_elt PACKED
 

Macro Definition Documentation

#define OZ_APPID_MAX   OZ_APPID_SERIAL

Definition at line 145 of file ozprotocol.h.

#define OZ_APPID_SERIAL   0x4

Definition at line 144 of file ozprotocol.h.

#define OZ_APPID_UNUSED1   0x2

Definition at line 142 of file ozprotocol.h.

#define OZ_APPID_UNUSED2   0x3

Definition at line 143 of file ozprotocol.h.

#define OZ_APPID_USB   0x1

Definition at line 141 of file ozprotocol.h.

#define OZ_CLEAR_FEATURE_REQ   11

Definition at line 172 of file ozprotocol.h.

#define OZ_CLEAR_FEATURE_RSP   12

Definition at line 173 of file ozprotocol.h.

#define OZ_DATA_F_FRAGMENTED   0x5

Definition at line 374 of file ozprotocol.h.

#define OZ_DATA_F_ISOC_FIXED   0x3

Definition at line 372 of file ozprotocol.h.

#define OZ_DATA_F_ISOC_LARGE   0x7

Definition at line 375 of file ozprotocol.h.

#define OZ_DATA_F_ISOC_VAR   0x4

Definition at line 373 of file ozprotocol.h.

#define OZ_DATA_F_MULTIPLE_FIXED   0x1

Definition at line 370 of file ozprotocol.h.

#define OZ_DATA_F_MULTIPLE_VAR   0x2

Definition at line 371 of file ozprotocol.h.

#define OZ_DATA_F_TYPE_MASK   0xF

Definition at line 369 of file ozprotocol.h.

#define OZ_DESC_CONFIG   0x02

Definition at line 202 of file ozprotocol.h.

#define OZ_DESC_DEVICE   0x01

Definition at line 201 of file ozprotocol.h.

#define OZ_DESC_STRING   0x03

Definition at line 203 of file ozprotocol.h.

#define OZ_ELT_APP_DATA   0x31

Definition at line 40 of file ozprotocol.h.

#define OZ_ELT_CONNECT_REQ   0x06

Definition at line 35 of file ozprotocol.h.

#define OZ_ELT_CONNECT_RSP   0x07

Definition at line 36 of file ozprotocol.h.

#define OZ_ELT_DISCONNECT   0x08

Definition at line 37 of file ozprotocol.h.

#define OZ_ELT_FAREWELL_REQ   0x12

Definition at line 39 of file ozprotocol.h.

#define OZ_ELT_UPDATE_PARAM_REQ   0x11

Definition at line 38 of file ozprotocol.h.

#define OZ_ETHERTYPE   0x892e

Definition at line 11 of file ozprotocol.h.

#define OZ_F_ACK   0x10

Definition at line 55 of file ozprotocol.h.

#define OZ_F_ACK_REQUESTED   0x80

Definition at line 58 of file ozprotocol.h.

#define OZ_F_ISOC   0x20

Definition at line 56 of file ozprotocol.h.

#define OZ_F_ISOC_ANYTIME   0x80

Definition at line 95 of file ozprotocol.h.

#define OZ_F_ISOC_NO_ELTS   0x40

Definition at line 94 of file ozprotocol.h.

#define OZ_F_MORE_DATA   0x40

Definition at line 57 of file ozprotocol.h.

#define OZ_GET_CONFIGURATION_REQ   15

Definition at line 176 of file ozprotocol.h.

#define OZ_GET_CONFIGURATION_RSP   16

Definition at line 177 of file ozprotocol.h.

#define OZ_GET_DESC_REQ   1

Definition at line 162 of file ozprotocol.h.

#define OZ_GET_DESC_RSP   2

Definition at line 163 of file ozprotocol.h.

#define OZ_GET_INTERFACE_REQ   17

Definition at line 178 of file ozprotocol.h.

#define OZ_GET_INTERFACE_RSP   18

Definition at line 179 of file ozprotocol.h.

#define oz_get_prot_ver (   __x)    (((__x) & OZ_VERSION_MASK) >> OZ_VERSION_SHIFT)

Definition at line 60 of file ozprotocol.h.

#define OZ_GET_STATUS_REQ   9

Definition at line 170 of file ozprotocol.h.

#define OZ_GET_STATUS_RSP   10

Definition at line 171 of file ozprotocol.h.

#define OZ_KALIVE_HOURS   0xc0

Definition at line 105 of file ozprotocol.h.

#define OZ_KALIVE_MINS   0x80

Definition at line 104 of file ozprotocol.h.

#define OZ_KALIVE_SECS   0x40

Definition at line 103 of file ozprotocol.h.

#define OZ_KALIVE_SPECIAL   0x00

Definition at line 102 of file ozprotocol.h.

#define OZ_KALIVE_TYPE_MASK   0xc0

Definition at line 100 of file ozprotocol.h.

#define OZ_KALIVE_VALUE_MASK   0x3f

Definition at line 101 of file ozprotocol.h.

#define OZ_LAST_PN_HALF_CYCLE   127

Definition at line 66 of file ozprotocol.h.

#define OZ_LAST_PN_MASK   0x00ff

Definition at line 64 of file ozprotocol.h.

#define OZ_LATENCY_MASK   0xc0

Definition at line 68 of file ozprotocol.h.

#define OZ_MODE_MASK   0xf

Definition at line 93 of file ozprotocol.h.

#define OZ_MODE_POLLED   0x0

Definition at line 91 of file ozprotocol.h.

#define OZ_MODE_TRIGGERED   0x1

Definition at line 92 of file ozprotocol.h.

#define OZ_NB_APPS   (OZ_APPID_MAX+1)

Definition at line 146 of file ozprotocol.h.

#define oz_next_elt (   __elt)    (struct oz_elt *)((u8 *)((__elt) + 1) + (__elt)->length)

Definition at line 30 of file ozprotocol.h.

#define OZ_NO_ELTS_ANYTIME   0xc0

Definition at line 96 of file ozprotocol.h.

#define OZ_ONE_MS_LATENCY   0x40

Definition at line 69 of file ozprotocol.h.

#define OZ_PROTOCOL_VERSION   0x1

Definition at line 51 of file ozprotocol.h.

#define OZ_RECP_DEVICE   0x00

Definition at line 208 of file ozprotocol.h.

#define OZ_RECP_ENDPOINT   0x02

Definition at line 210 of file ozprotocol.h.

#define OZ_RECP_INTERFACE   0x01

Definition at line 209 of file ozprotocol.h.

#define OZ_RECP_MASK   0x1F

Definition at line 207 of file ozprotocol.h.

#define OZ_REQD_D2H   0x80

Definition at line 184 of file ozprotocol.h.

#define OZ_REQT_CLASS   0x20

Definition at line 214 of file ozprotocol.h.

#define OZ_REQT_MASK   0x60

Definition at line 212 of file ozprotocol.h.

#define OZ_REQT_STD   0x00

Definition at line 213 of file ozprotocol.h.

#define OZ_REQT_VENDOR   0x40

Definition at line 215 of file ozprotocol.h.

#define OZ_SET_CONFIG_REQ   3

Definition at line 164 of file ozprotocol.h.

#define OZ_SET_CONFIG_RSP   4

Definition at line 165 of file ozprotocol.h.

#define OZ_SET_FEATURE_REQ   13

Definition at line 174 of file ozprotocol.h.

#define OZ_SET_FEATURE_RSP   14

Definition at line 175 of file ozprotocol.h.

#define OZ_SET_INTERFACE_REQ   5

Definition at line 166 of file ozprotocol.h.

#define OZ_SET_INTERFACE_RSP   6

Definition at line 167 of file ozprotocol.h.

#define OZ_STATUS_INVALID_PARAM   1

Definition at line 16 of file ozprotocol.h.

#define OZ_STATUS_NOT_ALLOWED   4

Definition at line 18 of file ozprotocol.h.

#define OZ_STATUS_SESSION_MISMATCH   5

Definition at line 19 of file ozprotocol.h.

#define OZ_STATUS_SESSION_TEARDOWN   6

Definition at line 20 of file ozprotocol.h.

#define OZ_STATUS_SUCCESS   0

Definition at line 15 of file ozprotocol.h.

#define OZ_STATUS_TOO_MANY_PDS   2

Definition at line 17 of file ozprotocol.h.

#define OZ_SYNCH_FRAME_REQ   19

Definition at line 180 of file ozprotocol.h.

#define OZ_SYNCH_FRAME_RSP   20

Definition at line 181 of file ozprotocol.h.

#define OZ_TEN_MS_LATENCY   0x80

Definition at line 70 of file ozprotocol.h.

#define OZ_USB_ENDPOINT_DATA   23

Definition at line 182 of file ozprotocol.h.

#define OZ_VENDOR_CLASS_REQ   7

Definition at line 168 of file ozprotocol.h.

#define OZ_VENDOR_CLASS_RSP   8

Definition at line 169 of file ozprotocol.h.

#define OZ_VERSION_MASK   0xc

Definition at line 53 of file ozprotocol.h.

#define OZ_VERSION_SHIFT   2

Definition at line 54 of file ozprotocol.h.

#define PACKED   __packed

Definition at line 9 of file ozprotocol.h.

Variable Documentation