summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_tireg.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-10-03 13:06:31 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-10-03 13:06:31 +0000
commitacf611fac7337a77b1c9cf6c5bae460d879c1227 (patch)
treec7cc9229ac2bd56d92bdf144b83b6985e8cc8344 /sys/dev/pci/if_tireg.h
parent2fe8dec400bbd731a59e8575c1d58bc22aca15f9 (diff)
take advantage of m->m_ext.ext_handle for storing the softc
(instead of stashing it in the buffer)
Diffstat (limited to 'sys/dev/pci/if_tireg.h')
-rw-r--r--sys/dev/pci/if_tireg.h13
1 files changed, 6 insertions, 7 deletions
diff --git a/sys/dev/pci/if_tireg.h b/sys/dev/pci/if_tireg.h
index 6d183883048..b9f84248c29 100644
--- a/sys/dev/pci/if_tireg.h
+++ b/sys/dev/pci/if_tireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tireg.h,v 1.2 1999/09/26 03:22:40 jason Exp $ */
+/* $OpenBSD: if_tireg.h,v 1.3 1999/10/03 13:06:30 jason Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1030,12 +1030,11 @@ struct ti_event_desc {
#define TI_MSLOTS 256
#define TI_JSLOTS 256
-#define TI_JRAWLEN (TI_JUMBO_FRAMELEN + ETHER_ALIGN + sizeof(u_int64_t))
-#define TI_JLEN (TI_JRAWLEN + (sizeof(u_int64_t) - \
- (TI_JRAWLEN % sizeof(u_int64_t))))
-#define TI_JPAGESZ PAGE_SIZE
-#define TI_RESID (TI_JPAGESZ - (TI_JLEN * TI_JSLOTS) % TI_JPAGESZ)
-#define TI_JMEM ((TI_JLEN * TI_JSLOTS) + TI_RESID)
+#define TI_JRAWLEN (TI_JUMBO_FRAMELEN + ETHER_ALIGN)
+#define TI_JLEN TI_JRAWLEN
+#define TI_JPAGESZ PAGE_SIZE
+#define TI_RESID (TI_JPAGESZ - (TI_JLEN * TI_JSLOTS) % TI_JPAGESZ)
+#define TI_JMEM ((TI_JLEN * TI_JSLOTS) + TI_RESID)
struct ti_jslot {
caddr_t ti_buf;