summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_iwnreg.h
diff options
context:
space:
mode:
authorDamien Bergamini <damien@cvs.openbsd.org>2007-11-27 19:45:45 +0000
committerDamien Bergamini <damien@cvs.openbsd.org>2007-11-27 19:45:45 +0000
commit0bd490a7872454d032e9220b8390edb9429a6d9a (patch)
treed8ded5bd2324e0f00c7556fb46c1cf8eb297ebc4 /sys/dev/pci/if_iwnreg.h
parent1d1e47fe5d9c6461b1b5b7d8de1bc21472d20e9e (diff)
fix DMA alignment constraints: rings must be aligned on a 256-byte
boundary, "keep warm" page must be aligned on a 4KB boundary. make sure sc->shared->len[x][y] == sc->shared->len[x + 256][y] for all x < 64.
Diffstat (limited to 'sys/dev/pci/if_iwnreg.h')
-rw-r--r--sys/dev/pci/if_iwnreg.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/if_iwnreg.h b/sys/dev/pci/if_iwnreg.h
index ccb49cc3e7e..7dba6b8ddf0 100644
--- a/sys/dev/pci/if_iwnreg.h
+++ b/sys/dev/pci/if_iwnreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwnreg.h,v 1.7 2007/11/17 18:50:54 damien Exp $ */
+/* $OpenBSD: if_iwnreg.h,v 1.8 2007/11/27 19:45:44 damien Exp $ */
/*-
* Copyright (c) 2007
@@ -24,9 +24,9 @@
#define IWN_NTXCHAINS 2
/*
- * Rings must be aligned on a 16K boundary.
+ * Rings must be aligned on a 256-byte boundary.
*/
-#define IWN_RING_DMA_ALIGN 0x4000
+#define IWN_RING_DMA_ALIGN 256
/* maximum scatter/gather */
#define IWN_MAX_SCATTER 20
@@ -180,6 +180,7 @@
#define IWN_ENA_L1 (1 << 1)
+#define IWN_TX_WINDOW 64
struct iwn_shared {
uint16_t len[512][IWN_NTXQUEUES]; /* 16KB total */
uint16_t closed_count;