Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
st_kim.c File Reference
#include <linux/platform_device.h>
#include <linux/jiffies.h>
#include <linux/firmware.h>
#include <linux/delay.h>
#include <linux/wait.h>
#include <linux/gpio.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/sched.h>
#include <linux/sysfs.h>
#include <linux/tty.h>
#include <linux/skbuff.h>
#include <linux/ti_wilink_st.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "(stk) :" fmt
 
#define MAX_ST_DEVICES   3 /* Imagine 1 on each UART for now */
 

Functions

void st_kim_recv (void *disc_data, const unsigned char *data, long count)
 
void st_kim_complete (void *kim_data)
 
long st_kim_start (void *kim_data)
 
long st_kim_stop (void *kim_data)
 
void st_kim_ref (struct st_data_s **core_data, int id)
 
 module_platform_driver (kim_platform_driver)
 
 MODULE_AUTHOR ("Pavan Savoy <[email protected]>")
 
 MODULE_DESCRIPTION ("Shared Transport Driver for TI BT/FM/GPS combo chips ")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX_ST_DEVICES   3 /* Imagine 1 on each UART for now */

Definition at line 41 of file st_kim.c.

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

Definition at line 23 of file st_kim.c.

Function Documentation

MODULE_AUTHOR ( "Pavan Savoy <[email protected]>"  )
MODULE_DESCRIPTION ( "Shared Transport Driver for TI BT/FM/GPS combo chips )
MODULE_LICENSE ( "GPL"  )
module_platform_driver ( kim_platform_driver  )
void st_kim_complete ( void kim_data)

Definition at line 443 of file st_kim.c.

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

Definition at line 428 of file st_kim.c.

void st_kim_ref ( struct st_data_s **  core_data,
int  id 
)

st_kim_ref - reference the core's data This references the per-ST platform device in the arch/xx/ board-xx.c file. This would enable multiple such platform devices to exist on a given platform

Definition at line 660 of file st_kim.c.

long st_kim_start ( void kim_data)

st_kim_start - called from ST Core upon 1st registration This involves toggling the chip enable gpio, reading the firmware version from chip, forming the fw file name based on the chip version, requesting the fw, parsing it and perform download(send/recv).

Definition at line 456 of file st_kim.c.

long st_kim_stop ( void kim_data)

st_kim_stop - stop communication with chip. This can be called from ST Core/KIM, on the- (a) last un-register when chip need not be powered there-after, (b) upon failure to either install ldisc or download firmware. The function is responsible to (a) notify UIM about un-installation, (b) flush UART if the ldisc was installed. (c) invoke platform's chip disabling routine.

Definition at line 514 of file st_kim.c.