Deleted Added
full compact
bktr_i2c.c (179624) bktr_i2c.c (181303)
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

--- 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) 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

--- 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/bktr/bktr_i2c.c 179624 2008-06-06 18:40:38Z jhb $");
28__FBSDID("$FreeBSD: head/sys/dev/bktr/bktr_i2c.c 181303 2008-08-04 20:46:15Z jhb $");
29
30/*
31 * I2C support for the bti2c chipset.
32 *
33 * From brooktree848.c <fsmp@freefall.org>
34 */
35
36#include "opt_bktr.h"

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

351
352 *byte = (char)((INL(sc,BKTR_I2C_DATA_CTL) >> 8) & 0xff);
353 BTI2C_DEBUG(printf("r%x+", *byte));
354 mtx_unlock(&Giant);
355
356 return (0);
357}
358
29
30/*
31 * I2C support for the bti2c chipset.
32 *
33 * From brooktree848.c <fsmp@freefall.org>
34 */
35
36#include "opt_bktr.h"

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

351
352 *byte = (char)((INL(sc,BKTR_I2C_DATA_CTL) >> 8) & 0xff);
353 BTI2C_DEBUG(printf("r%x+", *byte));
354 mtx_unlock(&Giant);
355
356 return (0);
357}
358
359DRIVER_MODULE(iicbb, bktr, iicbb_driver, iicbb_devclass, 0, 0);
359DRIVER_MODULE(smbus, bktr, smbus_driver, smbus_devclass, 0, 0);
360
361#endif /* defined(BKTR_USE_FREEBSD_SMBUS) */
360DRIVER_MODULE(smbus, bktr, smbus_driver, smbus_devclass, 0, 0);
361
362#endif /* defined(BKTR_USE_FREEBSD_SMBUS) */