gpioc.c (213277) | gpioc.c (215142) |
---|---|
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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/dev/gpio/gpioc.c 213277 2010-09-29 20:53:33Z gonzo $"); | 28__FBSDID("$FreeBSD: head/sys/dev/gpio/gpioc.c 215142 2010-11-11 20:18:33Z thompsa $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/types.h> 33 34#include <sys/bus.h> 35#include <sys/conf.h> 36#include <sys/ioccom.h> --- 146 unchanged lines hidden (view full) --- 183 DEVMETHOD(device_detach, gpioc_detach), 184 DEVMETHOD(device_shutdown, bus_generic_shutdown), 185 DEVMETHOD(device_suspend, bus_generic_suspend), 186 DEVMETHOD(device_resume, bus_generic_resume), 187 188 { 0, 0 } 189}; 190 | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/types.h> 33 34#include <sys/bus.h> 35#include <sys/conf.h> 36#include <sys/ioccom.h> --- 146 unchanged lines hidden (view full) --- 183 DEVMETHOD(device_detach, gpioc_detach), 184 DEVMETHOD(device_shutdown, bus_generic_shutdown), 185 DEVMETHOD(device_suspend, bus_generic_suspend), 186 DEVMETHOD(device_resume, bus_generic_resume), 187 188 { 0, 0 } 189}; 190 |
191static driver_t gpioc_driver = { | 191driver_t gpioc_driver = { |
192 "gpioc", 193 gpioc_methods, 194 sizeof(struct gpioc_softc) 195}; 196 197devclass_t gpioc_devclass; 198 199DRIVER_MODULE(gpioc, gpio, gpioc_driver, gpioc_devclass, 0, 0); 200MODULE_VERSION(gpioc, 1); | 192 "gpioc", 193 gpioc_methods, 194 sizeof(struct gpioc_softc) 195}; 196 197devclass_t gpioc_devclass; 198 199DRIVER_MODULE(gpioc, gpio, gpioc_driver, gpioc_devclass, 0, 0); 200MODULE_VERSION(gpioc, 1); |