diff options
Diffstat (limited to 'drivers/isdn/gigaset/gigaset.h')
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 60 |
1 files changed, 29 insertions, 31 deletions
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index 18bff9f80727..3c74cd164019 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -34,8 +34,8 @@ | |||
34 | #include <linux/list.h> | 34 | #include <linux/list.h> |
35 | #include <asm/atomic.h> | 35 | #include <asm/atomic.h> |
36 | 36 | ||
37 | #define GIG_VERSION {0,5,0,0} | 37 | #define GIG_VERSION {0, 5, 0, 0} |
38 | #define GIG_COMPAT {0,4,0,0} | 38 | #define GIG_COMPAT {0, 4, 0, 0} |
39 | 39 | ||
40 | #define MAX_REC_PARAMS 10 /* Max. number of params in response string */ | 40 | #define MAX_REC_PARAMS 10 /* Max. number of params in response string */ |
41 | #define MAX_RESP_SIZE 512 /* Max. size of a response string */ | 41 | #define MAX_RESP_SIZE 512 /* Max. size of a response string */ |
@@ -133,35 +133,32 @@ void gigaset_dbg_buffer(enum debuglevel level, const unsigned char *msg, | |||
133 | #define OUT_VENDOR_REQ (USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_ENDPOINT) | 133 | #define OUT_VENDOR_REQ (USB_DIR_OUT | USB_TYPE_VENDOR | USB_RECIP_ENDPOINT) |
134 | #define IN_VENDOR_REQ (USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_ENDPOINT) | 134 | #define IN_VENDOR_REQ (USB_DIR_IN | USB_TYPE_VENDOR | USB_RECIP_ENDPOINT) |
135 | 135 | ||
136 | /* int-in-events 3070 */ | 136 | /* interrupt pipe messages */ |
137 | #define HD_B1_FLOW_CONTROL 0x80 | 137 | #define HD_B1_FLOW_CONTROL 0x80 |
138 | #define HD_B2_FLOW_CONTROL 0x81 | 138 | #define HD_B2_FLOW_CONTROL 0x81 |
139 | #define HD_RECEIVEATDATA_ACK (0x35) // 3070 | 139 | #define HD_RECEIVEATDATA_ACK (0x35) /* 3070 */ |
140 | // att: HD_RECEIVE>>AT<<DATA_ACK | 140 | #define HD_READY_SEND_ATDATA (0x36) /* 3070 */ |
141 | #define HD_READY_SEND_ATDATA (0x36) // 3070 | 141 | #define HD_OPEN_ATCHANNEL_ACK (0x37) /* 3070 */ |
142 | #define HD_OPEN_ATCHANNEL_ACK (0x37) // 3070 | 142 | #define HD_CLOSE_ATCHANNEL_ACK (0x38) /* 3070 */ |
143 | #define HD_CLOSE_ATCHANNEL_ACK (0x38) // 3070 | 143 | #define HD_DEVICE_INIT_OK (0x11) /* ISurf USB + 3070 */ |
144 | #define HD_DEVICE_INIT_OK (0x11) // ISurf USB + 3070 | 144 | #define HD_OPEN_B1CHANNEL_ACK (0x51) /* ISurf USB + 3070 */ |
145 | #define HD_OPEN_B1CHANNEL_ACK (0x51) // ISurf USB + 3070 | 145 | #define HD_OPEN_B2CHANNEL_ACK (0x52) /* ISurf USB + 3070 */ |
146 | #define HD_OPEN_B2CHANNEL_ACK (0x52) // ISurf USB + 3070 | 146 | #define HD_CLOSE_B1CHANNEL_ACK (0x53) /* ISurf USB + 3070 */ |
147 | #define HD_CLOSE_B1CHANNEL_ACK (0x53) // ISurf USB + 3070 | 147 | #define HD_CLOSE_B2CHANNEL_ACK (0x54) /* ISurf USB + 3070 */ |
148 | #define HD_CLOSE_B2CHANNEL_ACK (0x54) // ISurf USB + 3070 | 148 | #define HD_SUSPEND_END (0x61) /* ISurf USB */ |
149 | // Powermangment | 149 | #define HD_RESET_INTERRUPT_PIPE_ACK (0xFF) /* ISurf USB + 3070 */ |
150 | #define HD_SUSPEND_END (0x61) // ISurf USB | 150 | |
151 | // Configuration | 151 | /* control requests */ |
152 | #define HD_RESET_INTERRUPT_PIPE_ACK (0xFF) // ISurf USB + 3070 | 152 | #define HD_OPEN_B1CHANNEL (0x23) /* ISurf USB + 3070 */ |
153 | 153 | #define HD_CLOSE_B1CHANNEL (0x24) /* ISurf USB + 3070 */ | |
154 | /* control requests 3070 */ | 154 | #define HD_OPEN_B2CHANNEL (0x25) /* ISurf USB + 3070 */ |
155 | #define HD_OPEN_B1CHANNEL (0x23) // ISurf USB + 3070 | 155 | #define HD_CLOSE_B2CHANNEL (0x26) /* ISurf USB + 3070 */ |
156 | #define HD_CLOSE_B1CHANNEL (0x24) // ISurf USB + 3070 | 156 | #define HD_RESET_INTERRUPT_PIPE (0x27) /* ISurf USB + 3070 */ |
157 | #define HD_OPEN_B2CHANNEL (0x25) // ISurf USB + 3070 | 157 | #define HD_DEVICE_INIT_ACK (0x34) /* ISurf USB + 3070 */ |
158 | #define HD_CLOSE_B2CHANNEL (0x26) // ISurf USB + 3070 | 158 | #define HD_WRITE_ATMESSAGE (0x12) /* 3070 */ |
159 | #define HD_RESET_INTERRUPT_PIPE (0x27) // ISurf USB + 3070 | 159 | #define HD_READ_ATMESSAGE (0x13) /* 3070 */ |
160 | #define HD_DEVICE_INIT_ACK (0x34) // ISurf USB + 3070 | 160 | #define HD_OPEN_ATCHANNEL (0x28) /* 3070 */ |
161 | #define HD_WRITE_ATMESSAGE (0x12) // 3070 | 161 | #define HD_CLOSE_ATCHANNEL (0x29) /* 3070 */ |
162 | #define HD_READ_ATMESSAGE (0x13) // 3070 | ||
163 | #define HD_OPEN_ATCHANNEL (0x28) // 3070 | ||
164 | #define HD_CLOSE_ATCHANNEL (0x29) // 3070 | ||
165 | 162 | ||
166 | /* number of B channels supported by base driver */ | 163 | /* number of B channels supported by base driver */ |
167 | #define BAS_CHANNELS 2 | 164 | #define BAS_CHANNELS 2 |
@@ -631,7 +628,8 @@ struct gigaset_ops { | |||
631 | 628 | ||
632 | }; | 629 | }; |
633 | 630 | ||
634 | /* = Common structures and definitions ======================================= */ | 631 | /* = Common structures and definitions ======================================= |
632 | */ | ||
635 | 633 | ||
636 | /* Parser states for DLE-Event: | 634 | /* Parser states for DLE-Event: |
637 | * <DLE-EVENT>: <DLE_FLAG> "X" <EVENT> <DLE_FLAG> "." | 635 | * <DLE-EVENT>: <DLE_FLAG> "X" <EVENT> <DLE_FLAG> "." |
@@ -776,7 +774,7 @@ struct event_t *gigaset_add_event(struct cardstate *cs, | |||
776 | void *ptr, int parameter, void *arg); | 774 | void *ptr, int parameter, void *arg); |
777 | 775 | ||
778 | /* Called on CONFIG1 command from frontend. */ | 776 | /* Called on CONFIG1 command from frontend. */ |
779 | int gigaset_enterconfigmode(struct cardstate *cs); //0: success <0: errorcode | 777 | int gigaset_enterconfigmode(struct cardstate *cs); |
780 | 778 | ||
781 | /* cs->lock must not be locked */ | 779 | /* cs->lock must not be locked */ |
782 | static inline void gigaset_schedule_event(struct cardstate *cs) | 780 | static inline void gigaset_schedule_event(struct cardstate *cs) |