aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/twe/twe_compat.h
diff options
context:
space:
mode:
authorMike Smith <msmith@FreeBSD.org>2001-05-07 21:46:44 +0000
committerMike Smith <msmith@FreeBSD.org>2001-05-07 21:46:44 +0000
commit282070b3e8b397cde8f7f6f83dc1647e60e223bb (patch)
tree731c17473db365864ba5d7796087f3fdd41bb476 /sys/dev/twe/twe_compat.h
parent053c5b3a9e8240103729451ac41eaaa416779468 (diff)
downloadsrc-282070b3e8b397cde8f7f6f83dc1647e60e223bb.tar.gz
src-282070b3e8b397cde8f7f6f83dc1647e60e223bb.zip
Minor updates:
- Rework of twe_report_request to use the command status value rather than the flags register. (Joel Jacobson @ 3ware) - Update to match some changes in -current vs. stable. MFC in: 1 week
Notes
Notes: svn path=/head/; revision=76340
Diffstat (limited to 'sys/dev/twe/twe_compat.h')
-rw-r--r--sys/dev/twe/twe_compat.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/dev/twe/twe_compat.h b/sys/dev/twe/twe_compat.h
index c2f75e1a8708..ed82631a3aa6 100644
--- a/sys/dev/twe/twe_compat.h
+++ b/sys/dev/twe/twe_compat.h
@@ -130,8 +130,11 @@
#define twe_printf(sc, fmt, args...) device_printf(sc->twe_dev, fmt , ##args)
#define twed_printf(twed, fmt, args...) device_printf(twed->twed_dev, fmt , ##args)
-#if __FreeBSD_version < 500003 /* old buf style */
-# include <sys/buf.h>
+#if __FreeBSD_version < 500003
+# include <machine/clock.h>
+# define INTR_ENTROPY 0
+
+# include <sys/buf.h> /* old buf style */
typedef struct buf twe_bio;
typedef struct buf_queue_head twe_bioq;
# define TWE_BIO_QINIT(bq) bufq_init(&bq);