Linux Kernel
3.7.1
|
#include <linux/skbuff.h>
Go to the source code of this file.
Data Structures | |
struct | st_proto_s |
struct | st_data_s |
struct | chip_version |
struct | kim_data_s |
struct | bts_header |
struct | bts_action |
struct | bts_action_send |
struct | bts_action_wait |
struct | bts_action_delay |
struct | bts_action_serial |
struct | hci_command |
struct | fm_event_hdr |
struct | gps_event_hdr |
struct | ti_st_plat_data |
Enumerations | |
enum | proto_type { ST_BT, ST_FM, ST_GPS, ST_MAX_CHANNELS = 16 } |
Variables | |
u32 | magic |
u32 | version |
u8 | future [24] |
u8 | actions [0] |
u16 | type |
u16 | size |
u8 | data [0] |
u32 | msec |
u32 | baud |
u32 | flow_control |
u8 | prefix |
u16 | opcode |
u8 | plen |
u32 | speed |
struct ti_st_plat_data | __attribute__ |
#define ACTION_DELAY 4 |
Definition at line 295 of file ti_wilink_st.h.
#define ACTION_REMARKS 6 |
Definition at line 297 of file ti_wilink_st.h.
#define ACTION_RUN_SCRIPT 5 |
Definition at line 296 of file ti_wilink_st.h.
#define ACTION_SEND_COMMAND 1 |
Definition at line 292 of file ti_wilink_st.h.
#define ACTION_SERIAL 3 |
Definition at line 294 of file ti_wilink_st.h.
#define ACTION_WAIT_EVENT 2 |
Definition at line 293 of file ti_wilink_st.h.
#define CMD_RESP_TIME 800 |
Definition at line 209 of file ti_wilink_st.h.
#define CMD_WR_TIME 5000 |
Definition at line 210 of file ti_wilink_st.h.
#define FM_EVENT_HDR_SIZE 1 /* size of fm_event_hdr */ |
Definition at line 407 of file ti_wilink_st.h.
#define FM_MAX_FRAME_SIZE 0xFF /* TODO: */ |
Definition at line 406 of file ti_wilink_st.h.
#define GPIO_HIGH 1 |
Definition at line 214 of file ti_wilink_st.h.
#define GPIO_LOW 0 |
Definition at line 215 of file ti_wilink_st.h.
#define GPS_STUB_TEST |
Definition at line 195 of file ti_wilink_st.h.
#define LDISC_TIME 1000 |
Definition at line 208 of file ti_wilink_st.h.
#define LL_SLEEP_ACK 0x31 |
Definition at line 373 of file ti_wilink_st.h.
#define LL_SLEEP_IND 0x30 |
Definition at line 372 of file ti_wilink_st.h.
#define LL_WAKE_UP_ACK 0x33 |
Definition at line 375 of file ti_wilink_st.h.
#define LL_WAKE_UP_IND 0x32 |
Definition at line 374 of file ti_wilink_st.h.
#define POR_RETRY_COUNT 5 |
Definition at line 221 of file ti_wilink_st.h.
#define ST_EMPTY 0 |
Definition at line 96 of file ti_wilink_st.h.
#define ST_FM_CH8_PKT 0x8 |
Definition at line 408 of file ti_wilink_st.h.
#define ST_INITIALIZING 1 |
Definition at line 101 of file ti_wilink_st.h.
#define ST_LL_ASLEEP 0 |
Definition at line 365 of file ti_wilink_st.h.
#define ST_LL_ASLEEP_TO_AWAKE 1 |
Definition at line 366 of file ti_wilink_st.h.
#define ST_LL_AWAKE 2 |
Definition at line 367 of file ti_wilink_st.h.
#define ST_LL_AWAKE_TO_ASLEEP 3 |
Definition at line 368 of file ti_wilink_st.h.
#define ST_LL_INVALID 4 |
Definition at line 369 of file ti_wilink_st.h.
#define ST_NOTEMPTY 1 |
Definition at line 95 of file ti_wilink_st.h.
#define ST_REG_IN_PROGRESS 2 |
Definition at line 102 of file ti_wilink_st.h.
#define ST_REG_PENDING 3 |
Definition at line 103 of file ti_wilink_st.h.
#define ST_TX_SENDING 1 |
Definition at line 146 of file ti_wilink_st.h.
#define ST_TX_WAKEUP 2 |
Definition at line 147 of file ti_wilink_st.h.
#define ST_W4_DATA 2 |
Definition at line 362 of file ti_wilink_st.h.
#define ST_W4_HEADER 1 |
Definition at line 361 of file ti_wilink_st.h.
#define ST_W4_PACKET_TYPE 0 |
Definition at line 360 of file ti_wilink_st.h.
#define ST_WAITING_FOR_RESP 4 |
Definition at line 104 of file ti_wilink_st.h.
#define UART_DEV_NAME_LEN 32 |
Definition at line 233 of file ti_wilink_st.h.
enum proto_type |
enum proto-type - The protocol on WiLink chips which share a common physical interface like UART.
Definition at line 34 of file ti_wilink_st.h.
|
read |
mcontroller : adapter info structure for old mimd_t apps
: base address : irq number : number of logical drives : pci bus : pci device : pci function : pci id : vendor id : slot number : unique id
Definition at line 171 of file esd_usb2.c.
functions called when 1 of the protocol drivers gets registered, these need to communicate with UIM to request ldisc installed, read chip_version, download relevant fw
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).
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.
long st_register | ( | struct st_proto_s * | ) |
long st_unregister | ( | struct st_proto_s * | ) |
Definition at line 315 of file ti_wilink_st.h.
u32 baud |
Definition at line 341 of file ti_wilink_st.h.
Definition at line 324 of file ti_wilink_st.h.
Definition at line 342 of file ti_wilink_st.h.
u8 future[24] |
Definition at line 314 of file ti_wilink_st.h.
u32 magic |
Definition at line 312 of file ti_wilink_st.h.
u32 msec |
Definition at line 332 of file ti_wilink_st.h.
Definition at line 355 of file ti_wilink_st.h.
u16 plen |
Definition at line 356 of file ti_wilink_st.h.
u8 prefix |
Definition at line 354 of file ti_wilink_st.h.
u32 size |
Definition at line 323 of file ti_wilink_st.h.
u32 speed |
Definition at line 357 of file ti_wilink_st.h.
Definition at line 322 of file ti_wilink_st.h.
u32 version |
Definition at line 313 of file ti_wilink_st.h.