|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/init.h>#include <linux/kernel.h>#include <linux/slab.h>#include <linux/errno.h>#include <linux/types.h>#include <linux/interrupt.h>#include <linux/timer.h>#include <linux/bitops.h>#include <linux/signal.h>#include <linux/string.h>#include <linux/ip.h>#include <linux/if_arp.h>#include <linux/tcp.h>#include <linux/skbuff.h>#include <linux/ctype.h>#include <net/dst.h>#include <linux/io.h>#include <asm/ccwdev.h>#include <asm/ccwgroup.h>#include <linux/uaccess.h>#include <asm/idals.h>#include "fsm.h"#include "ctcm_main.h"Go to the source code of this file.
Functions | |
| void | ctcm_ccw_check_rc (struct channel *ch, int rc, char *msg) |
| void | ctcm_purge_skb_queue (struct sk_buff_head *q) |
| void | fsm_action_nop (fsm_instance *fi, int event, void *arg) |
| void | ctcm_chx_txidle (fsm_instance *fi, int event, void *arg) |
| void | ctcmpc_chx_rxidle (fsm_instance *fi, int event, void *arg) |
Variables | |
| const char * | ctc_ch_event_names [] |
| const char * | ctc_ch_state_names [] |
| const fsm_node | ch_fsm [] |
| int | ch_fsm_len |
| const fsm_node | ctcmpc_ch_fsm [] |
| int | mpc_ch_fsm_len |
| const char * | dev_state_names [] |
| const char * | dev_event_names [] |
| const fsm_node | dev_fsm [] |
| int | dev_fsm_len |
| enum ctc_ch_events |
Definition at line 55 of file ctcm_fsms.h.
| enum ctc_ch_states |
Definition at line 117 of file ctcm_fsms.h.
| enum dev_events |
| DEV_EVENT_START | |
| DEV_EVENT_STOP | |
| DEV_EVENT_RXUP | |
| DEV_EVENT_TXUP | |
| DEV_EVENT_RXDOWN | |
| DEV_EVENT_TXDOWN | |
| DEV_EVENT_RESTART | |
| CTCM_NR_DEV_EVENTS | |
| DEV_EVENT_START | |
| DEV_EVENT_STOP | |
| DEV_EVENT_CONUP | |
| DEV_EVENT_CONDOWN | |
| NR_DEV_EVENTS |
MUST be always the last element!! |
Definition at line 219 of file ctcm_fsms.h.
| enum dev_states |
| DEV_STATE_STOPPED | |
| DEV_STATE_STARTWAIT_RXTX | |
| DEV_STATE_STARTWAIT_RX | |
| DEV_STATE_STARTWAIT_TX | |
| DEV_STATE_STOPWAIT_RXTX | |
| DEV_STATE_STOPWAIT_RX | |
| DEV_STATE_STOPWAIT_TX | |
| DEV_STATE_RUNNING | |
| CTCM_NR_DEV_STATES | |
| DEV_STATE_STOPPED | |
| DEV_STATE_STARTWAIT | |
| DEV_STATE_STOPWAIT | |
| DEV_STATE_RUNNING | |
| NR_DEV_STATES |
MUST be always the last element!! |
Definition at line 198 of file ctcm_fsms.h.
| enum mpcg_events |
| MPCG_EVENT_INOP | |
| MPCG_EVENT_DISCONC | |
| MPCG_EVENT_XID0DO | |
| MPCG_EVENT_XID2 | |
| MPCG_EVENT_XID2DONE | |
| MPCG_EVENT_XID7DONE | |
| MPCG_EVENT_TIMER | |
| MPCG_EVENT_DOIO | |
| MPCG_NR_EVENTS |
Definition at line 326 of file ctcm_fsms.h.
| enum mpcg_states |
Definition at line 338 of file ctcm_fsms.h.
Check return code of a preceding ccw_device call, halt_IO etc...
ch : The channel, the error belongs to. Returns the error code (!= 0) to inspect.
Definition at line 190 of file ctcm_fsms.c.
| void ctcm_chx_txidle | ( | fsm_instance * | fi, |
| int | event, | ||
| void * | arg | ||
| ) |
Initial data is sent. Notify device statemachine that we are up and running.
fi An instance of a channel statemachine. event The event, just happened. arg Generic pointer, casted from channel * upon call.
Definition at line 336 of file ctcm_fsms.c.
| void ctcm_purge_skb_queue | ( | struct sk_buff_head * | q | ) |
Definition at line 213 of file ctcm_fsms.c.
| void ctcmpc_chx_rxidle | ( | fsm_instance * | fi, |
| int | event, | ||
| void * | arg | ||
| ) |
Got initial data, check it. If OK, notify device statemachine that we are up and running.
fi An instance of a channel statemachine. event The event, just happened. arg Generic pointer, casted from channel * upon call.
Definition at line 1546 of file ctcm_fsms.c.
| void fsm_action_nop | ( | fsm_instance * | fi, |
| int | event, | ||
| void * | arg | ||
| ) |
Definition at line 1095 of file ctcm_fsms.c.
| int ch_fsm_len |
Definition at line 1193 of file ctcm_fsms.c.
Definition at line 71 of file ctcm_fsms.c.
Definition at line 102 of file ctcm_fsms.c.
Definition at line 1858 of file ctcm_fsms.c.
Definition at line 61 of file ctcm_fsms.c.
Definition at line 2261 of file ctcm_fsms.c.
| int dev_fsm_len |
Definition at line 2301 of file ctcm_fsms.c.
Definition at line 50 of file ctcm_fsms.c.
| int mpc_ch_fsm_len |
Definition at line 2059 of file ctcm_fsms.c.
1.8.2