Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
st_core.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/tty.h>
#include <linux/seq_file.h>
#include <linux/skbuff.h>
#include <linux/ti_wilink_st.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "(stc): " fmt
 

Functions

void st_kim_recv (void *, const unsigned char *, long)
 
void st_int_recv (void *, const unsigned char *, long)
 
int st_get_uart_wr_room (struct st_data_s *st_gdata)
 
int st_int_write (struct st_data_s *st_gdata, const unsigned char *data, int count)
 
void st_tx_wakeup (struct st_data_s *st_data)
 
void kim_st_list_protocols (struct st_data_s *st_gdata, void *buf)
 
long st_register (struct st_proto_s *new_proto)
 
 EXPORT_SYMBOL_GPL (st_register)
 
long st_unregister (struct st_proto_s *proto)
 
long st_write (struct sk_buff *skb)
 
 EXPORT_SYMBOL_GPL (st_unregister)
 
int st_core_init (struct st_data_s **core_data)
 
void st_core_exit (struct st_data_s *st_gdata)
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "(stc): " fmt

Definition at line 22 of file st_core.c.

Function Documentation

EXPORT_SYMBOL_GPL ( st_register  )
EXPORT_SYMBOL_GPL ( st_unregister  )
void kim_st_list_protocols ( struct st_data_s st_gdata,
void buf 
)

Definition at line 493 of file st_core.c.

void st_core_exit ( struct st_data_s st_gdata)

Definition at line 874 of file st_core.c.

int st_core_init ( struct st_data_s **  core_data)

Definition at line 829 of file st_core.c.

int st_get_uart_wr_room ( struct st_data_s st_gdata)

Definition at line 66 of file st_core.c.

void st_int_recv ( void disc_data,
const unsigned char data,
long  count 
)

st_int_recv - ST's internal receive function. Decodes received RAW data and forwards to corresponding client drivers (Bluetooth,FM,GPS..etc). This can receive various types of packets, HCI-Events, ACL, SCO, 4 types of HCI-LL PM packets CH-8 packets from FM, CH-9 packets from GPS cores.

Definition at line 237 of file st_core.c.

int st_int_write ( struct st_data_s ,
const unsigned char ,
int   
)

st_int_write - point this to tty->driver->write or tty->ops->write depending upon the kernel version

Definition at line 84 of file st_core.c.

void st_kim_recv ( void ,
const unsigned char ,
long   
)

Definition at line 428 of file st_kim.c.

long st_register ( struct st_proto_s new_proto)

Definition at line 507 of file st_core.c.

void st_tx_wakeup ( struct st_data_s st_data)

Definition at line 448 of file st_core.c.

long st_unregister ( struct st_proto_s proto)

Definition at line 619 of file st_core.c.

long st_write ( struct sk_buff )

st_write - internal write function, passed onto protocol drivers via the write function ptr of protocol struct

Definition at line 671 of file st_core.c.