Deleted Added
full compact
atmegadci.c (192499) atmegadci.c (192502)
1#include <sys/cdefs.h>
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/atmegadci.c 192499 2009-05-21 00:04:17Z thompsa $");
2__FBSDID("$FreeBSD: head/sys/dev/usb/controller/atmegadci.c 192502 2009-05-21 01:48:42Z thompsa $");
3
4/*-
5 * Copyright (c) 2009 Hans Petter Selasky. 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
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

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

60 ((uint8_t *)&(((struct atmegadci_softc *)0)->sc_bus))))
61
62#define ATMEGA_PC2SC(pc) \
63 ATMEGA_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus)
64
65#if USB_DEBUG
66static int atmegadci_debug = 0;
67
3
4/*-
5 * Copyright (c) 2009 Hans Petter Selasky. 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
9 * are met:
10 * 1. Redistributions of source code must retain the above copyright

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

60 ((uint8_t *)&(((struct atmegadci_softc *)0)->sc_bus))))
61
62#define ATMEGA_PC2SC(pc) \
63 ATMEGA_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus)
64
65#if USB_DEBUG
66static int atmegadci_debug = 0;
67
68SYSCTL_NODE(_hw_usb2, OID_AUTO, atmegadci, CTLFLAG_RW, 0, "USB ATMEGA DCI");
69SYSCTL_INT(_hw_usb2_atmegadci, OID_AUTO, debug, CTLFLAG_RW,
68SYSCTL_NODE(_hw_usb, OID_AUTO, atmegadci, CTLFLAG_RW, 0, "USB ATMEGA DCI");
69SYSCTL_INT(_hw_usb_atmegadci, OID_AUTO, debug, CTLFLAG_RW,
70 &atmegadci_debug, 0, "ATMEGA DCI debug level");
71#endif
72
73#define ATMEGA_INTR_ENDPT 1
74
75/* prototypes */
76
77struct usb2_bus_methods atmegadci_bus_methods;

--- 2049 unchanged lines hidden ---
70 &atmegadci_debug, 0, "ATMEGA DCI debug level");
71#endif
72
73#define ATMEGA_INTR_ENDPT 1
74
75/* prototypes */
76
77struct usb2_bus_methods atmegadci_bus_methods;

--- 2049 unchanged lines hidden ---