umcs.c (222578) | umcs.c (222696) |
---|---|
1/*- 2 * Copyright (c) 2010 Lev Serebryakov <lev@FreeBSD.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 * http://www.moschip.com. The datasheets don't contain full 34 * programming information for the chip. 35 * 36 * It is nornal to have only two enabled ports in devices, based on 37 * quad-port mos7840. 38 * 39 */ 40#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010 Lev Serebryakov <lev@FreeBSD.org>. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 * http://www.moschip.com. The datasheets don't contain full 34 * programming information for the chip. 35 * 36 * It is nornal to have only two enabled ports in devices, based on 37 * quad-port mos7840. 38 * 39 */ 40#include <sys/cdefs.h> |
41__FBSDID("$FreeBSD: head/sys/dev/usb/serial/umcs7840.c 222578 2011-06-01 17:58:27Z hselasky $"); | 41__FBSDID("$FreeBSD: head/sys/dev/usb/serial/umcs.c 222696 2011-06-04 20:40:24Z hselasky $"); |
42 43#include <sys/stdint.h> 44#include <sys/stddef.h> 45#include <sys/param.h> 46#include <sys/queue.h> 47#include <sys/types.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> --- 11 unchanged lines hidden (view full) --- 61#include <sys/priv.h> 62 63#include <dev/usb/usb.h> 64#include <dev/usb/usbdi.h> 65#include <dev/usb/usbdi_util.h> 66#include <dev/usb/usb_cdc.h> 67#include "usbdevs.h" 68 | 42 43#include <sys/stdint.h> 44#include <sys/stddef.h> 45#include <sys/param.h> 46#include <sys/queue.h> 47#include <sys/types.h> 48#include <sys/systm.h> 49#include <sys/kernel.h> --- 11 unchanged lines hidden (view full) --- 61#include <sys/priv.h> 62 63#include <dev/usb/usb.h> 64#include <dev/usb/usbdi.h> 65#include <dev/usb/usbdi_util.h> 66#include <dev/usb/usb_cdc.h> 67#include "usbdevs.h" 68 |
69#define USB_DEBUG_VAR umcs7840_debug | 69#define USB_DEBUG_VAR umcs_debug |
70#include <dev/usb/usb_debug.h> 71#include <dev/usb/usb_process.h> 72 73#include <dev/usb/serial/usb_serial.h> 74 | 70#include <dev/usb/usb_debug.h> 71#include <dev/usb/usb_process.h> 72 73#include <dev/usb/serial/usb_serial.h> 74 |
75#include <dev/usb/serial/umcs7840.h> | 75#include |
76 77#define UMCS7840_MODVER 1 78 79#ifdef USB_DEBUG | 76 77#define UMCS7840_MODVER 1 78 79#ifdef USB_DEBUG |
80static int umcs7840_debug = 0; | 80static int umcs_debug = 0; |
81 | 81 |
82SYSCTL_NODE(_hw_usb, OID_AUTO, umcs7840, CTLFLAG_RW, 0, "USB umcs7840 quadport serial adapter"); 83SYSCTL_INT(_hw_usb_umcs7840, OID_AUTO, debug, CTLFLAG_RW, &umcs7840_debug, 0, "Debug level"); | 82SYSCTL_NODE(_hw_usb, OID_AUTO, umcs, CTLFLAG_RW, 0, "USB umcs quadport serial adapter"); 83SYSCTL_INT(_hw_usb_umcs, OID_AUTO, debug, CTLFLAG_RW, &umcs_debug, 0, "Debug level"); |
84#endif /* USB_DEBUG */ 85 86 87/* 88 * Two-port devices (both with 7820 chip and 7840 chip configured as two-port) 89 * have ports 0 and 2, with ports 1 and 3 omitted. 90 * So,PHYSICAL port numbers (indexes) on two-port device will be 0 and 2. 91 * This driver trys to use physical numbers as much as possible. --- 984 unchanged lines hidden --- | 84#endif /* USB_DEBUG */ 85 86 87/* 88 * Two-port devices (both with 7820 chip and 7840 chip configured as two-port) 89 * have ports 0 and 2, with ports 1 and 3 omitted. 90 * So,PHYSICAL port numbers (indexes) on two-port device will be 0 and 2. 91 * This driver trys to use physical numbers as much as possible. --- 984 unchanged lines hidden --- |