diff options
author | roger <roger@FreeBSD.org> | 2000-01-24 14:00:21 +0000 |
---|---|---|
committer | roger <roger@FreeBSD.org> | 2000-01-24 14:00:21 +0000 |
commit | e5aaa91ca52aad7038e4ddd2d925625946f5fad5 (patch) | |
tree | 8dbfcc3a85c04d6861380f50b620a269819301cd /sys/dev/bktr/bktr_i2c.c | |
parent | 7898f6d9d663d382e8737e01839d6fcb42e92e67 (diff) | |
download | FreeBSD-src-e5aaa91ca52aad7038e4ddd2d925625946f5fad5.zip FreeBSD-src-e5aaa91ca52aad7038e4ddd2d925625946f5fad5.tar.gz |
Update to driver 2.07
Update i2c code to build on FreeBSD 3.x and 4.x machines.
Added GPIO audio values for the Askey/Dynalink TV card talken from postings on the V4L mailing list.
Update Australian Channel Set. Submitted by John Birrell <jb@cimlogic.com.au>
Add new Channel Set for France. Submitted by Daniel Dagneaux <dagneaux@lure.u-psud.fr>
Diffstat (limited to 'sys/dev/bktr/bktr_i2c.c')
-rw-r--r-- | sys/dev/bktr/bktr_i2c.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/dev/bktr/bktr_i2c.c b/sys/dev/bktr/bktr_i2c.c index 43a5f35..6f500ff 100644 --- a/sys/dev/bktr/bktr_i2c.c +++ b/sys/dev/bktr/bktr_i2c.c @@ -159,10 +159,18 @@ bt848_i2c_attach(int unit, bt848_ptr_t base, struct bktr_i2c_softc *i2c_sc) btdata[unit].base = base; /* XXX add the I2C interface to the root_bus until pcibus is ready */ +#if (__FreeBSD_version < 400000) + interface = device_add_child(root_bus, "bti2c", unit, NULL); +#else interface = device_add_child(root_bus, "bti2c", unit); +#endif /* add bit-banging generic code onto bti2c interface */ +#if (__FreeBSD_version < 400000) + bitbang = device_add_child(interface, "iicbb", -1, NULL); +#else bitbang = device_add_child(interface, "iicbb", -1); +#endif /* probe and attach the interface, we need it NOW * bit-banging code is also probed and attached */ |