Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Enumerations | Functions | Variables
msm_smd.h File Reference

Go to the source code of this file.

Macros

#define SMD_EVENT_DATA   1
 
#define SMD_EVENT_OPEN   2
 
#define SMD_EVENT_CLOSE   3
 

Typedefs

typedef struct smd_channel smd_channel_t
 

Enumerations

enum  smd_port_id_type {
  SMD_PORT_DS = 0, SMD_PORT_DIAG, SMD_PORT_RPC_CALL, SMD_PORT_RPC_REPLY,
  SMD_PORT_BT, SMD_PORT_CONTROL, SMD_PORT_MEMCPY_SPARE1, SMD_PORT_DATA1,
  SMD_PORT_DATA2, SMD_PORT_DATA3, SMD_PORT_DATA4, SMD_PORT_DATA5,
  SMD_PORT_DATA6, SMD_PORT_DATA7, SMD_PORT_DATA8, SMD_PORT_DATA9,
  SMD_PORT_DATA10, SMD_PORT_DATA11, SMD_PORT_DATA12, SMD_PORT_DATA13,
  SMD_PORT_DATA14, SMD_PORT_DATA15, SMD_PORT_DATA16, SMD_PORT_DATA17,
  SMD_PORT_DATA18, SMD_PORT_DATA19, SMD_PORT_DATA20, SMD_PORT_GPS_NMEA,
  SMD_PORT_BRIDGE_1, SMD_PORT_BRIDGE_2, SMD_PORT_BRIDGE_3, SMD_PORT_BRIDGE_4,
  SMD_PORT_BRIDGE_5, SMD_PORT_LOOPBACK, SMD_PORT_CS_APPS_MODEM, SMD_PORT_CS_APPS_DSP,
  SMD_PORT_CS_MODEM_DSP, SMD_NUM_PORTS
}
 

Functions

int smd_open (const char *name, smd_channel_t **ch, void *priv, void(*notify)(void *priv, unsigned event))
 
int smd_close (smd_channel_t *ch)
 
int smd_read (smd_channel_t *ch, void *data, int len)
 
int smd_write (smd_channel_t *ch, const void *data, int len)
 
int smd_write_atomic (smd_channel_t *ch, const void *data, int len)
 
int smd_write_avail (smd_channel_t *ch)
 
int smd_read_avail (smd_channel_t *ch)
 
int smd_cur_packet_size (smd_channel_t *ch)
 
void smd_kick (smd_channel_t *ch)
 

Variables

int(* msm_check_for_modem_crash )(void)
 

Macro Definition Documentation

#define SMD_EVENT_CLOSE   3

Definition at line 30 of file msm_smd.h.

#define SMD_EVENT_DATA   1

Definition at line 28 of file msm_smd.h.

#define SMD_EVENT_OPEN   2

Definition at line 29 of file msm_smd.h.

Typedef Documentation

Definition at line 20 of file msm_smd.h.

Enumeration Type Documentation

Enumerator:
SMD_PORT_DS 
SMD_PORT_DIAG 
SMD_PORT_RPC_CALL 
SMD_PORT_RPC_REPLY 
SMD_PORT_BT 
SMD_PORT_CONTROL 
SMD_PORT_MEMCPY_SPARE1 
SMD_PORT_DATA1 
SMD_PORT_DATA2 
SMD_PORT_DATA3 
SMD_PORT_DATA4 
SMD_PORT_DATA5 
SMD_PORT_DATA6 
SMD_PORT_DATA7 
SMD_PORT_DATA8 
SMD_PORT_DATA9 
SMD_PORT_DATA10 
SMD_PORT_DATA11 
SMD_PORT_DATA12 
SMD_PORT_DATA13 
SMD_PORT_DATA14 
SMD_PORT_DATA15 
SMD_PORT_DATA16 
SMD_PORT_DATA17 
SMD_PORT_DATA18 
SMD_PORT_DATA19 
SMD_PORT_DATA20 
SMD_PORT_GPS_NMEA 
SMD_PORT_BRIDGE_1 
SMD_PORT_BRIDGE_2 
SMD_PORT_BRIDGE_3 
SMD_PORT_BRIDGE_4 
SMD_PORT_BRIDGE_5 
SMD_PORT_LOOPBACK 
SMD_PORT_CS_APPS_MODEM 
SMD_PORT_CS_APPS_DSP 
SMD_PORT_CS_MODEM_DSP 
SMD_NUM_PORTS 

Definition at line 68 of file msm_smd.h.

Function Documentation

int smd_close ( smd_channel_t ch)

Definition at line 720 of file smd.c.

int smd_cur_packet_size ( smd_channel_t ch)

Definition at line 780 of file smd.c.

void smd_kick ( smd_channel_t ch)

Definition at line 434 of file smd.c.

int smd_open ( const char name,
smd_channel_t **  ch,
void priv,
void(*)(void *priv, unsigned event notify 
)
int smd_read ( smd_channel_t ch,
void data,
int  len 
)

Definition at line 740 of file smd.c.

int smd_read_avail ( smd_channel_t ch)

Definition at line 760 of file smd.c.

int smd_write ( smd_channel_t ch,
const void data,
int  len 
)

Definition at line 745 of file smd.c.

int smd_write_atomic ( smd_channel_t ch,
const void data,
int  len 
)

Definition at line 750 of file smd.c.

int smd_write_avail ( smd_channel_t ch)

Definition at line 765 of file smd.c.

Variable Documentation

int(* msm_check_for_modem_crash)(void)

Definition at line 54 of file proc_comm.c.