Cleanup in elf.c with .bss section clean; adm command mounts cdrom instead of floppy...
[ZeXOS.git] / kernel / arch / arm / include / bd / intcp.h
blob1261c6b39a9c67b5455a533aa0a50c9de9679382
1 /*
2 * ZeX/OS
3 * Copyright (C) 2009 Tomas 'ZeXx86' Jedrzejek (zexx86@zexos.org)
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef ARM_BD_INTCP
21 #define ARM_BD_INTCP
23 #define ARM_INTCP_PL011_BASE0 0x16000000
24 #define ARM_INTCP_PL011_BASE1 0x17000000
25 #define ARM_INTCP_PL011_DR 0x0
26 #define ARM_INTCP_PL011_ECR 0x04
27 #define ARM_INTCP_PL011_FR 0x18
28 #define ARM_INTCP_PL011_RXFE 0x10
29 #define ARM_INTCP_PL011_TXFE 0x80
31 #define ARM_INTCP_PL110_BASE 0xc0000000
32 #define ARM_INTCP_PL110_CR_EN 0x001
33 #define ARM_INTCP_PL110_CR_16BPP 0xf9
34 #define ARM_INTCP_PL110_CR_BGR 0x100
35 #define ARM_INTCP_PL110_CR_BEBO 0x200
36 #define ARM_INTCP_PL110_CR_BEPO 0x400
37 #define ARM_INTCP_PL110_CR_PWR 0x800
39 #define ARM_INTCP_PL050_KB_BASE 0x18000000
40 #define ARM_INTCP_PL050_MO_BASE 0x19000000
41 #define ARM_INTCP_PL050_TXEMPTY (1 << 6)
42 #define ARM_INTCP_PL050_TXBUSY (1 << 5)
43 #define ARM_INTCP_PL050_RXFULL (1 << 4)
44 #define ARM_INTCP_PL050_RXBUSY (1 << 3)
45 #define ARM_INTCP_PL050_RXPARITY (1 << 2)
46 #define ARM_INTCP_PL050_KMIC (1 << 1)
47 #define ARM_INTCP_PL050_KMID (1 << 0)
49 /* externs */
50 extern unsigned vgafb_res_x, vgafb_res_y; /* resolution */
51 extern char *vgafb; /* frame buffer */
52 extern char *vgadb; /* double buffer */
53 extern unsigned char vgagui;
55 #endif