summaryrefslogtreecommitdiffstats
path: root/sys/dev/bktr/bktr_i2c.c
diff options
context:
space:
mode:
authorroger <roger@FreeBSD.org>1999-10-28 13:58:17 +0000
committerroger <roger@FreeBSD.org>1999-10-28 13:58:17 +0000
commitb0d0f86853e501f4aa4b2d14e241f009b51dd1e0 (patch)
treec3d5f8b443fef744e2928e638ed27177233a6990 /sys/dev/bktr/bktr_i2c.c
parent6551981f316aa02f243192e8e5b1fe6c1c999809 (diff)
downloadFreeBSD-src-b0d0f86853e501f4aa4b2d14e241f009b51dd1e0.zip
FreeBSD-src-b0d0f86853e501f4aa4b2d14e241f009b51dd1e0.tar.gz
Update to driver release 2.04
Update AverMedia GPIO values Submitted by: AverMedia Add support for WinTV Theater Dolby Surround Sound DPL3518A chip Submitted by: Frank Nobis <fn@radio-do.de> Make PLL mode the default for Bt878s. You no longer need options BKTR_USE_PLL
Diffstat (limited to 'sys/dev/bktr/bktr_i2c.c')
-rw-r--r--sys/dev/bktr/bktr_i2c.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/bktr/bktr_i2c.c b/sys/dev/bktr/bktr_i2c.c
index dc9e648..7cd0ba0 100644
--- a/sys/dev/bktr/bktr_i2c.c
+++ b/sys/dev/bktr/bktr_i2c.c
@@ -128,11 +128,23 @@ static device_method_t bti2c_methods[] = {
{ 0, 0 }
};
+#if (__FreeBSD_version < 400000)
+/* FreeBSD 3.x needs DRIVER_TYPE_MISC */
static driver_t bti2c_driver = {
"bti2c",
bti2c_methods,
+ DRIVER_TYPE_MISC,
sizeof(struct bti2c_softc),
};
+#endif
+
+#if (__FreeBSD_version >=400000)
+ static driver_t bti2c_driver = {
+ "bti2c",
+ bti2c_methods,
+ sizeof(struct bti2c_softc),
+};
+#endif
/*
* Call this to pass the base address of the bktr device to the
OpenPOWER on IntegriCloud