Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
irlan_common.h File Reference
#include <asm/param.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/skbuff.h>
#include <linux/netdevice.h>
#include <net/irda/irttp.h>

Go to the source code of this file.

Data Structures

struct  irlan_client_cb
 
struct  irlan_provider_cb
 
struct  irlan_cb
 

Macros

#define IRLAN_MTU   1518
 
#define IRLAN_TIMEOUT   10*HZ /* 10 seconds */
 
#define CMD_GET_PROVIDER_INFO   0
 
#define CMD_GET_MEDIA_CHAR   1
 
#define CMD_OPEN_DATA_CHANNEL   2
 
#define CMD_CLOSE_DATA_CHAN   3
 
#define CMD_RECONNECT_DATA_CHAN   4
 
#define CMD_FILTER_OPERATION   5
 
#define RSP_SUCCESS   0
 
#define RSP_INSUFFICIENT_RESOURCES   1
 
#define RSP_INVALID_COMMAND_FORMAT   2
 
#define RSP_COMMAND_NOT_SUPPORTED   3
 
#define RSP_PARAM_NOT_SUPPORTED   4
 
#define RSP_VALUE_NOT_SUPPORTED   5
 
#define RSP_NOT_OPEN   6
 
#define RSP_AUTHENTICATION_REQUIRED   7
 
#define RSP_INVALID_PASSWORD   8
 
#define RSP_PROTOCOL_ERROR   9
 
#define RSP_ASYNCHRONOUS_ERROR   255
 
#define MEDIA_802_3   1
 
#define MEDIA_802_5   2
 
#define DATA_CHAN   1
 
#define FILTER_TYPE   2
 
#define FILTER_MODE   3
 
#define IRLAN_DIRECTED   0x01
 
#define IRLAN_FUNCTIONAL   0x02
 
#define IRLAN_GROUP   0x04
 
#define IRLAN_MAC_FRAME   0x08
 
#define IRLAN_MULTICAST   0x10
 
#define IRLAN_BROADCAST   0x20
 
#define IRLAN_IPX_SOCKET   0x40
 
#define ALL   1
 
#define FILTER   2
 
#define NONE   3
 
#define GET   1
 
#define CLEAR   2
 
#define ADD   3
 
#define REMOVE   4
 
#define DYNAMIC   5
 
#define ACCESS_DIRECT   1
 
#define ACCESS_PEER   2
 
#define ACCESS_HOSTED   3
 
#define IRLAN_BYTE   0
 
#define IRLAN_SHORT   1
 
#define IRLAN_ARRAY   2
 
#define IRLAN_MAX_HEADER   (TTP_HEADER+LMP_HEADER)
 
#define IRLAN_CMD_HEADER   2
 
#define IRLAN_STRING_PARAMETER_LEN(name, value)
 
#define IRLAN_BYTE_PARAMETER_LEN(name)   (1 + strlen((name)) + 2 + 1)
 
#define IRLAN_SHORT_PARAMETER_LEN(name)   (1 + strlen((name)) + 2 + 2)
 

Functions

void irlan_close (struct irlan_cb *self)
 
void irlan_close_tsaps (struct irlan_cb *self)
 
int irlan_register_netdev (struct irlan_cb *self)
 
void irlan_ias_register (struct irlan_cb *self, __u8 tsap_sel)
 
void irlan_start_watchdog_timer (struct irlan_cb *self, int timeout)
 
void irlan_open_data_tsap (struct irlan_cb *self)
 
int irlan_run_ctrl_tx_queue (struct irlan_cb *self)
 
struct irlan_cbirlan_get_any (void)
 
void irlan_get_provider_info (struct irlan_cb *self)
 
void irlan_get_media_char (struct irlan_cb *self)
 
void irlan_open_data_channel (struct irlan_cb *self)
 
void irlan_close_data_channel (struct irlan_cb *self)
 
void irlan_set_multicast_filter (struct irlan_cb *self, int status)
 
void irlan_set_broadcast_filter (struct irlan_cb *self, int status)
 
int irlan_insert_byte_param (struct sk_buff *skb, char *param, __u8 value)
 
int irlan_insert_short_param (struct sk_buff *skb, char *param, __u16 value)
 
int irlan_insert_string_param (struct sk_buff *skb, char *param, char *value)
 
int irlan_insert_array_param (struct sk_buff *skb, char *name, __u8 *value, __u16 value_len)
 
int irlan_extract_param (__u8 *buf, char *name, char *value, __u16 *len)
 

Macro Definition Documentation

#define ACCESS_DIRECT   1

Definition at line 93 of file irlan_common.h.

#define ACCESS_HOSTED   3

Definition at line 95 of file irlan_common.h.

#define ACCESS_PEER   2

Definition at line 94 of file irlan_common.h.

#define ADD   3

Definition at line 88 of file irlan_common.h.

#define ALL   1

Definition at line 81 of file irlan_common.h.

#define CLEAR   2

Definition at line 87 of file irlan_common.h.

#define CMD_CLOSE_DATA_CHAN   3

Definition at line 45 of file irlan_common.h.

#define CMD_FILTER_OPERATION   5

Definition at line 47 of file irlan_common.h.

#define CMD_GET_MEDIA_CHAR   1

Definition at line 43 of file irlan_common.h.

#define CMD_GET_PROVIDER_INFO   0

Definition at line 42 of file irlan_common.h.

#define CMD_OPEN_DATA_CHANNEL   2

Definition at line 44 of file irlan_common.h.

#define CMD_RECONNECT_DATA_CHAN   4

Definition at line 46 of file irlan_common.h.

#define DATA_CHAN   1

Definition at line 67 of file irlan_common.h.

#define DYNAMIC   5

Definition at line 90 of file irlan_common.h.

#define FILTER   2

Definition at line 82 of file irlan_common.h.

#define FILTER_MODE   3

Definition at line 69 of file irlan_common.h.

#define FILTER_TYPE   2

Definition at line 68 of file irlan_common.h.

#define GET   1

Definition at line 86 of file irlan_common.h.

#define IRLAN_ARRAY   2

Definition at line 99 of file irlan_common.h.

#define IRLAN_BROADCAST   0x20

Definition at line 77 of file irlan_common.h.

#define IRLAN_BYTE   0

Definition at line 97 of file irlan_common.h.

#define IRLAN_BYTE_PARAMETER_LEN (   name)    (1 + strlen((name)) + 2 + 1)

Definition at line 108 of file irlan_common.h.

#define IRLAN_CMD_HEADER   2

Definition at line 104 of file irlan_common.h.

#define IRLAN_DIRECTED   0x01

Definition at line 72 of file irlan_common.h.

#define IRLAN_FUNCTIONAL   0x02

Definition at line 73 of file irlan_common.h.

#define IRLAN_GROUP   0x04

Definition at line 74 of file irlan_common.h.

#define IRLAN_IPX_SOCKET   0x40

Definition at line 78 of file irlan_common.h.

#define IRLAN_MAC_FRAME   0x08

Definition at line 75 of file irlan_common.h.

#define IRLAN_MAX_HEADER   (TTP_HEADER+LMP_HEADER)

Definition at line 102 of file irlan_common.h.

#define IRLAN_MTU   1518

Definition at line 38 of file irlan_common.h.

#define IRLAN_MULTICAST   0x10

Definition at line 76 of file irlan_common.h.

#define IRLAN_SHORT   1

Definition at line 98 of file irlan_common.h.

#define IRLAN_SHORT_PARAMETER_LEN (   name)    (1 + strlen((name)) + 2 + 2)

Definition at line 109 of file irlan_common.h.

#define IRLAN_STRING_PARAMETER_LEN (   name,
  value 
)
Value:
(1 + strlen((name)) + 2 \
+ strlen ((value)))

Definition at line 106 of file irlan_common.h.

#define IRLAN_TIMEOUT   10*HZ /* 10 seconds */

Definition at line 39 of file irlan_common.h.

#define MEDIA_802_3   1

Definition at line 63 of file irlan_common.h.

#define MEDIA_802_5   2

Definition at line 64 of file irlan_common.h.

#define NONE   3

Definition at line 83 of file irlan_common.h.

#define REMOVE   4

Definition at line 89 of file irlan_common.h.

#define RSP_ASYNCHRONOUS_ERROR   255

Definition at line 60 of file irlan_common.h.

#define RSP_AUTHENTICATION_REQUIRED   7

Definition at line 57 of file irlan_common.h.

#define RSP_COMMAND_NOT_SUPPORTED   3

Definition at line 53 of file irlan_common.h.

#define RSP_INSUFFICIENT_RESOURCES   1

Definition at line 51 of file irlan_common.h.

#define RSP_INVALID_COMMAND_FORMAT   2

Definition at line 52 of file irlan_common.h.

#define RSP_INVALID_PASSWORD   8

Definition at line 58 of file irlan_common.h.

#define RSP_NOT_OPEN   6

Definition at line 56 of file irlan_common.h.

#define RSP_PARAM_NOT_SUPPORTED   4

Definition at line 54 of file irlan_common.h.

#define RSP_PROTOCOL_ERROR   9

Definition at line 59 of file irlan_common.h.

#define RSP_SUCCESS   0

Definition at line 50 of file irlan_common.h.

#define RSP_VALUE_NOT_SUPPORTED   5

Definition at line 55 of file irlan_common.h.

Function Documentation

void irlan_close ( struct irlan_cb self)
void irlan_close_data_channel ( struct irlan_cb self)

Definition at line 703 of file irlan_common.c.

void irlan_close_tsaps ( struct irlan_cb self)

Definition at line 496 of file irlan_common.c.

int irlan_extract_param ( __u8 buf,
char name,
char value,
__u16 len 
)

Definition at line 1076 of file irlan_common.c.

struct irlan_cb* irlan_get_any ( void  )
read

Definition at line 292 of file irlan_common.c.

void irlan_get_media_char ( struct irlan_cb self)

Definition at line 915 of file irlan_common.c.

void irlan_get_provider_info ( struct irlan_cb self)

Definition at line 635 of file irlan_common.c.

void irlan_ias_register ( struct irlan_cb self,
__u8  tsap_sel 
)

Definition at line 530 of file irlan_common.c.

int irlan_insert_array_param ( struct sk_buff skb,
char name,
__u8 value,
__u16  value_len 
)

Definition at line 982 of file irlan_common.c.

int irlan_insert_byte_param ( struct sk_buff skb,
char param,
__u8  value 
)

Definition at line 952 of file irlan_common.c.

int irlan_insert_short_param ( struct sk_buff skb,
char param,
__u16  value 
)

Definition at line 957 of file irlan_common.c.

int irlan_insert_string_param ( struct sk_buff skb,
char param,
char value 
)

Definition at line 968 of file irlan_common.c.

void irlan_open_data_channel ( struct irlan_cb self)

Definition at line 668 of file irlan_common.c.

void irlan_open_data_tsap ( struct irlan_cb self)

Definition at line 457 of file irlan_common.c.

int irlan_register_netdev ( struct irlan_cb self)
int irlan_run_ctrl_tx_queue ( struct irlan_cb self)

Definition at line 584 of file irlan_common.c.

void irlan_set_broadcast_filter ( struct irlan_cb self,
int  status 
)

Definition at line 786 of file irlan_common.c.

void irlan_set_multicast_filter ( struct irlan_cb self,
int  status 
)

Definition at line 830 of file irlan_common.c.

void irlan_start_watchdog_timer ( struct irlan_cb self,
int  timeout 
)