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

Subversion Repositories c0or1k

[/] [c0or1k/] [trunk/] [include/] [l4/] [generic/] [platform.h] - Rev 2

Compare with Previous | Blame | View Log

#ifndef __PLATFORM_H__
#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);
 
/* 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__ */
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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