Deleted Added
full compact
lpc_gpio.c (266152) lpc_gpio.c (278782)
1/*-
2 * Copyright (c) 2011 Jakub Wojciech Klama <jceel@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

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

45 * [52..64] -> P2.0..P2.12 (port 2)
46 * [65..88] -> P1.0..P1.23 (port 1)
47 * [89..96] -> P0.0..P0.7 (port 0)
48 *
49 */
50
51
52#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2011 Jakub Wojciech Klama <jceel@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

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

45 * [52..64] -> P2.0..P2.12 (port 2)
46 * [65..88] -> P1.0..P1.23 (port 1)
47 * [89..96] -> P0.0..P0.7 (port 0)
48 *
49 */
50
51
52#include <sys/cdefs.h>
53__FBSDID("$FreeBSD: stable/10/sys/arm/lpc/lpc_gpio.c 266152 2014-05-15 16:11:06Z ian $");
53__FBSDID("$FreeBSD: stable/10/sys/arm/lpc/lpc_gpio.c 278782 2015-02-14 20:37:33Z loos $");
54
55#include <sys/param.h>
56#include <sys/systm.h>
57#include <sys/bio.h>
58#include <sys/bus.h>
59#include <sys/conf.h>
60#include <sys/endian.h>
61#include <sys/kernel.h>

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

187 return (ENXIO);
188 }
189
190 sc->lg_bst = rman_get_bustag(sc->lg_res);
191 sc->lg_bsh = rman_get_bushandle(sc->lg_res);
192
193 lpc_gpio_sc = sc;
194
54
55#include <sys/param.h>
56#include <sys/systm.h>
57#include <sys/bio.h>
58#include <sys/bus.h>
59#include <sys/conf.h>
60#include <sys/endian.h>
61#include <sys/kernel.h>

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

187 return (ENXIO);
188 }
189
190 sc->lg_bst = rman_get_bustag(sc->lg_res);
191 sc->lg_bsh = rman_get_bushandle(sc->lg_res);
192
193 lpc_gpio_sc = sc;
194
195 device_add_child(dev, "gpioc", device_get_unit(dev));
196 device_add_child(dev, "gpiobus", device_get_unit(dev));
195 device_add_child(dev, "gpioc", -1);
196 device_add_child(dev, "gpiobus", -1);
197
198 return (bus_generic_attach(dev));
199}
200
201static int
202lpc_gpio_detach(device_t dev)
203{
204 return (EBUSY);

--- 352 unchanged lines hidden ---
197
198 return (bus_generic_attach(dev));
199}
200
201static int
202lpc_gpio_detach(device_t dev)
203{
204 return (EBUSY);

--- 352 unchanged lines hidden ---