Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
st_proto_s Struct Reference

#include <ti_wilink_st.h>

Data Fields

enum proto_type type
 
long(* recv )(void *, struct sk_buff *)
 
unsigned char(* match_packet )(const unsigned char *data)
 
void(* reg_complete_cb )(void *, char data)
 
long(* write )(struct sk_buff *skb)
 
voidpriv_data
 
unsigned char chnl_id
 
unsigned short max_frame_size
 
unsigned char hdr_len
 
unsigned char offset_len_in_hdr
 
unsigned char len_size
 
unsigned char reserve
 

Detailed Description

struct st_proto_s - Per Protocol structure from BT/FM/GPS to ST : type of the protocol being registered among the available proto_type(BT, FM, GPS the protocol which share TTY). : the receiver callback pointing to a function in the protocol drivers called by the ST driver upon receiving relevant data. : reserved for future use, to make ST more generic : callback handler pointing to a function in protocol handler called by ST when the pending registrations are complete. The registrations are marked pending, in situations when fw download is in progress. : pointer to function in ST provided to protocol drivers from ST, to be made use when protocol drivers have data to send to TTY. : privdate data holder for the protocol drivers, sent from the protocol drivers during registration, and sent back on reg_complete_cb and recv. : channel id the protocol driver is interested in, the channel id is nothing but the 1st byte of the packet in UART frame. : size of the largest frame the protocol can receive. : length of the header structure of the protocol. : this provides the offset of the length field in the header structure of the protocol header, to assist ST to know how much to receive, if the data is split across UART frames. : whether the length field inside the header is 2 bytes or 1 byte. : the number of bytes ST needs to reserve in the skb being prepared for the protocol driver.

Definition at line 70 of file ti_wilink_st.h.

Field Documentation

unsigned char chnl_id

Definition at line 78 of file ti_wilink_st.h.

unsigned char hdr_len

Definition at line 80 of file ti_wilink_st.h.

unsigned char len_size

Definition at line 82 of file ti_wilink_st.h.

unsigned char(* match_packet)(const unsigned char *data)

Definition at line 73 of file ti_wilink_st.h.

unsigned short max_frame_size

Definition at line 79 of file ti_wilink_st.h.

unsigned char offset_len_in_hdr

Definition at line 81 of file ti_wilink_st.h.

void* priv_data

Definition at line 76 of file ti_wilink_st.h.

long(* recv)(void *, struct sk_buff *)

Definition at line 72 of file ti_wilink_st.h.

void(* reg_complete_cb)(void *, char data)

Definition at line 74 of file ti_wilink_st.h.

unsigned char reserve

Definition at line 83 of file ti_wilink_st.h.

Definition at line 71 of file ti_wilink_st.h.

long(* write)(struct sk_buff *skb)

Definition at line 75 of file ti_wilink_st.h.


The documentation for this struct was generated from the following file: