Deleted Added
full compact
2c2
< * Copyright (c) 1998 Nicolas Souchu
---
> * Copyright (c) 1998, 2001 Nicolas Souchu
26c26
< * $FreeBSD: head/sys/dev/smbus/smbconf.c 59760 2000-04-29 15:36:14Z phk $
---
> * $FreeBSD: head/sys/dev/smbus/smbconf.c 93023 2002-03-23 15:49:15Z nsouch $
81,96d80
< /*
< * smbus_alloc_bus()
< *
< * Allocate a new bus connected to the given parent device
< */
< device_t
< smbus_alloc_bus(device_t parent)
< {
< device_t child;
<
< /* add the bus to the parent */
< child = device_add_child(parent, "smbus", -1);
<
< return (child);
< }
<
193,208d176
<
< /*
< * smbus_get_addr()
< *
< * Get the I2C 7 bits address of the device
< */
< u_char
< smbus_get_addr(device_t dev)
< {
< uintptr_t addr;
< device_t parent = device_get_parent(dev);
<
< BUS_READ_IVAR(parent, dev, SMBUS_IVAR_ADDR, &addr);
<
< return ((u_char)addr);
< }