diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-08-25 09:12:35 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-08-25 09:12:35 +0000 |
commit | c7fc24dc4420057f103afe8fc64524ebc25c5d37 (patch) | |
tree | 3682407a599b8f9f03fc096298134cafba1c9b2f /include/asm-arm/arch-rpc | |
parent | 1d793fade8b063fde3cf275bf1a5c2d381292cd9 (diff) |
o Merge with Linux 2.1.116.
o New Newport console code.
o New G364 console code.
Diffstat (limited to 'include/asm-arm/arch-rpc')
-rw-r--r-- | include/asm-arm/arch-rpc/hardware.h | 2 | ||||
-rw-r--r-- | include/asm-arm/arch-rpc/ide.h | 5 | ||||
-rw-r--r-- | include/asm-arm/arch-rpc/irqs.h | 8 | ||||
-rw-r--r-- | include/asm-arm/arch-rpc/keyboard.h | 4 | ||||
-rw-r--r-- | include/asm-arm/arch-rpc/processor.h | 7 | ||||
-rw-r--r-- | include/asm-arm/arch-rpc/serial.h | 2 |
6 files changed, 20 insertions, 8 deletions
diff --git a/include/asm-arm/arch-rpc/hardware.h b/include/asm-arm/arch-rpc/hardware.h index 75e112e98..706992b78 100644 --- a/include/asm-arm/arch-rpc/hardware.h +++ b/include/asm-arm/arch-rpc/hardware.h @@ -53,7 +53,7 @@ /* * Mapping areas */ -#define IO_END 0xe0ffffff +#define IO_END 0xe1000000 #define IO_BASE 0xe0000000 #define IO_SIZE (IO_END - IO_BASE) diff --git a/include/asm-arm/arch-rpc/ide.h b/include/asm-arm/arch-rpc/ide.h index 49463bae0..311a98853 100644 --- a/include/asm-arm/arch-rpc/ide.h +++ b/include/asm-arm/arch-rpc/ide.h @@ -3,12 +3,13 @@ * * Copyright (c) 1997 Russell King */ +#include <asm/irq.h> static __inline__ int ide_default_irq(ide_ioreg_t base) { if (base == 0x1f0) - return 9; + return IRQ_HARDDISK; return 0; } @@ -40,5 +41,5 @@ ide_init_hwif_ports (ide_ioreg_t *p, ide_ioreg_t base, int stepping, int *irq) } *p++ = ctrl; if (irq != NULL) - irq = 0; + *irq = 0; } diff --git a/include/asm-arm/arch-rpc/irqs.h b/include/asm-arm/arch-rpc/irqs.h index 9adbc9c61..1faaf758e 100644 --- a/include/asm-arm/arch-rpc/irqs.h +++ b/include/asm-arm/arch-rpc/irqs.h @@ -1,5 +1,5 @@ /* - * linux/include/asm-arm/arch-a5k/irqs.h + * linux/include/asm-arm/arch-rpc/irqs.h * * Copyright (C) 1996 Russell King */ @@ -13,9 +13,8 @@ #define IRQ_TIMER1 6 #define IRQ_IMMEDIATE 7 #define IRQ_EXPCARDFIQ 8 -#define IRQ_SOUNDCHANGE 9 +#define IRQ_HARDDISK 9 #define IRQ_SERIALPORT 10 -#define IRQ_HARDDISK 11 #define IRQ_FLOPPYDISK 12 #define IRQ_EXPANSIONCARD 13 #define IRQ_KEYBOARDTX 14 @@ -35,3 +34,6 @@ #define FIQ_FORCE 7 #define IRQ_TIMER IRQ_TIMER0 + +#define irq_cannonicalize(i) (i) + diff --git a/include/asm-arm/arch-rpc/keyboard.h b/include/asm-arm/arch-rpc/keyboard.h index 60d3f0b8c..44090e122 100644 --- a/include/asm-arm/arch-rpc/keyboard.h +++ b/include/asm-arm/arch-rpc/keyboard.h @@ -28,7 +28,11 @@ extern unsigned char ps2kbd_sysrq_xlate[NR_SCANCODES]; * Returns : 0 to ignore scancode, *keycode set to keycode, *up_flag * set to 0200 if scancode indicates release */ +#ifdef NEW_KEYBOARD #define kbd_translate(sc, kcp, ufp, rm) ps2kbd_translate(sc, kcp, ufp) +#else +#define kbd_translate(sc, kcp, rm) ({ unsigned int up_flag; ps2kbd_translate(sc, kcp, &up_flag); }) +#endif #define kbd_unexpected_up(kc) (0200) #define kbd_leds(leds) ps2kbd_leds(leds) #define kbd_init_hw() ps2kbd_init_hw() diff --git a/include/asm-arm/arch-rpc/processor.h b/include/asm-arm/arch-rpc/processor.h index 61ab21538..cdb79eeed 100644 --- a/include/asm-arm/arch-rpc/processor.h +++ b/include/asm-arm/arch-rpc/processor.h @@ -26,7 +26,12 @@ /* This decides where the kernel will search for a free chunk of vm * space during mmap's. */ -#define TASK_UNMAPPED_BASE (TASK_SIZE / 3) +#if 0 +#define TASK_UNMAPPED_BASE(off) (TASK_SIZE / 3) +#else +#define TASK_UNMAPPED_BASE (TASK_SIZE / 3) +#endif +#define TASK_UNMAPPED_ALIGN(addr, off) PAGE_ALIGN(addr) #define INIT_MMAP \ { &init_mm, 0, 0, PAGE_SHARED, VM_READ | VM_WRITE | VM_EXEC, NULL, &init_mm.mmap } diff --git a/include/asm-arm/arch-rpc/serial.h b/include/asm-arm/arch-rpc/serial.h index 2718276cb..8c33a7964 100644 --- a/include/asm-arm/arch-rpc/serial.h +++ b/include/asm-arm/arch-rpc/serial.h @@ -21,7 +21,7 @@ #define STD_COM_FLAGS (ASYNC_BOOT_AUTOCONF | ASYNC_SKIP_TEST) /* UART CLK PORT IRQ FLAGS */ -#define RS_UARTS \ +#define SERIAL_PORT_DFNS \ { 0, BASE_BAUD, 0x3F8, 10, STD_COM_FLAGS }, /* ttyS0 */ \ { 0, BASE_BAUD, 0x2F8, 10, STD_COM_FLAGS }, /* ttyS1 */ \ { 0, BASE_BAUD, 0 , 0, STD_COM_FLAGS }, /* ttyS2 */ \ |