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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [ecos-2.0/] [packages/] [compat/] [linux/] [v2_0/] [include/] [linux/] [kernel.h] - Blame information for rev 174

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 27 unneback
#ifndef __LINUX_KERNEL_H__
2
#define __LINUX_KERNEL_H__
3
#include <cyg/infra/diag.h>
4
 
5
#define jiffies 100
6
 
7
#define ERR_PTR(err) (void*)(err)
8
#define PTR_ERR(err) (cyg_int32)(err)
9
#define IS_ERR(err) (err==NULL)
10
 
11
#define CURRENT_TIME cyg_timestamp()
12
 
13
#define KERN_EMERG              "<0>" // system is unusable
14
#define KERN_ALERT              "<1>" // action must be taken immediately
15
#define KERN_CRIT               "<2>" // critical conditions
16
#define KERN_ERR                "<3>" // error conditions
17
#define KERN_WARNING            "<4>" // warning conditions
18
#define KERN_NOTICE             "<5>" // normal but significant condition
19
#define KERN_INFO               "<6>" // informational
20
#define KERN_DEBUG              "<7>" // debug-level messages
21
#define printk diag_printf
22
 
23
#define min(x,y) (x<y?x:y)
24
#define max(x,y) (x<y?y:x)
25
#define min_t(t, x,y) ((t)x<(t)y?(t)x:(t)y)
26
 
27
 
28
#endif /* __LINUX_KERNEL_H__ */

powered by: WebSVN 2.1.0

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