Deleted Added
full compact
ohci_ec.c (227849) ohci_ec.c (228483)
1/*-
2 * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com>
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

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

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Yohanes Nugroho <yohanes@gmail.com>
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

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

19 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#include <sys/cdefs.h>
27__FBSDID("$FreeBSD: head/sys/arm/econa/ohci_ec.c 227849 2011-11-22 21:56:55Z hselasky $");
27__FBSDID("$FreeBSD: head/sys/arm/econa/ohci_ec.c 228483 2011-12-14 00:28:54Z hselasky $");
28
29#include <sys/stdint.h>
30#include <sys/stddef.h>
31#include <sys/param.h>
32#include <sys/queue.h>
33#include <sys/types.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>

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

215 return (0);
216}
217
218static device_method_t ohci_methods[] = {
219 /* Device interface */
220 DEVMETHOD(device_probe, ohci_ec_probe),
221 DEVMETHOD(device_attach, ohci_ec_attach),
222 DEVMETHOD(device_detach, ohci_ec_detach),
28
29#include <sys/stdint.h>
30#include <sys/stddef.h>
31#include <sys/param.h>
32#include <sys/queue.h>
33#include <sys/types.h>
34#include <sys/systm.h>
35#include <sys/kernel.h>

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

215 return (0);
216}
217
218static device_method_t ohci_methods[] = {
219 /* Device interface */
220 DEVMETHOD(device_probe, ohci_ec_probe),
221 DEVMETHOD(device_attach, ohci_ec_attach),
222 DEVMETHOD(device_detach, ohci_ec_detach),
223 DEVMETHOD(device_resume, bus_generic_resume),
224 DEVMETHOD(device_suspend, bus_generic_suspend),
223 DEVMETHOD(device_shutdown, bus_generic_shutdown),
224
225 DEVMETHOD_END
226};
227
228static driver_t ohci_driver = {
225 DEVMETHOD(device_shutdown, bus_generic_shutdown),
226
227 DEVMETHOD_END
228};
229
230static driver_t ohci_driver = {
229 "ohci",
230 ohci_methods,
231 sizeof(struct ec_ohci_softc),
231 .name = "ohci",
232 .methods = ohci_methods,
233 .size = sizeof(struct ec_ohci_softc),
232};
233
234static devclass_t ohci_devclass;
235
236DRIVER_MODULE(ohci, econaarm, ohci_driver, ohci_devclass, 0, 0);
237MODULE_DEPEND(ohci, usb, 1, 1, 1);
234};
235
236static devclass_t ohci_devclass;
237
238DRIVER_MODULE(ohci, econaarm, ohci_driver, ohci_devclass, 0, 0);
239MODULE_DEPEND(ohci, usb, 1, 1, 1);