Lines Matching +full:led +full:- +full:usb +full:- +full:mode

1 /* SPDX-License-Identifier: GPL-2.0 */
3 * hfcsusb.h, HFC-S USB mISDN driver
10 #define DRIVER_NAME "HFC-S_USB"
21 #define CLKDEL_TE 0x0f /* CLKDEL in TE mode */
22 #define CLKDEL_NT 0x6c /* CLKDEL in NT mode */
37 #define NT_ACTIVATION_TIMER 0x01 /* enables NT mode activation Timer */
40 #define MAX_BCH_SIZE 2048 /* allowed B-channel packet size */
53 #define HFCUSB_SCTRL 0x31 /* S-bus control register (tx) */
55 #define HFCUSB_SCTRL_R 0x33 /* S-bus control register (rx) */
70 #define HFCUSB_CHIPID 0x40 /* ID value of HFC-S USB */
104 #define BITLINE_INF (-96 * 8)
106 /* HFC-S USB register access by Control-URSs */
108 usb_control_msg((a)->dev, (a)->ctrl_out_pipe, 0, 0x40, (c), (b), \
111 usb_control_msg((a)->dev, (a)->ctrl_in_pipe, 1, 0xC0, 0, (b), (c), \
130 {-ENOMEM, "No memory for allocation of internal structures"},
131 {-ENOSPC, "The host controller's bandwidth is already consumed"},
132 {-ENOENT, "URB was canceled by unlink_urb"},
133 {-EXDEV, "ISO transfer only partially completed"},
134 {-EAGAIN, "Too match scheduled for the future"},
135 {-ENXIO, "URB already queued"},
136 {-EFBIG, "Too much ISO frames requested"},
137 {-ENOSR, "Buffer error (overrun)"},
138 {-EPIPE, "Specified endpoint is stalled (device not responding)"},
139 {-EOVERFLOW, "Babble (bad cable?)"},
140 {-EPROTO, "Bit-stuff error (bad cable?)"},
141 {-EILSEQ, "CRC/Timeout"},
142 {-ETIMEDOUT, "NAK (device does not respond)"},
143 {-ESHUTDOWN, "Device unplugged"},
144 {-1, NULL}
154 return "<unknown USB Error>"; in symbolic()
157 /* USB descriptor need to contain one of the following EndPoint combination: */
177 * best matching endpoint configuration within a device's USB descriptor.
179 * INT-in and ISO-out, or ISO-in and ISO-out)
180 * with 4 RX endpoints even E-Channel logging is possible
210 #define LED_OFF 0 /* no LED support */
211 #define LED_SCHEME1 1 /* LED standard scheme */
228 /* time in ms to perform a Flashing LED when B-Channel has traffic */
236 /* structure defining input+output fifos (interrupt/bulk mode) */
239 __u8 buffer[ISO_BUFFER_SIZE]; /* buffer rx/tx USB URB data */
253 __u8 usb_packet_maxlen; /* maximum length for usb transfer */
256 struct urb *urb; /* transfer structure for usb routines */
257 __u8 buffer[128]; /* buffer USB INT OUT URB data */
264 struct dchannel *dch; /* link to hfcsusb_t->dch */
265 struct bchannel *bch; /* link to hfcsusb_t->bch */
266 struct dchannel *ech; /* link to hfcsusb_t->ech, TODO: E-CHANNEL */
311 __u8 led_scheme; /* led display scheme */
312 signed short led_bits[8]; /* array of 8 possible LED bitmask */
321 "TE F0 - Reset",
322 "TE F1 - Reset",
323 "TE F2 - Sensing",
324 "TE F3 - Deactivated",
325 "TE F4 - Awaiting signal",
326 "TE F5 - Identifying input",
327 "TE F6 - Synchronized",
328 "TE F7 - Activated",
329 "TE F8 - Lost framing",
333 "NT G0 - Reset",
334 "NT G1 - Deactive",
335 "NT G2 - Pending activation",
336 "NT G3 - Active",
337 "NT G4 - Pending deactivation",
346 "ISDN USB TA (Cologne Chip HFC-S USB based)"}),
352 "DrayTek miniVigor 128 USB ISDN TA"}),
357 {LED_SCHEME1, {0x80, -64, -32, -16},
358 "Billion tiny USB ISDN TA 128"}),
364 "Stollmann USB TA"}),
370 "Aceex USB ISDN TA"}),
376 "OEM USB ISDN TA"}),
382 "Olitec USB RNIS"}),
387 {LED_SCHEME1, {0x80, -64, -32, -16},
388 "Bewan Modem RNIS USB"}),
393 {LED_SCHEME1, {0x80, -64, -32, -16},
394 "Djinn Numeris USB"}),
399 {LED_SCHEME1, {0x80, -64, -32, -16},
406 "Eicon DIVA USB 4.0"}),
411 {LED_SCHEME1, {0x88, -64, -32, -16},
412 "ZyXEL OMNI.NET USB II"}),
417 {LED_SCHEME1, {0x88, -64, -32, -16},
418 "X-Tensions USB ISDN TA XC-525"}),
423 MODULE_DEVICE_TABLE(usb, hfcsusb_idtab);