mirror of
https://github.com/drasko/codezero.git
synced 2026-02-01 20:53:16 +01:00
Kernel updates since December 2009
This commit is contained in:
@@ -2,21 +2,32 @@
|
||||
#define __PLATFORM_H__
|
||||
/*
|
||||
* Generic functions to be provided by every platform.
|
||||
*
|
||||
* Include only those API's that are needed by sources
|
||||
* outside the src/platform code.
|
||||
*/
|
||||
|
||||
#include <l4/generic/resource.h>
|
||||
|
||||
void platform_init(void);
|
||||
|
||||
/* Uart APIs */
|
||||
void uart_init(void);
|
||||
void uart_putc(char c);
|
||||
|
||||
/* Timer APIs */
|
||||
void timer_init(void);
|
||||
void timer_start(void);
|
||||
|
||||
/* IRQ controller */
|
||||
void irq_controller_init(void);
|
||||
void platform_irq_enable(int irq);
|
||||
void platform_irq_disable(int irq);
|
||||
|
||||
#define dprintk(str, val) \
|
||||
{ \
|
||||
print_early(str); \
|
||||
printhex8((val)); \
|
||||
print_early("\n"); \
|
||||
}
|
||||
|
||||
void print_early(char *str);
|
||||
void printhex8(unsigned int);
|
||||
|
||||
int platform_setup_device_caps(struct kernel_resources *kres);
|
||||
|
||||
void platform_test_cpucycles(void);
|
||||
|
||||
#endif /* __PLATFORM_H__ */
|
||||
|
||||
Reference in New Issue
Block a user