urio.c (192499) | urio.c (192502) |
---|---|
1/*- 2 * Copyright (c) 2000 Iwasa Kazmi 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 --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 * 26 * This code is based on ugen.c and ulpt.c developed by Lennart Augustsson. 27 * This code includes software developed by the NetBSD Foundation, Inc. and 28 * its contributors. 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 Iwasa Kazmi 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 --- 15 unchanged lines hidden (view full) --- 24 * SUCH DAMAGE. 25 * 26 * This code is based on ugen.c and ulpt.c developed by Lennart Augustsson. 27 * This code includes software developed by the NetBSD Foundation, Inc. and 28 * its contributors. 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/usb/storage/urio.c 192499 2009-05-21 00:04:17Z thompsa $"); | 32__FBSDID("$FreeBSD: head/sys/dev/usb/storage/urio.c 192502 2009-05-21 01:48:42Z thompsa $"); |
33 34 35/* 36 * 2000/3/24 added NetBSD/OpenBSD support (from Alex Nemirovsky) 37 * 2000/3/07 use two bulk-pipe handles for read and write (Dirk) 38 * 2000/3/06 change major number(143), and copyright header 39 * some fix for 4.0 (Dirk) 40 * 2000/3/05 codes for FreeBSD 4.x - CURRENT (Thanks to Dirk-Willem van Gulik) --- 21 unchanged lines hidden (view full) --- 62#include <dev/usb/usb_busdma.h> 63#include <dev/usb/usb_mbuf.h> 64#include <dev/usb/usb_dev.h> 65#include <dev/usb/usb_generic.h> 66 67#if USB_DEBUG 68static int urio_debug = 0; 69 | 33 34 35/* 36 * 2000/3/24 added NetBSD/OpenBSD support (from Alex Nemirovsky) 37 * 2000/3/07 use two bulk-pipe handles for read and write (Dirk) 38 * 2000/3/06 change major number(143), and copyright header 39 * some fix for 4.0 (Dirk) 40 * 2000/3/05 codes for FreeBSD 4.x - CURRENT (Thanks to Dirk-Willem van Gulik) --- 21 unchanged lines hidden (view full) --- 62#include <dev/usb/usb_busdma.h> 63#include <dev/usb/usb_mbuf.h> 64#include <dev/usb/usb_dev.h> 65#include <dev/usb/usb_generic.h> 66 67#if USB_DEBUG 68static int urio_debug = 0; 69 |
70SYSCTL_NODE(_hw_usb2, OID_AUTO, urio, CTLFLAG_RW, 0, "USB urio"); 71SYSCTL_INT(_hw_usb2_urio, OID_AUTO, debug, CTLFLAG_RW, | 70SYSCTL_NODE(_hw_usb, OID_AUTO, urio, CTLFLAG_RW, 0, "USB urio"); 71SYSCTL_INT(_hw_usb_urio, OID_AUTO, debug, CTLFLAG_RW, |
72 &urio_debug, 0, "urio debug level"); 73#endif 74 75#define URIO_T_WR 0 76#define URIO_T_RD 1 77#define URIO_T_WR_CS 2 78#define URIO_T_RD_CS 3 79#define URIO_T_MAX 4 --- 396 unchanged lines hidden --- | 72 &urio_debug, 0, "urio debug level"); 73#endif 74 75#define URIO_T_WR 0 76#define URIO_T_RD 1 77#define URIO_T_WR_CS 2 78#define URIO_T_RD_CS 3 79#define URIO_T_MAX 4 --- 396 unchanged lines hidden --- |