Kernel updates since December 2009

This commit is contained in:
Bahadir Balban
2010-03-25 01:12:40 +02:00
parent 16818191b3
commit 74b5963fcb
487 changed files with 22477 additions and 3857 deletions

View File

@@ -0,0 +1,28 @@
#ifndef __PLATFORM_IRQ_H__
#define __PLATFORM_IRQ_H__
/*
* Support for generic irq handling using platform irq controller (GIC)
*
* Copyright (C) 2007 Bahadir Balban
*/
/* TODO: Not sure about this, need to check */
#define IRQ_CHIPS_MAX 4
#define IRQS_MAX 96
/* IRQ indices. */
#define IRQ_UART0 44
#define IRQ_UART1 45
#define IRQ_UART2 46
#define IRQ_UART3 47
/* General Purpose Timers */
#define IRQ_TIMER0 36
#define IRQ_TIMER1 37
#define IRQ_TIMER2 73
#define IRQ_TIMER3 74
#endif /* __PLATFORM_IRQ_H__ */

View File

@@ -0,0 +1,41 @@
/*
* Describes physical memory layout of EB platform.
*
* This only include physical and memory offsets that
* are not included in realview/offsets.h
*
* Copyright (C) 2009 B Labs Ltd.
*/
#ifndef __PLATFORM_PBA8_OFFSETS_H__
#define __PLATFORM_PBA8_OFFSETS_H__
#include <l4/platform/realview/offsets.h>
/*
* These bases taken from where kernel is `physically' linked at,
* also used to calculate virtual-to-physical translation offset.
* See the linker script for their sources. PHYS_ADDR_BASE can't
* use a linker variable because it's referred from assembler.
*/
#define PHYS_ADDR_BASE 0x100000
/* Device offsets in physical memory */
#define PLATFORM_TIMER2_BASE 0x10018000 /* Timers 4 and 5 */
#define PLATFORM_TIMER3_BASE 0x10019000 /* Timers 6 and 7 */
#define PLATFORM_SYSCTRL1_BASE 0x1001A000 /* System controller1 */
#define PLATFORM_GIC1_BASE 0x1E000000 /* GIC 1 */
#define PLATFORM_GIC2_BASE 0x1E010000 /* GIC 2 */
#define PLATFORM_GIC3_BASE 0x1E020000 /* GIC 3 */
#define PLATFORM_GIC4_BASE 0x1E030000 /* GIC 4 */
/*
* Device offsets in virtual memory. They offset to some virtual
* device base address. Each page on this virtual base is consecutively
* allocated to devices. Nice and smooth.
* Make sure the offsets used here are not conflicting with the ones
* present in <l4/platform/realview/offset.h>
*/
#endif /* __PLATFORM_PBA8_OFFSETS_H__ */

View File

@@ -0,0 +1,16 @@
/*
* Platform specific ties between drivers and generic APIs used by the kernel.
* E.g. system timer and console.
*
* Copyright (C) 2009 B Labs Ltd.
*/
#ifndef __PBA8_PLATFORM_H__
#define __PBA8_PLATFORM_H__
#include <l4/drivers/irq/gic/gic.h>
#include <l4/platform/realview/platform.h>
void init_platform_irq_controller();
void init_platform_devices();
#endif /* __PBA8_PLATFORM_H__ */

View File

@@ -0,0 +1,6 @@
#ifndef __PBA8_UART_H__
#define __PBA8_UART_H__
#include <l4/platform/realview/uart.h>
#endif /* __PBA8_UART_H__ */