summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-04-08 19:25:30 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-04-08 19:25:30 +0000
commitd47b9a698536252ff88246311db67fdd33b04903 (patch)
tree1827826b1db0cffc5a388de7c2ed8839543cb16a /sys/dev/pci
parentbbf09d4b0654214e7f73821c4255d4676163d1e7 (diff)
and host ring definition
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_txpreg.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/dev/pci/if_txpreg.h b/sys/dev/pci/if_txpreg.h
index 9a7f94120e4..edec70fee92 100644
--- a/sys/dev/pci/if_txpreg.h
+++ b/sys/dev/pci/if_txpreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_txpreg.h,v 1.4 2001/04/08 19:16:50 jason Exp $ */
+/* $OpenBSD: if_txpreg.h,v 1.5 2001/04/08 19:25:29 jason Exp $ */
/*
* Copyright (c) 2001 Aaron Campbell <aaron@monkey.org>.
@@ -366,6 +366,23 @@ struct txp_boot_record {
};
/*
+ * host ring structure (shared with typhoon)
+ */
+struct txp_hostring {
+ volatile u_int32_t hr_rx_hi_read_idx; /* host->arm */
+ volatile u_int32_t hr_rx_lo_read_idx; /* host->arm */
+ volatile u_int32_t hr_rx_buf_write_idx; /* host->arm */
+ volatile u_int32_t hr_resp_read_idx; /* host->arm */
+ volatile u_int32_t hr_tx_lo_desc_read_idx; /* arm->host */
+ volatile u_int32_t hr_tx_hi_desc_read_idx; /* arm->host */
+ volatile u_int32_t hr_rx_lo_write_idx; /* arm->host */
+ volatile u_int32_t hr_rx_buf_read_idx; /* arm->host */
+ volatile u_int32_t hr_cmd_read_idx; /* arm->host */
+ volatile u_int32_t hr_resp_write_idx; /* arm->host */
+ volatile u_int32_t hr_rx_hi_write_idx; /* arm->host */
+};
+
+/*
* TYPHOON status register state (in TXP_A2H_0)
*/
#define STAT_ROM_CODE 0x00000001