summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/twe_compat.h
diff options
context:
space:
mode:
authorps <ps@FreeBSD.org>2003-08-12 06:38:55 +0000
committerps <ps@FreeBSD.org>2003-08-12 06:38:55 +0000
commit1bff6686ac1f910b42d321c4b6aeed66c70f7a4d (patch)
treeef44b15d650aa36cef07ac360c95a3df64d9c9e3 /sys/dev/twe/twe_compat.h
parent1a2d5f38b0e6fb77c067fe3f08059dd9293ab98b (diff)
downloadFreeBSD-src-1bff6686ac1f910b42d321c4b6aeed66c70f7a4d.zip
FreeBSD-src-1bff6686ac1f910b42d321c4b6aeed66c70f7a4d.tar.gz
Fix the busdma support in twe to support EINPROGRESS and enable it for
use with PAE kernels.
Diffstat (limited to 'sys/dev/twe/twe_compat.h')
-rw-r--r--sys/dev/twe/twe_compat.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/twe/twe_compat.h b/sys/dev/twe/twe_compat.h
index 69db4f2..181c79f 100644
--- a/sys/dev/twe/twe_compat.h
+++ b/sys/dev/twe/twe_compat.h
@@ -37,6 +37,7 @@
#define TWE_SUPPORTED_PLATFORM
#include <sys/param.h>
+#include <sys/endian.h>
#include <sys/systm.h>
#include <sys/malloc.h>
#include <sys/kernel.h>
@@ -105,6 +106,8 @@
* FreeBSD-specific softc elements
*/
#define TWE_PLATFORM_SOFTC \
+ bus_dmamap_t twe_cmdmap; /* DMA map for command */ \
+ u_int32_t twe_cmdphys; /* address of command in controller space */ \
device_t twe_dev; /* bus device */ \
dev_t twe_dev_t; /* control device */ \
struct resource *twe_io; /* register interface window */ \
@@ -112,9 +115,14 @@
bus_space_tag_t twe_btag; /* bus space tag */ \
bus_dma_tag_t twe_parent_dmat; /* parent DMA tag */ \
bus_dma_tag_t twe_buffer_dmat; /* data buffer DMA tag */ \
+ bus_dma_tag_t twe_cmd_dmat; /* command buffer DMA tag */ \
+ bus_dma_tag_t twe_immediate_dmat; /* command buffer DMA tag */ \
struct resource *twe_irq; /* interrupt */ \
void *twe_intr; /* interrupt handle */ \
struct intr_config_hook twe_ich; /* delayed-startup hook */ \
+ void *twe_cmd; /* command structures */ \
+ void *twe_immediate; /* immediate commands */ \
+ bus_dmamap_t twe_immediate_map; \
struct sysctl_ctx_list sysctl_ctx; \
struct sysctl_oid *sysctl_tree;
@@ -122,8 +130,6 @@
* FreeBSD-specific request elements
*/
#define TWE_PLATFORM_REQUEST \
- bus_dmamap_t tr_cmdmap; /* DMA map for command */ \
- u_int32_t tr_cmdphys; /* address of command in controller space */ \
bus_dmamap_t tr_dmamap; /* DMA map for data */ \
u_int32_t tr_dataphys; /* data buffer base address in controller space */
OpenPOWER on IntegriCloud