summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2014-03-19 21:03:04 +0000
committerimp <imp@FreeBSD.org>2014-03-19 21:03:04 +0000
commit9f008568e715443fd56809667a31f0c18a277647 (patch)
tree0b9cc94195d12f52ddbb00486c7474aeb9bc5c58 /sys/pc98
parent46282cbf0bf2ddf2c87a9988739d44d707ceab14 (diff)
downloadFreeBSD-src-9f008568e715443fd56809667a31f0c18a277647.zip
FreeBSD-src-9f008568e715443fd56809667a31f0c18a277647.tar.gz
Remove vestiges of knowing the ISA bus, which we gave up on around 20
years ago. Remove redunant copy of isaregs.h.
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/cbus.h45
-rw-r--r--sys/pc98/cbus/cbus_dma.c4
2 files changed, 4 insertions, 45 deletions
diff --git a/sys/pc98/cbus/cbus.h b/sys/pc98/cbus/cbus.h
index 4c48305..302245f 100644
--- a/sys/pc98/cbus/cbus.h
+++ b/sys/pc98/cbus/cbus.h
@@ -36,8 +36,6 @@
#ifndef _PC98_PC98_PC98_H_
#define _PC98_PC98_PC98_H_
-/* BEWARE: Included in both assembler and C code */
-
/*
* PC98 Bus conventions
* modified for PC9801 by A.Kojima F.Ukai M.Ishii
@@ -45,12 +43,8 @@
*/
/*
- * Input / Output Port Assignments
+ * Input / Output Port Assignments -- PC98 IO address ... very dirty (^_^;
*/
-#ifndef IO_ISABEGIN
-#define IO_ISABEGIN 0x000 /* 0x000 - Beginning of I/O Registers */
-
-/* PC98 IO address ... very dirty (^_^; */
#define IO_ICU1 0x000 /* 8259A Interrupt Controller #1 */
#define IO_ICU2 0x008 /* 8259A Interrupt Controller #2 */
@@ -60,45 +54,10 @@
#define IO_COM2 0x0B1 /* 8251A RS232C serial I/O (ext) */
#define IO_COM3 0x0B9 /* 8251A RS232C serial I/O (ext) */
#define IO_FDPORT 0x0BE /* FD I/F port (1M<->640K,EMTON) */
-#define IO_WD1_EPSON 0x80 /* 386note Hard disk controller */
-#define IO_ISAEND 0xFFFF /* - 0x3FF End of I/O Registers */
-#endif /* !IO_ISABEGIN */
/*
- * Input / Output Port Sizes - these are from several sources, and tend
- * to be the larger of what was found, ie COM ports can be 4, but some
- * boards do not fully decode the address, thus 8 ports are used.
+ * Input / Output Port Sizes
*/
-#ifndef IO_ISASIZES
-#define IO_ISASIZES
-
#define IO_KBDSIZE 16 /* 8042 Keyboard controllers */
-#define IO_LPTSIZE 8 /* LPT controllers, some use only 4 */
-#define IO_LPTSIZE_EXTENDED 8 /* "Extended" LPT controllers */
-#define IO_LPTSIZE_NORMAL 4 /* "Normal" LPT controllers */
-
-#endif /* !IO_ISASIZES */
-
-/*
- * Input / Output Memory Physical Addresses
- */
-#ifndef IOM_BEGIN
-#define IOM_BEGIN 0x0A0000 /* Start of I/O Memory "hole" */
-#define IOM_END 0x100000 /* End of I/O Memory "hole" */
-#define IOM_SIZE (IOM_END - IOM_BEGIN)
-#endif /* !IOM_BEGIN */
-
-/*
- * RAM Physical Address Space (ignoring the above mentioned "hole")
- */
-#ifndef RAM_BEGIN
-#define RAM_BEGIN 0x0000000 /* Start of RAM Memory */
-#ifdef EPSON_BOUNCEDMA
-#define RAM_END 0x0f00000 /* End of EPSON GR?? RAM Memory */
-#else
-#define RAM_END 0x1000000 /* End of RAM Memory */
-#endif
-#define RAM_SIZE (RAM_END - RAM_BEGIN)
-#endif /* !RAM_BEGIN */
#endif /* !_PC98_PC98_PC98_H_ */
diff --git a/sys/pc98/cbus/cbus_dma.c b/sys/pc98/cbus/cbus_dma.c
index 3d489e0..02d9d0c 100644
--- a/sys/pc98/cbus/cbus_dma.c
+++ b/sys/pc98/cbus/cbus_dma.c
@@ -336,9 +336,9 @@ isa_dmarangecheck(caddr_t va, u_int length, int chan)
for (; va < (caddr_t) endva ; va += PAGE_SIZE) {
phys = trunc_page(pmap_extract(kernel_pmap, (vm_offset_t)va));
#ifdef EPSON_BOUNCEDMA
-#define ISARAM_END 0xf00000
+#define ISARAM_END 0x0f00000
#else
-#define ISARAM_END RAM_END
+#define ISARAM_END 0x1000000
#endif
if (phys == 0)
panic("isa_dmacheck: no physical page present");
OpenPOWER on IntegriCloud