Subversion Repositories shark

Rev

Details | 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
 
16
struct LRMI_regs
17
        {
18
        unsigned int edi;
19
        unsigned int esi;
20
        unsigned int ebp;
21
        unsigned int reserved;
22
        unsigned int ebx;
23
        unsigned int edx;
24
        unsigned int ecx;
25
        unsigned int eax;
26
        unsigned short int flags;
27
        unsigned short int es;
28
        unsigned short int ds;
29
        unsigned short int fs;
30
        unsigned short int gs;
31
        unsigned short int ip;
32
        unsigned short int cs;
33
        unsigned short int sp;
34
        unsigned short int ss;
35
        };
36
 
37
 
38
#ifndef LRMI_PREFIX
39
#define LRMI_PREFIX __svgalib_LRMI_
40
#endif
41
 
42
#define LRMI_CONCAT2(a, b)      a ## b
43
#define LRMI_CONCAT(a, b)       LRMI_CONCAT2(a, b)
44
#define LRMI_MAKENAME(a)        LRMI_CONCAT(LRMI_PREFIX, a)
45
 
46
/*
47
 Simulate a 16 bit interrupt
48
 returns 1 if sucessful, 0 for failure
49
*/
50
#define LRMI_int LRMI_MAKENAME(int)
51
int
52
LRMI_int(int interrupt, struct LRMI_regs *r);
53
 
54
#endif