Mercurial > hg > Members > anatofuz > CbC_xv6
comparison src/device/versatile_pb.h @ 0:83c23a36980d
Init
author | Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 26 May 2017 23:11:05 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:83c23a36980d |
---|---|
1 // | |
2 // Board specific information for the VersatilePB board | |
3 // | |
4 #ifndef VERSATILEPB | |
5 #define VERSATILEPB | |
6 | |
7 | |
8 // the VerstatilePB board can support up to 256MB memory. | |
9 // but we assume it has 128MB instead. During boot, the lower | |
10 // 64MB memory is mapped to the flash, needs to be remapped | |
11 // the the SDRAM. We skip this for QEMU | |
12 #define PHYSTOP 0x08000000 | |
13 #define BSP_MEMREMAP 0x04000000 | |
14 | |
15 #define DEVBASE 0x10000000 | |
16 #define DEV_MEM_SZ 0x08000000 | |
17 #define VEC_TBL 0xFFFF0000 | |
18 | |
19 | |
20 #define STACK_FILL 0xdeadbeef | |
21 | |
22 #define UART0 0x101f1000 | |
23 #define UART_CLK 24000000 // Clock rate for UART | |
24 | |
25 #define TIMER0 0x101E2000 | |
26 #define TIMER1 0x101E2020 | |
27 #define CLK_HZ 1000000 // the clock is 1MHZ | |
28 | |
29 #define VIC_BASE 0x10140000 | |
30 #define PIC_TIMER01 4 | |
31 #define PIC_TIMER23 5 | |
32 #define PIC_UART0 12 | |
33 #define PIC_GRAPHIC 19 | |
34 | |
35 #endif |