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

Go to the source code of this file.

Data Structures

union  irda_pv_t
 
struct  irda_param_t
 
struct  pi_minor_info_t
 
struct  pi_major_info_t
 
struct  pi_param_info_t
 

Macros

#define PV_BIG_ENDIAN   0x80
 
#define PV_LITTLE_ENDIAN   0x00
 
#define PV_MASK   0x7f /* To mask away endian bit */
 
#define PV_PUT   0
 
#define PV_GET   1
 
#define irda_param_insert_byte(buf, pi, pv)   irda_param_pack(buf,"bbb",pi,1,pv)
 

Typedefs

typedef int(* PI_HANDLER )(void *self, irda_param_t *param, int get)
 
typedef int(* PV_HANDLER )(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func)
 

Enumerations

enum  PV_TYPE {
  PV_INTEGER, PV_INT_8_BITS, PV_INT_16_BITS, PV_STRING,
  PV_INT_32_BITS, PV_OCT_SEQ, PV_NO_VALUE
}
 

Functions

int irda_param_pack (__u8 *buf, char *fmt,...)
 
int irda_param_insert (void *self, __u8 pi, __u8 *buf, int len, pi_param_info_t *info)
 
int irda_param_extract_all (void *self, __u8 *buf, int len, pi_param_info_t *info)
 

Macro Definition Documentation

#define irda_param_insert_byte (   buf,
  pi,
  pv 
)    irda_param_pack(buf,"bbb",pi,1,pv)

Definition at line 99 of file parameters.h.

#define PV_BIG_ENDIAN   0x80

Definition at line 52 of file parameters.h.

#define PV_GET   1

Definition at line 57 of file parameters.h.

#define PV_LITTLE_ENDIAN   0x00

Definition at line 53 of file parameters.h.

#define PV_MASK   0x7f /* To mask away endian bit */

Definition at line 54 of file parameters.h.

#define PV_PUT   0

Definition at line 56 of file parameters.h.

Typedef Documentation

typedef int(* PI_HANDLER)(void *self, irda_param_t *param, int get)

Definition at line 71 of file parameters.h.

typedef int(* PV_HANDLER)(void *self, __u8 *buf, int len, __u8 pi, PV_TYPE type, PI_HANDLER func)

Definition at line 72 of file parameters.h.

Enumeration Type Documentation

enum PV_TYPE
Enumerator:
PV_INTEGER 
PV_INT_8_BITS 
PV_INT_16_BITS 
PV_STRING 
PV_INT_32_BITS 
PV_OCT_SEQ 
PV_NO_VALUE 

Definition at line 41 of file parameters.h.

Function Documentation

int irda_param_extract_all ( void self,
__u8 buf,
int  len,
pi_param_info_t info 
)

Definition at line 568 of file parameters.c.

int irda_param_insert ( void self,
__u8  pi,
__u8 buf,
int  len,
pi_param_info_t info 
)

Definition at line 457 of file parameters.c.

int irda_param_pack ( __u8 buf,
char fmt,
  ... 
)

Definition at line 367 of file parameters.c.