Deleted Added
sdiff udiff text old ( 227849 ) new ( 228483 )
full compact
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/mips/cavium/usb/octusb_octeon.c 228483 2011-12-14 00:28:54Z hselasky $");
3
4/*-
5 * Copyright (c) 2007-2008 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

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

177 sc->sc_dci.sc_irq_res);
178 sc->sc_dci.sc_irq_res = NULL;
179 }
180 usb_bus_mem_free_all(&sc->sc_dci.sc_bus, NULL);
181
182 return (0);
183}
184
185static device_method_t octusb_octeon_methods[] = {
186 /* Device interface */
187 DEVMETHOD(device_identify, octusb_octeon_identify),
188 DEVMETHOD(device_probe, octusb_octeon_probe),
189 DEVMETHOD(device_attach, octusb_octeon_attach),
190 DEVMETHOD(device_detach, octusb_octeon_detach),
191 DEVMETHOD(device_resume, bus_generic_resume),
192 DEVMETHOD(device_suspend, bus_generic_suspend),
193 DEVMETHOD(device_shutdown, bus_generic_shutdown),
194
195 DEVMETHOD_END
196};
197
198static driver_t octusb_octeon_driver = {
199 .name = "octusb",
200 .methods = octusb_octeon_methods,
201 .size = sizeof(struct octusb_octeon_softc),
202};
203
204static devclass_t octusb_octeon_devclass;
205
206DRIVER_MODULE(octusb, ciu, octusb_octeon_driver, octusb_octeon_devclass, 0, 0);