Deleted Added
sdiff udiff text old ( 227849 ) new ( 228483 )
full compact
1#include <sys/cdefs.h>
2__FBSDID("$FreeBSD: head/sys/mips/rt305x/rt305x_dotg.c 228483 2011-12-14 00:28:54Z hselasky $");
3
4/*-
5 * Copyright (c) 2010,2011 Aleksandr Rybalko. All rights reserved.
6 * Copyright (c) 2007-2008 Hans Petter Selasky. All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions
10 * are met:

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

62#include <mips/rt305x/rt305xreg.h>
63#include <mips/rt305x/rt305x_sysctlvar.h>
64
65#define MEM_RID 0
66
67static device_probe_t dotg_obio_probe;
68static device_attach_t dotg_obio_attach;
69static device_detach_t dotg_obio_detach;
70
71struct dotg_obio_softc {
72 struct dotg_softc sc_dci; /* must be first */
73};
74
75static int
76dotg_obio_probe(device_t dev)
77{

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

202 sc->sc_dci.sc_mem_res);
203 sc->sc_dci.sc_mem_res = NULL;
204 }
205 usb_bus_mem_free_all(&sc->sc_dci.sc_bus, NULL);
206
207 return (0);
208}
209
210static device_method_t dotg_obio_methods[] = {
211 /* Device interface */
212 DEVMETHOD(device_probe, dotg_obio_probe),
213 DEVMETHOD(device_attach, dotg_obio_attach),
214 DEVMETHOD(device_detach, dotg_obio_detach),
215 DEVMETHOD(device_suspend, bus_generic_suspend),
216 DEVMETHOD(device_resume, bus_generic_resume),
217 DEVMETHOD(device_shutdown, bus_generic_shutdown),
218
219 DEVMETHOD_END
220};
221
222static driver_t dotg_obio_driver = {
223 .name = "dotg",
224 .methods = dotg_obio_methods,
225 .size = sizeof(struct dotg_obio_softc),
226};
227
228static devclass_t dotg_obio_devclass;
229
230DRIVER_MODULE(dotg, obio, dotg_obio_driver, dotg_obio_devclass, 0, 0);