12 typedef signed char SBYTE; /* has to be 1 byte signed */
13 typedef unsigned char UBYTE; /* has to be 1 byte unsigned */
14 typedef short SWORD; /* has to be 2 bytes signed */
15 typedef unsigned short UWORD; /* has to be 2 bytes unsigned */
16 typedef long SLONG; /* has to be 4 bytes signed */
17 /* ULONG and BOOL are already defined in OS2.H */
19 #elif defined(__alpha)
21 typedef char SBYTE; /* has to be 1 byte signed */
22 typedef unsigned char UBYTE; /* has to be 1 byte unsigned */
23 typedef short SWORD; /* has to be 2 bytes signed */
24 typedef unsigned short UWORD; /* has to be 2 bytes unsigned */
25 /* long is 8 bytes on dec alpha - RCA */
26 typedef int SLONG; /* has to be 4 bytes signed */
27 typedef unsigned int ULONG; /* has to be 4 bytes unsigned */
28 typedef int BOOL; /* doesn't matter.. 0=FALSE, <>0 true */
32 typedef char SBYTE; /* has to be 1 byte signed */
33 typedef unsigned char UBYTE; /* has to be 1 byte unsigned */
34 //typedef short SWORD; /* has to be 2 bytes signed */
35 //typedef unsigned short UWORD; /* has to be 2 bytes unsigned */
36 typedef int SWORD; /* (used to) has to be 2 bytes signed */
37 typedef unsigned int UWORD; /* (used to) has to be 2 bytes unsigned */
38 typedef long SLONG; /* has to be 4 bytes signed */
39 typedef unsigned long ULONG; /* has to be 4 bytes unsigned */
40 typedef int BOOL; /* doesn't matter.. 0=FALSE, <>0 true */
56 #define inportb(x) inp(x)
57 #define outportb(x,y) outp(x,y)
58 #define inport(x) inpw(x)
59 #define outport(x,y) outpw(x,y)
60 #define disable() _disable()
61 #define enable() _enable()
70 #define outport outportw
71 #define inport inportw