Deleted Added
full compact
uchcom.c (192499) uchcom.c (192502)
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 192499 2009-05-21 00:04:17Z thompsa $");
66__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uchcom.c 192502 2009-05-21 01:48:42Z 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>

--- 11 unchanged lines hidden (view full) ---

86#include <dev/usb/usb_util.h>
87#include <dev/usb/usb_busdma.h>
88
89#include <dev/usb/serial/usb_serial.h>
90
91#if USB_DEBUG
92static int uchcom_debug = 0;
93
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>

--- 11 unchanged lines hidden (view full) ---

86#include <dev/usb/usb_util.h>
87#include <dev/usb/usb_busdma.h>
88
89#include <dev/usb/serial/usb_serial.h>
90
91#if USB_DEBUG
92static int uchcom_debug = 0;
93
94SYSCTL_NODE(_hw_usb2, OID_AUTO, uchcom, CTLFLAG_RW, 0, "USB uchcom");
95SYSCTL_INT(_hw_usb2_uchcom, OID_AUTO, debug, CTLFLAG_RW,
94SYSCTL_NODE(_hw_usb, OID_AUTO, uchcom, CTLFLAG_RW, 0, "USB uchcom");
95SYSCTL_INT(_hw_usb_uchcom, OID_AUTO, debug, CTLFLAG_RW,
96 &uchcom_debug, 0, "uchcom debug level");
97#endif
98
99#define UCHCOM_IFACE_INDEX 0
100#define UCHCOM_CONFIG_INDEX 0
101
102#define UCHCOM_REV_CH340 0x0250
103#define UCHCOM_INPUT_BUF_SIZE 8

--- 784 unchanged lines hidden ---
96 &uchcom_debug, 0, "uchcom debug level");
97#endif
98
99#define UCHCOM_IFACE_INDEX 0
100#define UCHCOM_CONFIG_INDEX 0
101
102#define UCHCOM_REV_CH340 0x0250
103#define UCHCOM_INPUT_BUF_SIZE 8

--- 784 unchanged lines hidden ---