[1] | 1 | /* |
---|
| 2 | * hardware.h - architecture specific macros |
---|
| 3 | * |
---|
| 4 | * Copyright (c) 2008,2009,2010,2011,2012 Ghassan Almaless |
---|
| 5 | * Copyright (c) 2011,2012 UPMC Sorbonne Universites |
---|
| 6 | * |
---|
| 7 | * This file is part of ALMOS-kernel. |
---|
| 8 | * |
---|
| 9 | * ALMOS-kernel is free software; you can redistribute it and/or modify it |
---|
| 10 | * under the terms of the GNU General Public License as published by |
---|
| 11 | * the Free Software Foundation; version 2.0 of the License. |
---|
| 12 | * |
---|
| 13 | * ALMOS-kernel is distributed in the hope that it will be useful, but |
---|
| 14 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
| 16 | * General Public License for more details. |
---|
| 17 | * |
---|
| 18 | * You should have received a copy of the GNU General Public License |
---|
| 19 | * along with ALMOS-kernel; if not, write to the Free Software Foundation, |
---|
| 20 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
| 21 | */ |
---|
| 22 | |
---|
| 23 | #ifndef _HARDWARE_H_ |
---|
| 24 | #define _HARDWARE_H_ |
---|
| 25 | |
---|
| 26 | #include <config.h> |
---|
| 27 | #include <segmentation.h> |
---|
| 28 | #include <types.h> |
---|
| 29 | #include <system.h> |
---|
| 30 | #include <screen.h> |
---|
| 31 | /* Addresses of the peripheral devices */ |
---|
| 32 | #define __pic_addr ((uint_t*)PIC_BASE) |
---|
| 33 | #define __tty_addr ((uint_t*)TTY_BASE) |
---|
| 34 | #define __fb_addr ((uint_t*)FB_BASE) |
---|
| 35 | #define __timer_addr ((uint_t*)TIMER_BASE) |
---|
| 36 | #define __dma_addr ((uint_t*)DMA_BASE) |
---|
| 37 | #define __blk_addr ((uint_t*)BD_BASE) |
---|
| 38 | |
---|
| 39 | #define IO_CLUSTER_ID CONFIG_IO_CLUSTER_ID |
---|
| 40 | |
---|
| 41 | /* Terminals related macros */ |
---|
| 42 | #define TTY_DEV_NR CONFIG_TTY_DEV_NR |
---|
| 43 | #define SYS_TTY 0 |
---|
| 44 | #define TTY_BUFFER_DEPTH 40 |
---|
| 45 | |
---|
| 46 | /* Timer parameters macros */ |
---|
| 47 | #define TIMER_DEV_NR CONFIG_TIMER_DEV_NR |
---|
| 48 | |
---|
| 49 | #endif /* _HARDWARE_H_ */ |
---|