Rev 54 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
54 | pj | 1 | /* |
2 | Linux Real Mode Interface - A library of DPMI-like functions for Linux. |
||
3 | |||
4 | Copyright (C) 1998 by Josh Vanderhoof |
||
5 | |||
6 | You are free to distribute and modify this file, as long as you |
||
7 | do not remove this copyright notice and clearly label modified |
||
8 | versions as being modified. |
||
9 | |||
10 | This software has NO WARRANTY. Use it at your own risk. |
||
11 | */ |
||
12 | |||
13 | #ifndef LRMI_H |
||
14 | #define LRMI_H |
||
15 | |||
80 | pj | 16 | #include "ll/sys/cdefs.h" |
17 | |||
18 | __BEGIN_DECLS |
||
19 | |||
54 | pj | 20 | struct LRMI_regs |
21 | { |
||
22 | unsigned int edi; |
||
23 | unsigned int esi; |
||
24 | unsigned int ebp; |
||
25 | unsigned int reserved; |
||
26 | unsigned int ebx; |
||
27 | unsigned int edx; |
||
28 | unsigned int ecx; |
||
29 | unsigned int eax; |
||
30 | unsigned short int flags; |
||
31 | unsigned short int es; |
||
32 | unsigned short int ds; |
||
33 | unsigned short int fs; |
||
34 | unsigned short int gs; |
||
35 | unsigned short int ip; |
||
36 | unsigned short int cs; |
||
37 | unsigned short int sp; |
||
38 | unsigned short int ss; |
||
39 | }; |
||
40 | |||
41 | |||
42 | #ifndef LRMI_PREFIX |
||
43 | #define LRMI_PREFIX __svgalib_LRMI_ |
||
44 | #endif |
||
45 | |||
46 | #define LRMI_CONCAT2(a, b) a ## b |
||
47 | #define LRMI_CONCAT(a, b) LRMI_CONCAT2(a, b) |
||
48 | #define LRMI_MAKENAME(a) LRMI_CONCAT(LRMI_PREFIX, a) |
||
49 | |||
50 | /* |
||
51 | Simulate a 16 bit interrupt |
||
52 | returns 1 if sucessful, 0 for failure |
||
53 | */ |
||
54 | #define LRMI_int LRMI_MAKENAME(int) |
||
55 | int |
||
56 | LRMI_int(int interrupt, struct LRMI_regs *r); |
||
57 | |||
80 | pj | 58 | __END_DECLS |
59 | |||
54 | pj | 60 | #endif |