summaryrefslogtreecommitdiffstats
path: root/sys/isa/ppcreg.h
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2000-07-18 09:01:09 +0000
committerdfr <dfr@FreeBSD.org>2000-07-18 09:01:09 +0000
commit5aef58d7b9d8523da7d5c51472067b91b09bd239 (patch)
treed607ec799631b59af355708f699bd1aa8039aa43 /sys/isa/ppcreg.h
parentcc48e301037a7473b6f5da1ca019ad6ac61a1ebe (diff)
downloadFreeBSD-src-5aef58d7b9d8523da7d5c51472067b91b09bd239.zip
FreeBSD-src-5aef58d7b9d8523da7d5c51472067b91b09bd239.tar.gz
Add smc37c935 chipset support and clean up the code which tries to
allocate a short port range in some alpha configurations. Submitted by: "Andrew M. Miklic" <miklic@udlkern.fc.hp.com>, Mark Abene <phiber@radicalmedia.com>
Diffstat (limited to 'sys/isa/ppcreg.h')
-rw-r--r--sys/isa/ppcreg.h31
1 files changed, 29 insertions, 2 deletions
diff --git a/sys/isa/ppcreg.h b/sys/isa/ppcreg.h
index ab0bf6f..2d2266a 100644
--- a/sys/isa/ppcreg.h
+++ b/sys/isa/ppcreg.h
@@ -43,6 +43,7 @@
#define WINB_W83877AF 8
#define WINB_UNKNOWN 9
#define NS_PC87334 10
+#define SMC_37C935 11
/*
* Parallel Port Chipset Type. SMC versus GENERIC (others)
@@ -100,8 +101,8 @@ struct ppc_data {
device_t ppbus; /* parallel port chipset corresponding ppbus */
- int rid_irq, rid_drq, rid_ioport, rid_extraio;
- struct resource *res_irq, *res_drq, *res_ioport, *res_extraio;
+ int rid_irq, rid_drq, rid_ioport;
+ struct resource *res_irq, *res_drq, *res_ioport;
void *intr_cookie;
@@ -206,6 +207,32 @@ struct ppc_data {
#define SMC_ECPEPP 0x3 /* ECP and EPP */
/*
+ * Register defines for the SMC FDC37C935 parts
+ */
+
+/* Configuration ports */
+#define SMC935_CFG 0x370
+#define SMC935_IND 0x370
+#define SMC935_DAT 0x371
+
+/* Registers */
+#define SMC935_LOGDEV 0x7
+#define SMC935_ID 0x20
+#define SMC935_PORTHI 0x60
+#define SMC935_PORTLO 0x61
+#define SMC935_PPMODE 0xf0
+
+/* Parallel port modes */
+#define SMC935_SPP 0x38 + 0
+#define SMC935_EPP19SPP 0x38 + 1
+#define SMC935_ECP 0x38 + 2
+#define SMC935_ECPEPP19 0x38 + 3
+#define SMC935_CENT 0x38 + 4
+#define SMC935_EPP17SPP 0x38 + 5
+#define SMC935_UNUSED 0x38 + 6
+#define SMC935_ECPEPP17 0x38 + 7
+
+/*
* Register defines for the Winbond W83877F parts
*/
OpenPOWER on IntegriCloud