Linux Kernel
3.7.1
|
#include <linux/platform_device.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/io.h>
#include <mach/msm_iomap.h>
Go to the source code of this file.
Data Structures | |
struct | smem_heap_info |
struct | smem_heap_entry |
struct | smem_proc_comm |
struct | smem_shared |
struct | msm_dem_slave_data |
struct | smd_alloc_elm |
struct | smd_half_channel |
struct | smd_shared_v1 |
struct | smd_shared_v2 |
struct | smd_channel |
Macros | |
#define | PC_APPS 0 |
#define | PC_MODEM 1 |
#define | VERSION_SMD 0 |
#define | VERSION_QDSP6 4 |
#define | VERSION_APPS_SBL 6 |
#define | VERSION_MODEM_SBL 7 |
#define | VERSION_APPS 8 |
#define | VERSION_MODEM 9 |
#define | SMSM_V1_SIZE (sizeof(unsigned) * 8) |
#define | SMSM_V2_SIZE (sizeof(unsigned) * 4) |
#define | DEM_MAX_PORT_NAME_LEN (20) |
#define | SZ_DIAG_ERR_MSG 0xC8 |
#define | ID_DIAG_ERR_MSG SMEM_DIAG_ERR_MESSAGE |
#define | ID_SMD_CHANNELS SMEM_SMD_BASE_ID |
#define | ID_SHARED_STATE SMEM_SMSM_SHARED_STATE |
#define | ID_CH_ALLOC_TBL SMEM_CHANNEL_ALLOC_TBL |
#define | SMSM_INIT 0x00000001 |
#define | SMSM_SMDINIT 0x00000008 |
#define | SMSM_RPCINIT 0x00000020 |
#define | SMSM_RESET 0x00000040 |
#define | SMSM_RSA 0x00000080 |
#define | SMSM_RUN 0x00000100 |
#define | SMSM_PWRC 0x00000200 |
#define | SMSM_TIMEWAIT 0x00000400 |
#define | SMSM_TIMEINIT 0x00000800 |
#define | SMSM_PWRC_EARLY_EXIT 0x00001000 |
#define | SMSM_WFPI 0x00002000 |
#define | SMSM_SLEEP 0x00004000 |
#define | SMSM_SLEEPEXIT 0x00008000 |
#define | SMSM_APPS_REBOOT 0x00020000 |
#define | SMSM_SYSTEM_POWER_DOWN 0x00040000 |
#define | SMSM_SYSTEM_REBOOT 0x00080000 |
#define | SMSM_SYSTEM_DOWNLOAD 0x00100000 |
#define | SMSM_PWRC_SUSPEND 0x00200000 |
#define | SMSM_APPS_SHUTDOWN 0x00400000 |
#define | SMSM_SMD_LOOPBACK 0x00800000 |
#define | SMSM_RUN_QUIET 0x01000000 |
#define | SMSM_MODEM_WAIT 0x02000000 |
#define | SMSM_MODEM_BREAK 0x04000000 |
#define | SMSM_MODEM_CONTINUE 0x08000000 |
#define | SMSM_UNKNOWN 0x80000000 |
#define | SMSM_WKUP_REASON_RPC 0x00000001 |
#define | SMSM_WKUP_REASON_INT 0x00000002 |
#define | SMSM_WKUP_REASON_GPIO 0x00000004 |
#define | SMSM_WKUP_REASON_TIMER 0x00000008 |
#define | SMSM_WKUP_REASON_ALARM 0x00000010 |
#define | SMSM_WKUP_REASON_RESET 0x00000020 |
#define | SMEM_NUM_SMD_CHANNELS 64 |
#define | SMD_SS_CLOSED 0x00000000 |
#define | SMD_SS_OPENING 0x00000001 |
#define | SMD_SS_OPENED 0x00000002 |
#define | SMD_SS_FLUSHING 0x00000003 |
#define | SMD_SS_CLOSING 0x00000004 |
#define | SMD_SS_RESET 0x00000005 |
#define | SMD_SS_RESET_OPENING 0x00000006 |
#define | SMD_BUF_SIZE 8192 |
#define | SMD_CHANNELS 64 |
#define | SMD_HEADER_SIZE 20 |
#define | SMD_TYPE_MASK 0x0FF |
#define | SMD_TYPE_APPS_MODEM 0x000 |
#define | SMD_TYPE_APPS_DSP 0x001 |
#define | SMD_TYPE_MODEM_DSP 0x002 |
#define | SMD_KIND_MASK 0xF00 |
#define | SMD_KIND_UNKNOWN 0x000 |
#define | SMD_KIND_STREAM 0x100 |
#define | SMD_KIND_PACKET 0x200 |
Functions | |
void * | smem_alloc (unsigned id, unsigned size) |
int | smsm_change_state (enum smsm_state_item item, uint32_t clear_mask, uint32_t set_mask) |
uint32_t | smsm_get_state (enum smsm_state_item item) |
int | smsm_set_sleep_duration (uint32_t delay) |
void | smsm_print_sleep_info (void) |
struct smd_half_channel | __attribute__ ((aligned(4), packed)) |
void * | smem_find (unsigned id, unsigned size) |
void * | smem_item (unsigned id, unsigned *size) |
uint32_t | raw_smsm_get_state (enum smsm_state_item item) |
void | msm_init_last_radio_log (struct module *) |
Variables | |
unsigned | state |
unsigned char | fDSR |
unsigned char | fCTS |
unsigned char | fCD |
unsigned char | fRI |
unsigned char | fHEAD |
unsigned char | fTAIL |
unsigned char | fSTATE |
unsigned char | fUNUSED |
unsigned | tail |
unsigned | head |
struct smd_shared_v1 | __attribute__ |
struct list_head | smd_ch_closed_list |
struct list_head | smd_ch_list_modem |
struct list_head | smd_ch_list_dsp |
spinlock_t | smd_lock |
spinlock_t | smem_lock |
#define DEM_MAX_PORT_NAME_LEN (20) |
Definition at line 74 of file smd_private.h.
#define ID_CH_ALLOC_TBL SMEM_CHANNEL_ALLOC_TBL |
Definition at line 94 of file smd_private.h.
#define ID_DIAG_ERR_MSG SMEM_DIAG_ERR_MESSAGE |
Definition at line 91 of file smd_private.h.
#define ID_SHARED_STATE SMEM_SMSM_SHARED_STATE |
Definition at line 93 of file smd_private.h.
#define ID_SMD_CHANNELS SMEM_SMD_BASE_ID |
Definition at line 92 of file smd_private.h.
#define PC_APPS 0 |
Definition at line 47 of file smd_private.h.
#define PC_MODEM 1 |
Definition at line 48 of file smd_private.h.
#define SMD_BUF_SIZE 8192 |
Definition at line 245 of file smd_private.h.
#define SMD_CHANNELS 64 |
Definition at line 246 of file smd_private.h.
#define SMD_HEADER_SIZE 20 |
Definition at line 248 of file smd_private.h.
#define SMD_KIND_MASK 0xF00 |
Definition at line 320 of file smd_private.h.
#define SMD_KIND_PACKET 0x200 |
Definition at line 323 of file smd_private.h.
#define SMD_KIND_STREAM 0x100 |
Definition at line 322 of file smd_private.h.
#define SMD_KIND_UNKNOWN 0x000 |
Definition at line 321 of file smd_private.h.
#define SMD_SS_CLOSED 0x00000000 |
Definition at line 237 of file smd_private.h.
#define SMD_SS_CLOSING 0x00000004 |
Definition at line 241 of file smd_private.h.
#define SMD_SS_FLUSHING 0x00000003 |
Definition at line 240 of file smd_private.h.
#define SMD_SS_OPENED 0x00000002 |
Definition at line 239 of file smd_private.h.
#define SMD_SS_OPENING 0x00000001 |
Definition at line 238 of file smd_private.h.
#define SMD_SS_RESET 0x00000005 |
Definition at line 242 of file smd_private.h.
#define SMD_SS_RESET_OPENING 0x00000006 |
Definition at line 243 of file smd_private.h.
#define SMD_TYPE_APPS_DSP 0x001 |
Definition at line 317 of file smd_private.h.
#define SMD_TYPE_APPS_MODEM 0x000 |
Definition at line 316 of file smd_private.h.
#define SMD_TYPE_MASK 0x0FF |
Definition at line 315 of file smd_private.h.
#define SMD_TYPE_MODEM_DSP 0x002 |
Definition at line 318 of file smd_private.h.
#define SMEM_NUM_SMD_CHANNELS 64 |
Definition at line 155 of file smd_private.h.
#define SMSM_APPS_REBOOT 0x00020000 |
Definition at line 109 of file smd_private.h.
#define SMSM_APPS_SHUTDOWN 0x00400000 |
Definition at line 114 of file smd_private.h.
#define SMSM_INIT 0x00000001 |
Definition at line 96 of file smd_private.h.
#define SMSM_MODEM_BREAK 0x04000000 |
Definition at line 118 of file smd_private.h.
#define SMSM_MODEM_CONTINUE 0x08000000 |
Definition at line 119 of file smd_private.h.
#define SMSM_MODEM_WAIT 0x02000000 |
Definition at line 117 of file smd_private.h.
#define SMSM_PWRC 0x00000200 |
Definition at line 102 of file smd_private.h.
#define SMSM_PWRC_EARLY_EXIT 0x00001000 |
Definition at line 105 of file smd_private.h.
#define SMSM_PWRC_SUSPEND 0x00200000 |
Definition at line 113 of file smd_private.h.
#define SMSM_RESET 0x00000040 |
Definition at line 99 of file smd_private.h.
#define SMSM_RPCINIT 0x00000020 |
Definition at line 98 of file smd_private.h.
#define SMSM_RSA 0x00000080 |
Definition at line 100 of file smd_private.h.
#define SMSM_RUN 0x00000100 |
Definition at line 101 of file smd_private.h.
#define SMSM_RUN_QUIET 0x01000000 |
Definition at line 116 of file smd_private.h.
#define SMSM_SLEEP 0x00004000 |
Definition at line 107 of file smd_private.h.
#define SMSM_SLEEPEXIT 0x00008000 |
Definition at line 108 of file smd_private.h.
#define SMSM_SMD_LOOPBACK 0x00800000 |
Definition at line 115 of file smd_private.h.
#define SMSM_SMDINIT 0x00000008 |
Definition at line 97 of file smd_private.h.
#define SMSM_SYSTEM_DOWNLOAD 0x00100000 |
Definition at line 112 of file smd_private.h.
#define SMSM_SYSTEM_POWER_DOWN 0x00040000 |
Definition at line 110 of file smd_private.h.
#define SMSM_SYSTEM_REBOOT 0x00080000 |
Definition at line 111 of file smd_private.h.
#define SMSM_TIMEINIT 0x00000800 |
Definition at line 104 of file smd_private.h.
#define SMSM_TIMEWAIT 0x00000400 |
Definition at line 103 of file smd_private.h.
#define SMSM_UNKNOWN 0x80000000 |
Definition at line 120 of file smd_private.h.
#define SMSM_V1_SIZE (sizeof(unsigned) * 8) |
Definition at line 64 of file smd_private.h.
#define SMSM_V2_SIZE (sizeof(unsigned) * 4) |
Definition at line 65 of file smd_private.h.
#define SMSM_WFPI 0x00002000 |
Definition at line 106 of file smd_private.h.
#define SMSM_WKUP_REASON_ALARM 0x00000010 |
Definition at line 126 of file smd_private.h.
#define SMSM_WKUP_REASON_GPIO 0x00000004 |
Definition at line 124 of file smd_private.h.
#define SMSM_WKUP_REASON_INT 0x00000002 |
Definition at line 123 of file smd_private.h.
#define SMSM_WKUP_REASON_RESET 0x00000020 |
Definition at line 127 of file smd_private.h.
#define SMSM_WKUP_REASON_RPC 0x00000001 |
Definition at line 122 of file smd_private.h.
#define SMSM_WKUP_REASON_TIMER 0x00000008 |
Definition at line 125 of file smd_private.h.
#define SZ_DIAG_ERR_MSG 0xC8 |
Definition at line 90 of file smd_private.h.
#define VERSION_APPS 8 |
Definition at line 54 of file smd_private.h.
#define VERSION_APPS_SBL 6 |
Definition at line 52 of file smd_private.h.
#define VERSION_MODEM 9 |
Definition at line 55 of file smd_private.h.
#define VERSION_MODEM_SBL 7 |
Definition at line 53 of file smd_private.h.
#define VERSION_QDSP6 4 |
Definition at line 51 of file smd_private.h.
#define VERSION_SMD 0 |
Definition at line 50 of file smd_private.h.
enum smem_mem_type |
Definition at line 157 of file smd_private.h.
enum smsm_state_item |
SMSM_STATE_APPS | |
SMSM_STATE_MODEM | |
SMSM_STATE_HEXAGON | |
SMSM_STATE_APPS_DEM | |
SMSM_STATE_MODEM_DEM | |
SMSM_STATE_QDSP6_DEM | |
SMSM_STATE_POWER_MASTER_DEM | |
SMSM_STATE_TIME_MASTER_DEM | |
SMSM_STATE_COUNT |
Definition at line 136 of file smd_private.h.
struct smd_half_channel __attribute__ | ( | (aligned(4), packed) | ) |
Definition at line 55 of file last_radio_log.c.
uint32_t raw_smsm_get_state | ( | enum smsm_state_item | item | ) |
int smsm_change_state | ( | enum smsm_state_item | item, |
uint32_t | clear_mask, | ||
uint32_t | set_mask | ||
) |
uint32_t smsm_get_state | ( | enum smsm_state_item | item | ) |
Definition at line 262 of file smd_debug.c.
unsigned char fCD |
Definition at line 273 of file smd_private.h.
unsigned char fCTS |
Definition at line 272 of file smd_private.h.
unsigned char fDSR |
Definition at line 271 of file smd_private.h.
unsigned char fHEAD |
Definition at line 275 of file smd_private.h.
unsigned char fRI |
Definition at line 274 of file smd_private.h.
unsigned char fSTATE |
Definition at line 277 of file smd_private.h.
unsigned char fTAIL |
Definition at line 276 of file smd_private.h.
unsigned char fUNUSED |
Definition at line 278 of file smd_private.h.
unsigned head |
Definition at line 280 of file smd_private.h.
spinlock_t smd_lock |
spinlock_t smem_lock |
Definition at line 270 of file smd_private.h.
unsigned tail |
Definition at line 279 of file smd_private.h.