ohci_s3c24x0.c (227849) | ohci_s3c24x0.c (228483) |
---|---|
1/*- 2 * Copyright (c) 2006 M. Warner Losh. All rights reserved. 3 * Copyright (c) 2009 Andrew Turner. 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) 2006 M. Warner Losh. All rights reserved. 3 * Copyright (c) 2009 Andrew Turner. 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/dev/usb/controller/ohci_s3c24x0.c 227849 2011-11-22 21:56:55Z hselasky $"); | 27__FBSDID("$FreeBSD: head/sys/dev/usb/controller/ohci_s3c24x0.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> --- 157 unchanged lines hidden (view full) --- 193 return (0); 194} 195 196static device_method_t ohci_methods[] = { 197 /* Device interface */ 198 DEVMETHOD(device_probe, ohci_s3c24x0_probe), 199 DEVMETHOD(device_attach, ohci_s3c24x0_attach), 200 DEVMETHOD(device_detach, ohci_s3c24x0_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> --- 157 unchanged lines hidden (view full) --- 193 return (0); 194} 195 196static device_method_t ohci_methods[] = { 197 /* Device interface */ 198 DEVMETHOD(device_probe, ohci_s3c24x0_probe), 199 DEVMETHOD(device_attach, ohci_s3c24x0_attach), 200 DEVMETHOD(device_detach, ohci_s3c24x0_detach), |
201 DEVMETHOD(device_suspend, bus_generic_suspend), 202 DEVMETHOD(device_resume, bus_generic_resume), |
|
201 DEVMETHOD(device_shutdown, bus_generic_shutdown), 202 203 DEVMETHOD_END 204}; 205 206static driver_t ohci_driver = { | 203 DEVMETHOD(device_shutdown, bus_generic_shutdown), 204 205 DEVMETHOD_END 206}; 207 208static driver_t ohci_driver = { |
207 "ohci", 208 ohci_methods, 209 sizeof(struct ohci_softc), | 209 .name = "ohci", 210 .methods = ohci_methods, 211 .size = sizeof(struct ohci_softc), |
210}; 211 212static devclass_t ohci_devclass; 213 214DRIVER_MODULE(ohci, s3c24x0, ohci_driver, ohci_devclass, 0, 0); 215MODULE_DEPEND(ohci, usb, 1, 1, 1); | 212}; 213 214static devclass_t ohci_devclass; 215 216DRIVER_MODULE(ohci, s3c24x0, ohci_driver, ohci_devclass, 0, 0); 217MODULE_DEPEND(ohci, usb, 1, 1, 1); |