usb_serial.c (184736) | usb_serial.c (185948) |
---|---|
1/* $NetBSD: ucom.c,v 1.40 2001/11/13 06:24:54 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 2001-2003, 2005, 2008 5 * Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> | 1/* $NetBSD: ucom.c,v 1.40 2001/11/13 06:24:54 lukem Exp $ */ 2 3/*- 4 * Copyright (c) 2001-2003, 2005, 2008 5 * Shunsuke Akiyama <akiyama@jp.FreeBSD.org>. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 14 unchanged lines hidden (view full) --- 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/usb2/serial/usb2_serial.c 184736 2008-11-06 17:26:12Z imp $"); | 31__FBSDID("$FreeBSD: head/sys/dev/usb2/serial/usb2_serial.c 185948 2008-12-11 23:13:02Z thompsa $"); |
32 33/*- 34 * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. 35 * All rights reserved. 36 * 37 * This code is derived from software contributed to The NetBSD Foundation 38 * by Lennart Augustsson (lennart@augustsson.net) at 39 * Carlstedt Research & Technology. --- 72 unchanged lines hidden (view full) --- 112static usb2_config_td_command_t usb2_com_cfg_open; 113static usb2_config_td_command_t usb2_com_cfg_close; 114static usb2_config_td_command_t usb2_com_cfg_break; 115static usb2_config_td_command_t usb2_com_cfg_dtr; 116static usb2_config_td_command_t usb2_com_cfg_rts; 117static usb2_config_td_command_t usb2_com_cfg_status_change; 118static usb2_config_td_command_t usb2_com_cfg_param; 119 | 32 33/*- 34 * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc. 35 * All rights reserved. 36 * 37 * This code is derived from software contributed to The NetBSD Foundation 38 * by Lennart Augustsson (lennart@augustsson.net) at 39 * Carlstedt Research & Technology. --- 72 unchanged lines hidden (view full) --- 112static usb2_config_td_command_t usb2_com_cfg_open; 113static usb2_config_td_command_t usb2_com_cfg_close; 114static usb2_config_td_command_t usb2_com_cfg_break; 115static usb2_config_td_command_t usb2_com_cfg_dtr; 116static usb2_config_td_command_t usb2_com_cfg_rts; 117static usb2_config_td_command_t usb2_com_cfg_status_change; 118static usb2_config_td_command_t usb2_com_cfg_param; 119 |
120static uint8_t usb2_com_units_alloc(uint32_t sub_units, uint32_t *p_root_unit); 121static void usb2_com_units_free(uint32_t root_unit, uint32_t sub_units); 122static int usb2_com_attach_sub(struct usb2_com_softc *sc); 123static void usb2_com_detach_sub(struct usb2_com_softc *sc); 124static void usb2_com_queue_command(struct usb2_com_softc *sc, usb2_config_td_command_t *cmd, int flag); 125static void usb2_com_shutdown(struct usb2_com_softc *sc); 126static void usb2_com_start_transfers(struct usb2_com_softc *sc); 127static void usb2_com_break(struct usb2_com_softc *sc, uint8_t onoff); 128static void usb2_com_dtr(struct usb2_com_softc *sc, uint8_t onoff); 129static void usb2_com_rts(struct usb2_com_softc *sc, uint8_t onoff); | 120static uint8_t usb2_com_units_alloc(uint32_t, uint32_t *); 121static void usb2_com_units_free(uint32_t, uint32_t); 122static int usb2_com_attach_sub(struct usb2_com_softc *); 123static void usb2_com_detach_sub(struct usb2_com_softc *); 124static void usb2_com_queue_command(struct usb2_com_softc *, 125 usb2_config_td_command_t *, int); 126static void usb2_com_shutdown(struct usb2_com_softc *); 127static void usb2_com_start_transfers(struct usb2_com_softc *); 128static void usb2_com_break(struct usb2_com_softc *, uint8_t); 129static void usb2_com_dtr(struct usb2_com_softc *, uint8_t); 130static void usb2_com_rts(struct usb2_com_softc *, uint8_t); |
130 131static tsw_open_t usb2_com_open; 132static tsw_close_t usb2_com_close; 133static tsw_ioctl_t usb2_com_ioctl; 134static tsw_modem_t usb2_com_modem; 135static tsw_param_t usb2_com_param; 136static tsw_outwakeup_t usb2_com_start_write; 137static tsw_free_t usb2_com_free; --- 974 unchanged lines hidden --- | 131 132static tsw_open_t usb2_com_open; 133static tsw_close_t usb2_com_close; 134static tsw_ioctl_t usb2_com_ioctl; 135static tsw_modem_t usb2_com_modem; 136static tsw_param_t usb2_com_param; 137static tsw_outwakeup_t usb2_com_start_write; 138static tsw_free_t usb2_com_free; --- 974 unchanged lines hidden --- |