[MIPS] Add GT641xx IRQ routines.
[deliverable/linux.git] / include / asm-mips / mach-cobalt / cobalt.h
1 /*
2 * Lowlevel hardware stuff for the MIPS based Cobalt microservers.
3 *
4 * This file is subject to the terms and conditions of the GNU General Public
5 * License. See the file "COPYING" in the main directory of this archive
6 * for more details.
7 *
8 * Copyright (C) 1997 Cobalt Microserver
9 * Copyright (C) 1997, 2003 Ralf Baechle
10 * Copyright (C) 2001, 2002, 2003 Liam Davies (ldavies@agile.tv)
11 */
12 #ifndef __ASM_COBALT_H
13 #define __ASM_COBALT_H
14
15 /*
16 * PCI configuration space manifest constants. These are wired into
17 * the board layout according to the PCI spec to enable the software
18 * to probe the hardware configuration space in a well defined manner.
19 *
20 * The PCI_DEVSHFT() macro transforms these values into numbers
21 * suitable for passing as the dev parameter to the various
22 * pcibios_read/write_config routines.
23 */
24 #define COBALT_PCICONF_CPU 0x06
25 #define COBALT_PCICONF_ETH0 0x07
26 #define COBALT_PCICONF_RAQSCSI 0x08
27 #define COBALT_PCICONF_VIA 0x09
28 #define COBALT_PCICONF_PCISLOT 0x0A
29 #define COBALT_PCICONF_ETH1 0x0C
30
31
32 /*
33 * The Cobalt board id information. The boards have an ID number wired
34 * into the VIA that is available in the high nibble of register 94.
35 * This register is available in the VIA configuration space through the
36 * interface routines qube_pcibios_read/write_config. See cobalt/pci.c
37 */
38 #define VIA_COBALT_BRD_ID_REG 0x94
39 #define VIA_COBALT_BRD_REG_to_ID(reg) ((unsigned char) (reg) >> 4)
40 #define COBALT_BRD_ID_QUBE1 0x3
41 #define COBALT_BRD_ID_RAQ1 0x4
42 #define COBALT_BRD_ID_QUBE2 0x5
43 #define COBALT_BRD_ID_RAQ2 0x6
44
45 extern int cobalt_board_id;
46
47 #define COBALT_LED_PORT (*(volatile unsigned char *) CKSEG1ADDR(0x1c000000))
48 # define COBALT_LED_BAR_LEFT (1 << 0) /* Qube */
49 # define COBALT_LED_BAR_RIGHT (1 << 1) /* Qube */
50 # define COBALT_LED_WEB (1 << 2) /* RaQ */
51 # define COBALT_LED_POWER_OFF (1 << 3) /* RaQ */
52 # define COBALT_LED_RESET 0x0f
53
54 #define COBALT_KEY_PORT ((~*(volatile unsigned int *) CKSEG1ADDR(0x1d000000) >> 24) & COBALT_KEY_MASK)
55 # define COBALT_KEY_CLEAR (1 << 1)
56 # define COBALT_KEY_LEFT (1 << 2)
57 # define COBALT_KEY_UP (1 << 3)
58 # define COBALT_KEY_DOWN (1 << 4)
59 # define COBALT_KEY_RIGHT (1 << 5)
60 # define COBALT_KEY_ENTER (1 << 6)
61 # define COBALT_KEY_SELECT (1 << 7)
62 # define COBALT_KEY_MASK 0xfe
63
64 #define COBALT_UART ((volatile unsigned char *) CKSEG1ADDR(0x1c800000))
65
66 #endif /* __ASM_COBALT_H */
This page took 0.033296 seconds and 5 git commands to generate.