aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bktr/bktr_os.c
diff options
context:
space:
mode:
authorRoger Hardiman <roger@FreeBSD.org>2000-09-10 14:34:08 +0000
committerRoger Hardiman <roger@FreeBSD.org>2000-09-10 14:34:08 +0000
commitdd11af663730660c9485a30adce19ef8d4b31ee7 (patch)
treefc576b808fef21222887397a350041b27f4aed37 /sys/dev/bktr/bktr_os.c
parent452d07c1ce31c128e5bf4b42fe862bd7b8b9f4e1 (diff)
downloadsrc-dd11af663730660c9485a30adce19ef8d4b31ee7.tar.gz
src-dd11af663730660c9485a30adce19ef8d4b31ee7.zip
Update to driver 2.15.
Main change is the addition of the bktr_mem module. This holds onto the bktr driver's contiguously allocated memory when the bktr driver is unloaded and reloaded. This has to be done because it is virtually impossible to get contiguous memory once a system is running. Also tidied up the use of SMBUS, added a new Hauppauge tuner type (0x2c) and a new Flyvideo vendor ID.
Notes
Notes: svn path=/head/; revision=65692
Diffstat (limited to 'sys/dev/bktr/bktr_os.c')
-rw-r--r--sys/dev/bktr/bktr_os.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/bktr/bktr_os.c b/sys/dev/bktr/bktr_os.c
index eecc94903d17..10df9c8d4145 100644
--- a/sys/dev/bktr/bktr_os.c
+++ b/sys/dev/bktr/bktr_os.c
@@ -184,7 +184,7 @@ int bktr_debug = 0;
#include <dev/bktr/bktr_audio.h>
#include <dev/bktr/bktr_core.h>
#include <dev/bktr/bktr_os.h>
-#if (NSMBUS > 0)
+#if defined(BKTR_USE_FREEBSD_SMBUS)
#include <dev/bktr/bktr_i2c.h>
#endif
#endif
@@ -380,7 +380,7 @@ bktr_attach( device_t dev )
/* XXX call bt848_i2c dependent attach() routine */
-#if (NSMBUS > 0)
+#if defined(BKTR_USE_FREEBSD_SMBUS)
if (bt848_i2c_attach(unit, bktr, &bktr->i2c_sc))
printf("bktr%d: i2c_attach: can't attach\n", unit);
#endif
@@ -931,7 +931,7 @@ bktr_attach( pcici_t tag, int unit )
/* XXX call bt848_i2c dependent attach() routine */
-#if (NSMBUS > 0)
+#if defined(BKTR_USE_FREEBSD_SMBUS)
if (bt848_i2c_attach(unit, bktr, &bktr->i2c_sc))
printf("bktr%d: i2c_attach: can't attach\n", unit);
#endif