smbus.c (162234) | smbus.c (162237) |
---|---|
1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 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 --- 13 unchanged lines hidden (view full) --- 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 */ 28 29#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 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 --- 13 unchanged lines hidden (view full) --- 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 */ 28 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/smbus/smbus.c 162234 2006-09-11 20:52:41Z jhb $"); | 30__FBSDID("$FreeBSD: head/sys/dev/smbus/smbus.c 162237 2006-09-11 22:20:37Z jhb $"); |
31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/lock.h> 34#include <sys/module.h> 35#include <sys/mutex.h> 36#include <sys/bus.h> 37 38#include <dev/smbus/smbconf.h> --- 12 unchanged lines hidden (view full) --- 51 52static device_method_t smbus_methods[] = { 53 /* device interface */ 54 DEVMETHOD(device_probe, smbus_probe), 55 DEVMETHOD(device_attach, smbus_attach), 56 DEVMETHOD(device_detach, smbus_detach), 57 58 /* bus interface */ | 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/lock.h> 34#include <sys/module.h> 35#include <sys/mutex.h> 36#include <sys/bus.h> 37 38#include <dev/smbus/smbconf.h> --- 12 unchanged lines hidden (view full) --- 51 52static device_method_t smbus_methods[] = { 53 /* device interface */ 54 DEVMETHOD(device_probe, smbus_probe), 55 DEVMETHOD(device_attach, smbus_attach), 56 DEVMETHOD(device_detach, smbus_detach), 57 58 /* bus interface */ |
59 DEVMETHOD(bus_add_child, bus_generic_add_child), |
|
59 DEVMETHOD(bus_print_child, bus_generic_print_child), 60 61 { 0, 0 } 62}; 63 64driver_t smbus_driver = { 65 "smbus", 66 smbus_methods, --- 51 unchanged lines hidden --- | 60 DEVMETHOD(bus_print_child, bus_generic_print_child), 61 62 { 0, 0 } 63}; 64 65driver_t smbus_driver = { 66 "smbus", 67 smbus_methods, --- 51 unchanged lines hidden --- |