#ifdef GROUP_MEM_IPC_DEVICE
struct mem_ipc_device {
- enum dev_format id;
+ enum legacy_ipc_map id;
char name[16];
struct circ_queue txq;
return sipc5_fmt_ch(ch) ? IPC_FMT : IPC_RAW;
}
-static inline enum dev_format get_mmap_idx(enum sipc_ch_id ch,
+static inline enum legacy_ipc_map get_mmap_idx(enum sipc_ch_id ch,
struct sk_buff *skb)
{
if (sipc5_fmt_ch(ch))
return IPC_MAP_FMT;
- else
#ifdef CONFIG_MODEM_IF_LEGACY_QOS
- return (skb->queue_mapping == 1) ?
- IPC_MAP_HPRIO_RAW : IPC_MAP_NORM_RAW;
+ return (skb->queue_mapping == 1) ?
+ IPC_MAP_HPRIO_RAW : IPC_MAP_NORM_RAW;
#else
- return IPC_MAP_NORM_RAW;
+ return IPC_MAP_NORM_RAW;
#endif
}
#ifdef DEBUG_MODEM_IF_FLOW_CTRL
struct link_device *ld = &mld->link_dev;
struct modem_ctl *mc = ld->mc;
- enum dev_format id = dev->id;
+ enum legacy_ipc_map id = dev->id;
unsigned int qsize = get_size(cq(dev, dir));
unsigned int in = mst->head[id][dir];
unsigned int out = mst->tail[id][dir];
#ifdef DEBUG_MODEM_IF_FLOW_CTRL
struct link_device *ld = &mld->link_dev;
struct modem_ctl *mc = ld->mc;
- enum dev_format id = dev->id;
+ enum legacy_ipc_map id = dev->id;
enum direction opp_dir = opposite(dir); /* opposite direction */
unsigned int qsize = get_size(cq(dev, opp_dir));
unsigned int in = mst->head[id][opp_dir];
{
#ifdef DEBUG_MODEM_IF
struct link_device *ld = &mld->link_dev;
- enum dev_format id = dev->id;
+ enum legacy_ipc_map id = dev->id;
if (id > IPC_RAW)
return;
stop_net_ifaces(ld);
purge_txq(mld);
- if (cp_online(mc))
- modem_notify_event(state);
+ if (cp_online(mc)) {
+ switch (state) {
+ case STATE_CRASH_RESET:
+ modem_notify_event(MODEM_EVENT_RESET);
+ break;
+ case STATE_CRASH_EXIT:
+ modem_notify_event(MODEM_EVENT_EXIT);
+ break;
+ case STATE_CRASH_WATCHDOG:
+ modem_notify_event(MODEM_EVENT_WATCHDOG);
+ break;
+ default:
+ mif_err("Invalid state to notify\n");
+ break;
+ }
+ }
if (cp_online(mc) || cp_booting(mc))
set_modem_state(mld, state);