uslcom.c (190633) | uslcom.c (190734) |
---|---|
1/* $OpenBSD: uslcom.c,v 1.17 2007/11/24 10:52:12 jsg Exp $ */ 2 3#include <sys/cdefs.h> | 1/* $OpenBSD: uslcom.c,v 1.17 2007/11/24 10:52:12 jsg Exp $ */ 2 3#include <sys/cdefs.h> |
4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uslcom.c 190633 2009-04-01 20:23:47Z piso $"); | 4__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uslcom.c 190734 2009-04-05 18:20:38Z thompsa $"); |
5 6/* 7 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> 8 * 9 * Permission to use, copy, modify, and distribute this software for any 10 * purpose with or without fee is hereby granted, provided that the above 11 * copyright notice and this permission notice appear in all copies. 12 * --- 110 unchanged lines hidden (view full) --- 123static void uslcom_stop_write(struct usb2_com_softc *); 124 125static const struct usb2_config uslcom_config[USLCOM_N_TRANSFER] = { 126 127 [USLCOM_BULK_DT_WR] = { 128 .type = UE_BULK, 129 .endpoint = UE_ADDR_ANY, 130 .direction = UE_DIR_OUT, | 5 6/* 7 * Copyright (c) 2006 Jonathan Gray <jsg@openbsd.org> 8 * 9 * Permission to use, copy, modify, and distribute this software for any 10 * purpose with or without fee is hereby granted, provided that the above 11 * copyright notice and this permission notice appear in all copies. 12 * --- 110 unchanged lines hidden (view full) --- 123static void uslcom_stop_write(struct usb2_com_softc *); 124 125static const struct usb2_config uslcom_config[USLCOM_N_TRANSFER] = { 126 127 [USLCOM_BULK_DT_WR] = { 128 .type = UE_BULK, 129 .endpoint = UE_ADDR_ANY, 130 .direction = UE_DIR_OUT, |
131 .mh.bufsize = USLCOM_BULK_BUF_SIZE, 132 .mh.flags = {.pipe_bof = 1,.force_short_xfer = 1,}, 133 .mh.callback = &uslcom_write_callback, | 131 .bufsize = USLCOM_BULK_BUF_SIZE, 132 .flags = {.pipe_bof = 1,.force_short_xfer = 1,}, 133 .callback = &uslcom_write_callback, |
134 }, 135 136 [USLCOM_BULK_DT_RD] = { 137 .type = UE_BULK, 138 .endpoint = UE_ADDR_ANY, 139 .direction = UE_DIR_IN, | 134 }, 135 136 [USLCOM_BULK_DT_RD] = { 137 .type = UE_BULK, 138 .endpoint = UE_ADDR_ANY, 139 .direction = UE_DIR_IN, |
140 .mh.bufsize = USLCOM_BULK_BUF_SIZE, 141 .mh.flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, 142 .mh.callback = &uslcom_read_callback, | 140 .bufsize = USLCOM_BULK_BUF_SIZE, 141 .flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, 142 .callback = &uslcom_read_callback, |
143 }, 144}; 145 146struct usb2_com_callback uslcom_callback = { 147 .usb2_com_cfg_open = &uslcom_open, 148 .usb2_com_cfg_close = &uslcom_close, 149 .usb2_com_cfg_get_status = &uslcom_get_status, 150 .usb2_com_cfg_set_dtr = &uslcom_set_dtr, --- 393 unchanged lines hidden --- | 143 }, 144}; 145 146struct usb2_com_callback uslcom_callback = { 147 .usb2_com_cfg_open = &uslcom_open, 148 .usb2_com_cfg_close = &uslcom_close, 149 .usb2_com_cfg_get_status = &uslcom_get_status, 150 .usb2_com_cfg_set_dtr = &uslcom_set_dtr, --- 393 unchanged lines hidden --- |