Deleted Added
full compact
uipaq.c (190749) uipaq.c (192499)
1/* $NetBSD: uipaq.c,v 1.4 2006/11/16 01:33:27 christos Exp $ */
2/* $OpenBSD: uipaq.c,v 1.1 2005/06/17 23:50:33 deraadt Exp $ */
3
4/*
5 * Copyright (c) 2000-2005 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

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

44 * 19 July 2003: Incorporated changes suggested by Sam Lawrance from
45 * the uppc module
46 *
47 *
48 * Contact isis@cs.umd.edu if you have any questions/comments about this driver
49 */
50
51#include <sys/cdefs.h>
1/* $NetBSD: uipaq.c,v 1.4 2006/11/16 01:33:27 christos Exp $ */
2/* $OpenBSD: uipaq.c,v 1.1 2005/06/17 23:50:33 deraadt Exp $ */
3
4/*
5 * Copyright (c) 2000-2005 The NetBSD Foundation, Inc.
6 * All rights reserved.
7 *
8 * This code is derived from software contributed to The NetBSD Foundation

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

44 * 19 July 2003: Incorporated changes suggested by Sam Lawrance from
45 * the uppc module
46 *
47 *
48 * Contact isis@cs.umd.edu if you have any questions/comments about this driver
49 */
50
51#include <sys/cdefs.h>
52__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uipaq.c 190749 2009-04-05 21:24:15Z piso $");
52__FBSDID("$FreeBSD: head/sys/dev/usb/serial/uipaq.c 192499 2009-05-21 00:04:17Z thompsa $");
53
54#include "usbdevs.h"
55#include <dev/usb/usb.h>
56#include <dev/usb/usb_mfunc.h>
57#include <dev/usb/usb_error.h>
58#include <dev/usb/usb_cdc.h>
59
60#define USB_DEBUG_VAR usb2_debug

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

1073MODULE_DEPEND(uipaq, ucom, 1, 1, 1);
1074MODULE_DEPEND(uipaq, usb, 1, 1, 1);
1075
1076static int
1077uipaq_probe(device_t dev)
1078{
1079 struct usb2_attach_arg *uaa = device_get_ivars(dev);
1080
53
54#include "usbdevs.h"
55#include <dev/usb/usb.h>
56#include <dev/usb/usb_mfunc.h>
57#include <dev/usb/usb_error.h>
58#include <dev/usb/usb_cdc.h>
59
60#define USB_DEBUG_VAR usb2_debug

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

1073MODULE_DEPEND(uipaq, ucom, 1, 1, 1);
1074MODULE_DEPEND(uipaq, usb, 1, 1, 1);
1075
1076static int
1077uipaq_probe(device_t dev)
1078{
1079 struct usb2_attach_arg *uaa = device_get_ivars(dev);
1080
1081 if (uaa->usb2_mode != USB_MODE_HOST) {
1081 if (uaa->usb_mode != USB_MODE_HOST) {
1082 return (ENXIO);
1083 }
1084 if (uaa->info.bConfigIndex != UIPAQ_CONFIG_INDEX) {
1085 return (ENXIO);
1086 }
1087 if (uaa->info.bIfaceIndex != UIPAQ_IFACE_INDEX) {
1088 return (ENXIO);
1089 }

--- 229 unchanged lines hidden ---
1082 return (ENXIO);
1083 }
1084 if (uaa->info.bConfigIndex != UIPAQ_CONFIG_INDEX) {
1085 return (ENXIO);
1086 }
1087 if (uaa->info.bIfaceIndex != UIPAQ_IFACE_INDEX) {
1088 return (ENXIO);
1089 }

--- 229 unchanged lines hidden ---