Deleted Added
full compact
ehci_ps3.c (227843) ehci_ps3.c (228483)
1/*-
2 * Copyright (C) 2010 Nathan Whitehorn
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

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

17 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
1/*-
2 * Copyright (C) 2010 Nathan Whitehorn
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

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

17 * IN NO EVENT SHALL TOOLS GMBH BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 * $FreeBSD: head/sys/powerpc/ps3/ehci_ps3.c 227843 2011-11-22 21:28:20Z marius $
25 * $FreeBSD: head/sys/powerpc/ps3/ehci_ps3.c 228483 2011-12-14 00:28:54Z hselasky $
26 */
27
28#include <sys/cdefs.h>
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/powerpc/ps3/ehci_ps3.c 227843 2011-11-22 21:28:20Z marius $");
29__FBSDID("$FreeBSD: head/sys/powerpc/ps3/ehci_ps3.c 228483 2011-12-14 00:28:54Z hselasky $");
30
31#include <sys/stdint.h>
32#include <sys/stddef.h>
33#include <sys/param.h>
34#include <sys/queue.h>
35#include <sys/types.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>

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

147error:
148 return (ENXIO);
149}
150
151static device_method_t ehci_ps3_methods[] = {
152 /* Device interface */
153 DEVMETHOD(device_probe, ehci_ps3_probe),
154 DEVMETHOD(device_attach, ehci_ps3_attach),
30
31#include <sys/stdint.h>
32#include <sys/stddef.h>
33#include <sys/param.h>
34#include <sys/queue.h>
35#include <sys/types.h>
36#include <sys/systm.h>
37#include <sys/kernel.h>

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

147error:
148 return (ENXIO);
149}
150
151static device_method_t ehci_ps3_methods[] = {
152 /* Device interface */
153 DEVMETHOD(device_probe, ehci_ps3_probe),
154 DEVMETHOD(device_attach, ehci_ps3_attach),
155 DEVMETHOD(device_resume, bus_generic_resume),
156 DEVMETHOD(device_suspend, bus_generic_suspend),
157 DEVMETHOD(device_shutdown, bus_generic_shutdown),
155
156 DEVMETHOD_END
157};
158
159static driver_t ehci_ps3_driver = {
158
159 DEVMETHOD_END
160};
161
162static driver_t ehci_ps3_driver = {
160 "ehci",
161 ehci_ps3_methods,
162 sizeof(ehci_softc_t),
163 .name = "ehci",
164 .methods = ehci_ps3_methods,
165 .size = sizeof(ehci_softc_t),
163};
164
165static devclass_t ehci_ps3_devclass;
166
167DRIVER_MODULE(ehci_ps3, ps3bus, ehci_ps3_driver, ehci_ps3_devclass, 0, 0);
168MODULE_DEPEND(ehci_ps3, usb, 1, 1, 1);
166};
167
168static devclass_t ehci_ps3_devclass;
169
170DRIVER_MODULE(ehci_ps3, ps3bus, ehci_ps3_driver, ehci_ps3_devclass, 0, 0);
171MODULE_DEPEND(ehci_ps3, usb, 1, 1, 1);