Deleted Added
full compact
ar71xx_ohci.c (227849) ar71xx_ohci.c (228483)
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@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

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@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

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

21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
25 * SUCH DAMAGE.
26 */
27
28#include <sys/cdefs.h>
29__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_ohci.c 227849 2011-11-22 21:56:55Z hselasky $");
29__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_ohci.c 228483 2011-12-14 00:28:54Z hselasky $");
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/rman.h>
35#include <sys/condvar.h>
36#include <sys/kernel.h>
37#include <sys/module.h>

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

189 return (0);
190}
191
192static device_method_t ohci_methods[] = {
193 /* Device interface */
194 DEVMETHOD(device_probe, ar71xx_ohci_probe),
195 DEVMETHOD(device_attach, ar71xx_ohci_attach),
196 DEVMETHOD(device_detach, ar71xx_ohci_detach),
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/bus.h>
34#include <sys/rman.h>
35#include <sys/condvar.h>
36#include <sys/kernel.h>
37#include <sys/module.h>

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

189 return (0);
190}
191
192static device_method_t ohci_methods[] = {
193 /* Device interface */
194 DEVMETHOD(device_probe, ar71xx_ohci_probe),
195 DEVMETHOD(device_attach, ar71xx_ohci_attach),
196 DEVMETHOD(device_detach, ar71xx_ohci_detach),
197 DEVMETHOD(device_suspend, bus_generic_suspend),
198 DEVMETHOD(device_resume, bus_generic_resume),
197 DEVMETHOD(device_shutdown, bus_generic_shutdown),
198
199 DEVMETHOD_END
200};
201
202static driver_t ohci_driver = {
199 DEVMETHOD(device_shutdown, bus_generic_shutdown),
200
201 DEVMETHOD_END
202};
203
204static driver_t ohci_driver = {
203 "ohci",
204 ohci_methods,
205 sizeof(struct ar71xx_ohci_softc),
205 .name = "ohci",
206 .methods = ohci_methods,
207 .size = sizeof(struct ar71xx_ohci_softc),
206};
207
208static devclass_t ohci_devclass;
209
210DRIVER_MODULE(ohci, apb, ohci_driver, ohci_devclass, 0, 0);
208};
209
210static devclass_t ohci_devclass;
211
212DRIVER_MODULE(ohci, apb, ohci_driver, ohci_devclass, 0, 0);