summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@fs.tum.de>2004-06-17 17:58:17 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-06-17 17:58:17 -0700
commit808ef260e7d0f01862c6701243a3faf4e7dc39b4 (patch)
tree064499840a2c4cf5db42f79b257efb99fd25625a /include
parent5e018f7e60c98df93ff39246c3132dbc985aae8e (diff)
[PATCH] more PC9800 removal
Removes more PC9800 code. Requires: bk rm drivers/char/upd4990a.c bk rm drivers/net/ne2k_cbus.c bk rm drivers/net/ne2k_cbus.h Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-i386/ide.h34
-rw-r--r--include/asm-i386/processor.h6
-rw-r--r--include/asm-i386/serial.h7
-rw-r--r--include/asm-i386/timex.h4
-rw-r--r--include/linux/ide.h2
-rw-r--r--include/linux/serial_core.h8
-rw-r--r--include/linux/serio.h1
7 files changed, 1 insertions, 61 deletions
diff --git a/include/asm-i386/ide.h b/include/asm-i386/ide.h
index 0409c22f1c52..859ebf4da632 100644
--- a/include/asm-i386/ide.h
+++ b/include/asm-i386/ide.h
@@ -28,9 +28,6 @@
static __inline__ int ide_default_irq(unsigned long base)
{
switch (base) {
-#ifdef CONFIG_X86_PC9800
- case 0x640: return 9;
-#endif
case 0x1f0: return 14;
case 0x170: return 15;
case 0x1e8: return 11;
@@ -45,48 +42,17 @@ static __inline__ int ide_default_irq(unsigned long base)
static __inline__ unsigned long ide_default_io_base(int index)
{
switch (index) {
-#ifdef CONFIG_X86_PC9800
- case 0:
- case 1: return 0x640;
-#else
case 0: return 0x1f0;
case 1: return 0x170;
case 2: return 0x1e8;
case 3: return 0x168;
case 4: return 0x1e0;
case 5: return 0x160;
-#endif
default:
return 0;
}
}
-#ifdef CONFIG_X86_PC9800
-static __inline__ void ide_init_hwif_ports(hw_regs_t *hw, unsigned long data_port,
- unsigned long ctrl_port, int *irq)
-{
- unsigned long reg = data_port;
- int i;
-
- unsigned long increment = data_port == 0x640 ? 2 : 1;
-
- for (i = IDE_DATA_OFFSET; i <= IDE_STATUS_OFFSET; i++) {
- hw->io_ports[i] = reg;
- reg += increment;
- }
- if (ctrl_port) {
- hw->io_ports[IDE_CONTROL_OFFSET] = ctrl_port;
- } else if (data_port == 0x640) {
- hw->io_ports[IDE_CONTROL_OFFSET] = 0x74c;
- } else {
- hw->io_ports[IDE_CONTROL_OFFSET] = hw->io_ports[IDE_DATA_OFFSET] + 0x206;
- }
- if (irq != NULL)
- *irq = 0;
- hw->io_ports[IDE_IRQ_OFFSET] = 0;
-}
-#endif
-
#define IDE_ARCH_OBSOLETE_INIT
#define ide_default_io_ctl(base) ((base) + 0x206) /* obsolete */
diff --git a/include/asm-i386/processor.h b/include/asm-i386/processor.h
index 9d49ea237f30..3acab65fc8e8 100644
--- a/include/asm-i386/processor.h
+++ b/include/asm-i386/processor.h
@@ -259,14 +259,8 @@ static inline void clear_in_cr4 (unsigned long mask)
/*
* Bus types (default is ISA, but people can check others with these..)
- * pc98 indicates PC98 systems (CBUS)
*/
extern int MCA_bus;
-#ifdef CONFIG_X86_PC9800
-#define pc98 1
-#else
-#define pc98 0
-#endif
static inline void __monitor(const void *eax, unsigned long ecx,
unsigned long edx)
diff --git a/include/asm-i386/serial.h b/include/asm-i386/serial.h
index 9d67798a31e0..21ddecc77c77 100644
--- a/include/asm-i386/serial.h
+++ b/include/asm-i386/serial.h
@@ -47,19 +47,12 @@
#define C_P(card,port) (((card)<<6|(port)<<3) + 1)
-#ifndef CONFIG_X86_PC9800
#define STD_SERIAL_PORT_DEFNS \
/* UART CLK PORT IRQ FLAGS */ \
{ 0, BASE_BAUD, 0x3F8, 4, STD_COM_FLAGS }, /* ttyS0 */ \
{ 0, BASE_BAUD, 0x2F8, 3, STD_COM_FLAGS }, /* ttyS1 */ \
{ 0, BASE_BAUD, 0x3E8, 4, STD_COM_FLAGS }, /* ttyS2 */ \
{ 0, BASE_BAUD, 0x2E8, 3, STD_COM4_FLAGS }, /* ttyS3 */
-#else
-#define STD_SERIAL_PORT_DEFNS \
- /* UART CLK PORT IRQ FLAGS */ \
- { 0, BASE_BAUD, 0x30, 4, STD_COM_FLAGS }, /* ttyS0 */ \
- { 0, BASE_BAUD, 0x238, 5, STD_COM_FLAGS }, /* ttyS1 */
-#endif /* CONFIG_X86_PC9800 */
#ifdef CONFIG_SERIAL_MANY_PORTS
diff --git a/include/asm-i386/timex.h b/include/asm-i386/timex.h
index a447a9938615..e737729315f4 100644
--- a/include/asm-i386/timex.h
+++ b/include/asm-i386/timex.h
@@ -9,15 +9,11 @@
#include <linux/config.h>
#include <asm/msr.h>
-#ifdef CONFIG_X86_PC9800
- extern int CLOCK_TICK_RATE;
-#else
#ifdef CONFIG_X86_ELAN
# define CLOCK_TICK_RATE 1189200 /* AMD Elan has different frequency! */
#else
# define CLOCK_TICK_RATE 1193182 /* Underlying HZ */
#endif
-#endif
#define CLOCK_TICK_FACTOR 20 /* Factor of both 1000000 and CLOCK_TICK_RATE */
#define FINETUNE ((((((long)LATCH * HZ - CLOCK_TICK_RATE) << SHIFT_HZ) * \
diff --git a/include/linux/ide.h b/include/linux/ide.h
index ade3bb869431..5ae165606a7c 100644
--- a/include/linux/ide.h
+++ b/include/linux/ide.h
@@ -255,7 +255,7 @@ typedef enum { ide_unknown, ide_generic, ide_pci,
ide_pdc4030, ide_rz1000, ide_trm290,
ide_cmd646, ide_cy82c693, ide_4drives,
ide_pmac, ide_etrax100, ide_acorn,
- ide_pc9800, ide_forced
+ ide_forced
} hwif_chipset_t;
/*
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h
index 00c4b081ff42..f79c67d6f281 100644
--- a/include/linux/serial_core.h
+++ b/include/linux/serial_core.h
@@ -59,14 +59,6 @@
/* NEC v850. */
#define PORT_V850E_UART 40
-/* NEC PC-9800 */
-#define PORT_8251_PC98 41
-#define PORT_19K_PC98 42
-#define PORT_FIFO_PC98 43
-#define PORT_VFAST_PC98 44
-#define PORT_PC9861 45
-#define PORT_PC9801_101 46
-
/* DZ */
#define PORT_DZ 47
diff --git a/include/linux/serio.h b/include/linux/serio.h
index 28f62471af10..be0ccba864c6 100644
--- a/include/linux/serio.h
+++ b/include/linux/serio.h
@@ -105,7 +105,6 @@ static __inline__ void serio_cleanup(struct serio *serio)
#define SERIO_8042 0x01000000UL
#define SERIO_RS232 0x02000000UL
#define SERIO_HIL_MLC 0x03000000UL
-#define SERIO_PC9800 0x04000000UL
#define SERIO_PS_PSTHRU 0x05000000UL
#define SERIO_8042_XL 0x06000000UL