OpenCores
URL https://opencores.org/ocsvn/c0or1k/c0or1k/trunk

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [generic/] [platform.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 drasko
#ifndef __PLATFORM_H__
2
#define __PLATFORM_H__
3
/*
4
 * Generic functions to be provided by every platform.
5
 *
6
 * Include only those API's that are needed by sources
7
 * outside the src/platform code.
8
 */
9
 
10
#include <l4/generic/resource.h>
11
 
12
void platform_init(void);
13
 
14
/* IRQ controller */
15
void irq_controller_init(void);
16
void platform_irq_enable(int irq);
17
void platform_irq_disable(int irq);
18
 
19
#define dprintk(str, val)               \
20
{                                       \
21
        print_early(str);               \
22
        printhex8((val));               \
23
        print_early("\n");              \
24
}
25
 
26
void print_early(char *str);
27
void printhex8(unsigned int);
28
 
29
int platform_setup_device_caps(struct kernel_resources *kres);
30
 
31
void platform_test_cpucycles(void);
32
 
33
#endif /* __PLATFORM_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.