445f6654dfe93d9a8c3e4639f2dfff714da7c804
[reactos.git] / reactos / boot / freeldr / freeldr / include / of.h
1 #ifndef FREELDR_OF_H
2 #define FREELDR_OF_H
3
4 #define OF_FAILED 0
5 #define ERR_NOT_FOUND 0xc0000010
6
7 #define REV(x) (((x)>>24)&0xff)|(((x)>>8)&0xff00)|(((x)<<24)&0xff000000)|(((x)<<8)&0xff0000)
8
9 typedef int (*of_proxy)
10 ( int table_off, void *arg1, void *arg2, void *arg3, void *arg4 );
11 typedef long jmp_buf[100];
12
13 extern of_proxy ofproxy;
14
15 int ofw_finddevice( const char *name );
16 int ofw_getprop( int package, const char *name, void *buffer, int size );
17 int ofw_open( const char *name );
18 int ofw_write( int handle, const char *buffer, int size );
19 int ofw_read( int handle, const char *buffer, int size );
20 void ofw_print_string(const char *);
21 void ofw_print_number(int);
22 void ofw_exit();
23
24 int setjmp( jmp_buf buf );
25 int longjmp( jmp_buf buf, int retval );
26
27 #endif/*FREELDR_OF_H*/