uchcom.c (192984) | uchcom.c (193045) |
---|---|
1/* $NetBSD: uchcom.c,v 1.1 2007/09/03 17:57:37 tshiozak Exp $ */ 2 3/*- 4 * Copyright (c) 2007, Takanori Watanabe 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 49 unchanged lines hidden (view full) --- 58 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 59 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 60 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 61 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 62 * POSSIBILITY OF SUCH DAMAGE. 63 */ 64 65#include <sys/cdefs.h> | 1/* $NetBSD: uchcom.c,v 1.1 2007/09/03 17:57:37 tshiozak Exp $ */ 2 3/*- 4 * Copyright (c) 2007, Takanori Watanabe 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 49 unchanged lines hidden (view full) --- 58 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 59 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 60 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 61 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 62 * POSSIBILITY OF SUCH DAMAGE. 63 */ 64 65#include <sys/cdefs.h> |
66__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uchcom.c 192984 2009-05-28 17:36:36Z thompsa $"); | 66__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uchcom.c 193045 2009-05-29 18:46:57Z thompsa $"); |
67 68/* 69 * driver for WinChipHead CH341/340, the worst USB-serial chip in the world. 70 */ 71 72#include "usbdevs.h" 73#include <dev/usb/usb.h> 74#include <dev/usb/usb_mfunc.h> --- 143 unchanged lines hidden (view full) --- 218static void uchcom_set_line_control(struct uchcom_softc *, tcflag_t); 219static void uchcom_clear_chip(struct uchcom_softc *); 220static void uchcom_reset_chip(struct uchcom_softc *); 221 222static device_probe_t uchcom_probe; 223static device_attach_t uchcom_attach; 224static device_detach_t uchcom_detach; 225 | 67 68/* 69 * driver for WinChipHead CH341/340, the worst USB-serial chip in the world. 70 */ 71 72#include "usbdevs.h" 73#include <dev/usb/usb.h> 74#include <dev/usb/usb_mfunc.h> --- 143 unchanged lines hidden (view full) --- 218static void uchcom_set_line_control(struct uchcom_softc *, tcflag_t); 219static void uchcom_clear_chip(struct uchcom_softc *); 220static void uchcom_reset_chip(struct uchcom_softc *); 221 222static device_probe_t uchcom_probe; 223static device_attach_t uchcom_attach; 224static device_detach_t uchcom_detach; 225 |
226static usb2_callback_t uchcom_intr_callback; 227static usb2_callback_t uchcom_write_callback; 228static usb2_callback_t uchcom_read_callback; | 226static usb_callback_t uchcom_intr_callback; 227static usb_callback_t uchcom_write_callback; 228static usb_callback_t uchcom_read_callback; |
229 230static const struct usb_config uchcom_config_data[UCHCOM_N_TRANSFER] = { 231 232 [UCHCOM_BULK_DT_WR] = { 233 .type = UE_BULK, 234 .endpoint = UE_ADDR_ANY, 235 .direction = UE_DIR_OUT, 236 .bufsize = UCHCOM_BULK_BUF_SIZE, --- 651 unchanged lines hidden --- | 229 230static const struct usb_config uchcom_config_data[UCHCOM_N_TRANSFER] = { 231 232 [UCHCOM_BULK_DT_WR] = { 233 .type = UE_BULK, 234 .endpoint = UE_ADDR_ANY, 235 .direction = UE_DIR_OUT, 236 .bufsize = UCHCOM_BULK_BUF_SIZE, --- 651 unchanged lines hidden --- |