Deleted Added
full compact
icee.c (186833) icee.c (246128)
1/*-
2 * Copyright (c) 2006 Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2006 Warner Losh. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */
24
25#include <sys/cdefs.h>
26__FBSDID("$FreeBSD: head/sys/dev/iicbus/icee.c 186833 2009-01-06 17:23:37Z nwhitehorn $");
26__FBSDID("$FreeBSD: head/sys/dev/iicbus/icee.c 246128 2013-01-30 18:01:20Z sbz $");
27/*
28 * Generic IIC eeprom support, modeled after the AT24C family of products.
29 */
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>

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

257 ICEE_UNLOCK(sc);
258 return error;
259}
260
261static device_method_t icee_methods[] = {
262 DEVMETHOD(device_probe, icee_probe),
263 DEVMETHOD(device_attach, icee_attach),
264
27/*
28 * Generic IIC eeprom support, modeled after the AT24C family of products.
29 */
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/bus.h>
33#include <sys/conf.h>
34#include <sys/kernel.h>

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

257 ICEE_UNLOCK(sc);
258 return error;
259}
260
261static device_method_t icee_methods[] = {
262 DEVMETHOD(device_probe, icee_probe),
263 DEVMETHOD(device_attach, icee_attach),
264
265 {0, 0},
265 DEVMETHOD_END
266};
267
268static driver_t icee_driver = {
269 "icee",
270 icee_methods,
271 sizeof(struct icee_softc),
272};
273static devclass_t icee_devclass;
274
275DRIVER_MODULE(icee, iicbus, icee_driver, icee_devclass, 0, 0);
276MODULE_VERSION(icee, 1);
277MODULE_DEPEND(icee, iicbus, 1, 1, 1);
266};
267
268static driver_t icee_driver = {
269 "icee",
270 icee_methods,
271 sizeof(struct icee_softc),
272};
273static devclass_t icee_devclass;
274
275DRIVER_MODULE(icee, iicbus, icee_driver, icee_devclass, 0, 0);
276MODULE_VERSION(icee, 1);
277MODULE_DEPEND(icee, iicbus, 1, 1, 1);