Deleted Added
full compact
umcs.c (223486) umcs.c (227309)
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/umcs.c 223486 2011-06-24 02:30:02Z hselasky $");
41__FBSDID("$FreeBSD: head/sys/dev/usb/serial/umcs.c 227309 2011-11-07 15:43:11Z ed $");
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>

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

74
75#include <dev/usb/serial/umcs.h>
76
77#define UMCS7840_MODVER 1
78
79#ifdef USB_DEBUG
80static int umcs_debug = 0;
81
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>

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

74
75#include <dev/usb/serial/umcs.h>
76
77#define UMCS7840_MODVER 1
78
79#ifdef USB_DEBUG
80static int umcs_debug = 0;
81
82SYSCTL_NODE(_hw_usb, OID_AUTO, umcs, CTLFLAG_RW, 0, "USB umcs quadport serial adapter");
82static SYSCTL_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.

--- 985 unchanged lines hidden ---
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.

--- 985 unchanged lines hidden ---