Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ev-layer.c File Reference
#include <linux/export.h>
#include "gigaset.h"

Go to the source code of this file.

Data Structures

struct  resp_type_t
 
struct  zsau_resp_t
 

Macros

#define PC_DIAL   0x001
 
#define PC_HUP   0x002
 
#define PC_INIT   0x004
 
#define PC_DLE0   0x008
 
#define PC_DLE1   0x010
 
#define PC_SHUTDOWN   0x020
 
#define PC_ACCEPT   0x040
 
#define PC_CID   0x080
 
#define PC_NOCID   0x100
 
#define PC_CIDMODE   0x200
 
#define PC_UMMODE   0x400
 
#define RT_NOTHING   0
 
#define RT_ZSAU   1
 
#define RT_RING   2
 
#define RT_NUMBER   3
 
#define RT_STRING   4
 
#define RT_ZCAU   6
 
#define RSP_OK   0
 
#define RSP_ERROR   1
 
#define RSP_ZGCI   3
 
#define RSP_RING   4
 
#define RSP_ZVLS   5
 
#define RSP_ZCAU   6
 
#define RSP_VAR   100
 
#define RSP_ZSAU   (RSP_VAR + VAR_ZSAU)
 
#define RSP_ZDLE   (RSP_VAR + VAR_ZDLE)
 
#define RSP_ZCTP   (RSP_VAR + VAR_ZCTP)
 
#define RSP_STR   (RSP_VAR + VAR_NUM)
 
#define RSP_NMBR   (RSP_STR + STR_NMBR)
 
#define RSP_ZCPN   (RSP_STR + STR_ZCPN)
 
#define RSP_ZCON   (RSP_STR + STR_ZCON)
 
#define RSP_ZBC   (RSP_STR + STR_ZBC)
 
#define RSP_ZHLC   (RSP_STR + STR_ZHLC)
 
#define RSP_WRONG_CID   -2 /* unknown cid in cmd */
 
#define RSP_INVAL   -6 /* invalid response */
 
#define RSP_NODEV   -9 /* device not connected */
 
#define RSP_NONE   -19
 
#define RSP_STRING   -20
 
#define RSP_NULL   -21
 
#define RSP_INIT   -27
 
#define RSP_ANY   -26
 
#define RSP_LAST   -28
 
#define ACT_NOTHING   0
 
#define ACT_SETDLE1   1
 
#define ACT_SETDLE0   2
 
#define ACT_FAILINIT   3
 
#define ACT_HUPMODEM   4
 
#define ACT_CONFIGMODE   5
 
#define ACT_INIT   6
 
#define ACT_DLE0   7
 
#define ACT_DLE1   8
 
#define ACT_FAILDLE0   9
 
#define ACT_FAILDLE1   10
 
#define ACT_RING   11
 
#define ACT_CID   12
 
#define ACT_FAILCID   13
 
#define ACT_SDOWN   14
 
#define ACT_FAILSDOWN   15
 
#define ACT_DEBUG   16
 
#define ACT_WARN   17
 
#define ACT_DIALING   18
 
#define ACT_ABORTDIAL   19
 
#define ACT_DISCONNECT   20
 
#define ACT_CONNECT   21
 
#define ACT_REMOTEREJECT   22
 
#define ACT_CONNTIMEOUT   23
 
#define ACT_REMOTEHUP   24
 
#define ACT_ABORTHUP   25
 
#define ACT_ICALL   26
 
#define ACT_ACCEPTED   27
 
#define ACT_ABORTACCEPT   28
 
#define ACT_TIMEOUT   29
 
#define ACT_GETSTRING   30
 
#define ACT_SETVER   31
 
#define ACT_FAILVER   32
 
#define ACT_GOTVER   33
 
#define ACT_TEST   34
 
#define ACT_ERROR   35
 
#define ACT_ABORTCID   36
 
#define ACT_ZCAU   37
 
#define ACT_NOTIFY_BC_DOWN   38
 
#define ACT_NOTIFY_BC_UP   39
 
#define ACT_DIAL   40
 
#define ACT_ACCEPT   41
 
#define ACT_HUP   43
 
#define ACT_IF_LOCK   44
 
#define ACT_START   45
 
#define ACT_STOP   46
 
#define ACT_FAKEDLE0   47
 
#define ACT_FAKEHUP   48
 
#define ACT_FAKESDOWN   49
 
#define ACT_SHUTDOWN   50
 
#define ACT_PROC_CIDMODE   51
 
#define ACT_UMODESET   52
 
#define ACT_FAILUMODE   53
 
#define ACT_CMODESET   54
 
#define ACT_FAILCMODE   55
 
#define ACT_IF_VER   56
 
#define ACT_CMD   100
 
#define SEQ_NONE   0
 
#define SEQ_INIT   100
 
#define SEQ_DLE0   200
 
#define SEQ_DLE1   250
 
#define SEQ_CID   300
 
#define SEQ_NOCID   350
 
#define SEQ_HUP   400
 
#define SEQ_DIAL   600
 
#define SEQ_ACCEPT   720
 
#define SEQ_SHUTDOWN   500
 
#define SEQ_CIDMODE   10
 
#define SEQ_UMMODE   11
 

Functions

void gigaset_handle_modem_response (struct cardstate *cs)
 
 EXPORT_SYMBOL_GPL (gigaset_handle_modem_response)
 
void gigaset_handle_event (unsigned long data)
 

Variables

struct reply_t gigaset_tab_nocid []
 
struct reply_t gigaset_tab_cid []
 

Macro Definition Documentation

#define ACT_ABORTACCEPT   28

Definition at line 103 of file ev-layer.c.

#define ACT_ABORTCID   36

Definition at line 111 of file ev-layer.c.

#define ACT_ABORTDIAL   19

Definition at line 94 of file ev-layer.c.

#define ACT_ABORTHUP   25

Definition at line 100 of file ev-layer.c.

#define ACT_ACCEPT   41

Definition at line 116 of file ev-layer.c.

#define ACT_ACCEPTED   27

Definition at line 102 of file ev-layer.c.

#define ACT_CID   12

Definition at line 87 of file ev-layer.c.

#define ACT_CMD   100

Definition at line 131 of file ev-layer.c.

#define ACT_CMODESET   54

Definition at line 128 of file ev-layer.c.

#define ACT_CONFIGMODE   5

Definition at line 80 of file ev-layer.c.

#define ACT_CONNECT   21

Definition at line 96 of file ev-layer.c.

#define ACT_CONNTIMEOUT   23

Definition at line 98 of file ev-layer.c.

#define ACT_DEBUG   16

Definition at line 91 of file ev-layer.c.

#define ACT_DIAL   40

Definition at line 115 of file ev-layer.c.

#define ACT_DIALING   18

Definition at line 93 of file ev-layer.c.

#define ACT_DISCONNECT   20

Definition at line 95 of file ev-layer.c.

#define ACT_DLE0   7

Definition at line 82 of file ev-layer.c.

#define ACT_DLE1   8

Definition at line 83 of file ev-layer.c.

#define ACT_ERROR   35

Definition at line 110 of file ev-layer.c.

#define ACT_FAILCID   13

Definition at line 88 of file ev-layer.c.

#define ACT_FAILCMODE   55

Definition at line 129 of file ev-layer.c.

#define ACT_FAILDLE0   9

Definition at line 84 of file ev-layer.c.

#define ACT_FAILDLE1   10

Definition at line 85 of file ev-layer.c.

#define ACT_FAILINIT   3

Definition at line 78 of file ev-layer.c.

#define ACT_FAILSDOWN   15

Definition at line 90 of file ev-layer.c.

#define ACT_FAILUMODE   53

Definition at line 127 of file ev-layer.c.

#define ACT_FAILVER   32

Definition at line 107 of file ev-layer.c.

#define ACT_FAKEDLE0   47

Definition at line 121 of file ev-layer.c.

#define ACT_FAKEHUP   48

Definition at line 122 of file ev-layer.c.

#define ACT_FAKESDOWN   49

Definition at line 123 of file ev-layer.c.

#define ACT_GETSTRING   30

Definition at line 105 of file ev-layer.c.

#define ACT_GOTVER   33

Definition at line 108 of file ev-layer.c.

#define ACT_HUP   43

Definition at line 117 of file ev-layer.c.

#define ACT_HUPMODEM   4

Definition at line 79 of file ev-layer.c.

#define ACT_ICALL   26

Definition at line 101 of file ev-layer.c.

#define ACT_IF_LOCK   44

Definition at line 118 of file ev-layer.c.

#define ACT_IF_VER   56

Definition at line 130 of file ev-layer.c.

#define ACT_INIT   6

Definition at line 81 of file ev-layer.c.

#define ACT_NOTHING   0

Definition at line 75 of file ev-layer.c.

#define ACT_NOTIFY_BC_DOWN   38

Definition at line 113 of file ev-layer.c.

#define ACT_NOTIFY_BC_UP   39

Definition at line 114 of file ev-layer.c.

#define ACT_PROC_CIDMODE   51

Definition at line 125 of file ev-layer.c.

#define ACT_REMOTEHUP   24

Definition at line 99 of file ev-layer.c.

#define ACT_REMOTEREJECT   22

Definition at line 97 of file ev-layer.c.

#define ACT_RING   11

Definition at line 86 of file ev-layer.c.

#define ACT_SDOWN   14

Definition at line 89 of file ev-layer.c.

#define ACT_SETDLE0   2

Definition at line 77 of file ev-layer.c.

#define ACT_SETDLE1   1

Definition at line 76 of file ev-layer.c.

#define ACT_SETVER   31

Definition at line 106 of file ev-layer.c.

#define ACT_SHUTDOWN   50

Definition at line 124 of file ev-layer.c.

#define ACT_START   45

Definition at line 119 of file ev-layer.c.

#define ACT_STOP   46

Definition at line 120 of file ev-layer.c.

#define ACT_TEST   34

Definition at line 109 of file ev-layer.c.

#define ACT_TIMEOUT   29

Definition at line 104 of file ev-layer.c.

#define ACT_UMODESET   52

Definition at line 126 of file ev-layer.c.

#define ACT_WARN   17

Definition at line 92 of file ev-layer.c.

#define ACT_ZCAU   37

Definition at line 112 of file ev-layer.c.

#define PC_ACCEPT   0x040

Definition at line 27 of file ev-layer.c.

#define PC_CID   0x080

Definition at line 28 of file ev-layer.c.

#define PC_CIDMODE   0x200

Definition at line 30 of file ev-layer.c.

#define PC_DIAL   0x001

Definition at line 21 of file ev-layer.c.

#define PC_DLE0   0x008

Definition at line 24 of file ev-layer.c.

#define PC_DLE1   0x010

Definition at line 25 of file ev-layer.c.

#define PC_HUP   0x002

Definition at line 22 of file ev-layer.c.

#define PC_INIT   0x004

Definition at line 23 of file ev-layer.c.

#define PC_NOCID   0x100

Definition at line 29 of file ev-layer.c.

#define PC_SHUTDOWN   0x020

Definition at line 26 of file ev-layer.c.

#define PC_UMMODE   0x400

Definition at line 31 of file ev-layer.c.

#define RSP_ANY   -26

Definition at line 71 of file ev-layer.c.

#define RSP_ERROR   1

Definition at line 43 of file ev-layer.c.

#define RSP_INIT   -27

Definition at line 70 of file ev-layer.c.

#define RSP_INVAL   -6 /* invalid response */

Definition at line 64 of file ev-layer.c.

#define RSP_LAST   -28

Definition at line 72 of file ev-layer.c.

#define RSP_NMBR   (RSP_STR + STR_NMBR)

Definition at line 57 of file ev-layer.c.

#define RSP_NODEV   -9 /* device not connected */

Definition at line 65 of file ev-layer.c.

#define RSP_NONE   -19

Definition at line 67 of file ev-layer.c.

#define RSP_NULL   -21

Definition at line 69 of file ev-layer.c.

#define RSP_OK   0

Definition at line 42 of file ev-layer.c.

#define RSP_RING   4

Definition at line 45 of file ev-layer.c.

#define RSP_STR   (RSP_VAR + VAR_NUM)

Definition at line 56 of file ev-layer.c.

#define RSP_STRING   -20

Definition at line 68 of file ev-layer.c.

#define RSP_VAR   100

Definition at line 51 of file ev-layer.c.

#define RSP_WRONG_CID   -2 /* unknown cid in cmd */

Definition at line 63 of file ev-layer.c.

#define RSP_ZBC   (RSP_STR + STR_ZBC)

Definition at line 60 of file ev-layer.c.

#define RSP_ZCAU   6

Definition at line 47 of file ev-layer.c.

#define RSP_ZCON   (RSP_STR + STR_ZCON)

Definition at line 59 of file ev-layer.c.

#define RSP_ZCPN   (RSP_STR + STR_ZCPN)

Definition at line 58 of file ev-layer.c.

#define RSP_ZCTP   (RSP_VAR + VAR_ZCTP)

Definition at line 54 of file ev-layer.c.

#define RSP_ZDLE   (RSP_VAR + VAR_ZDLE)

Definition at line 53 of file ev-layer.c.

#define RSP_ZGCI   3

Definition at line 44 of file ev-layer.c.

#define RSP_ZHLC   (RSP_STR + STR_ZHLC)

Definition at line 61 of file ev-layer.c.

#define RSP_ZSAU   (RSP_VAR + VAR_ZSAU)

Definition at line 52 of file ev-layer.c.

#define RSP_ZVLS   5

Definition at line 46 of file ev-layer.c.

#define RT_NOTHING   0

Definition at line 34 of file ev-layer.c.

#define RT_NUMBER   3

Definition at line 37 of file ev-layer.c.

#define RT_RING   2

Definition at line 36 of file ev-layer.c.

#define RT_STRING   4

Definition at line 38 of file ev-layer.c.

#define RT_ZCAU   6

Definition at line 39 of file ev-layer.c.

#define RT_ZSAU   1

Definition at line 35 of file ev-layer.c.

#define SEQ_ACCEPT   720

Definition at line 142 of file ev-layer.c.

#define SEQ_CID   300

Definition at line 138 of file ev-layer.c.

#define SEQ_CIDMODE   10

Definition at line 144 of file ev-layer.c.

#define SEQ_DIAL   600

Definition at line 141 of file ev-layer.c.

#define SEQ_DLE0   200

Definition at line 136 of file ev-layer.c.

#define SEQ_DLE1   250

Definition at line 137 of file ev-layer.c.

#define SEQ_HUP   400

Definition at line 140 of file ev-layer.c.

#define SEQ_INIT   100

Definition at line 135 of file ev-layer.c.

#define SEQ_NOCID   350

Definition at line 139 of file ev-layer.c.

#define SEQ_NONE   0

Definition at line 134 of file ev-layer.c.

#define SEQ_SHUTDOWN   500

Definition at line 143 of file ev-layer.c.

#define SEQ_UMMODE   11

Definition at line 145 of file ev-layer.c.

Function Documentation

EXPORT_SYMBOL_GPL ( gigaset_handle_modem_response  )
void gigaset_handle_event ( unsigned long  data)

Definition at line 1840 of file ev-layer.c.

void gigaset_handle_modem_response ( struct cardstate cs)

gigaset_handle_modem_response() - process received modem response : device descriptor structure.

Called by asyncdata/isocdata if a block of data received from the device must be processed as a modem command response. The data is already in the cs structure.

Definition at line 416 of file ev-layer.c.

Variable Documentation

struct reply_t gigaset_tab_cid[]

Definition at line 259 of file ev-layer.c.

struct reply_t gigaset_tab_nocid[]

Definition at line 150 of file ev-layer.c.