Initial commit
[xorg_rtime.git] / xorg-server-1.4 / hw / xfree86 / os-support / bsd / bsd_ev56.c
blobb2141192e5acd507a0b68c54db673e346834c76b
2 #ifdef HAVE_XORG_CONFIG_H
3 #include <xorg-config.h>
4 #endif
6 #include <X11/X.h>
7 #include "input.h"
8 #include "scrnintstr.h"
9 #include "compiler.h"
11 #include "xf86.h"
12 #include "xf86Priv.h"
13 #include "xf86_OSlib.h"
14 #include "xf86OSpriv.h"
16 int readDense8(pointer Base, register unsigned long Offset);
17 int readDense16(pointer Base, register unsigned long Offset);
18 int readDense32(pointer Base, register unsigned long Offset);
19 void
20 writeDenseNB8(int Value, pointer Base, register unsigned long Offset);
21 void
22 writeDenseNB16(int Value, pointer Base, register unsigned long Offset);
23 void
24 writeDenseNB32(int Value, pointer Base, register unsigned long Offset);
25 void
26 writeDense8(int Value, pointer Base, register unsigned long Offset);
27 void
28 writeDense16(int Value, pointer Base, register unsigned long Offset);
29 void
30 writeDense32(int Value, pointer Base, register unsigned long Offset);
32 int
33 readDense8(pointer Base, register unsigned long Offset)
35 mem_barrier();
36 return *(volatile CARD8*) ((unsigned long)Base+(Offset));
39 int
40 readDense16(pointer Base, register unsigned long Offset)
42 mem_barrier();
43 return *(volatile CARD16*) ((unsigned long)Base+(Offset));
46 int
47 readDense32(pointer Base, register unsigned long Offset)
49 mem_barrier();
50 return *(volatile CARD32*)((unsigned long)Base+(Offset));
53 void
54 writeDenseNB8(int Value, pointer Base, register unsigned long Offset)
56 *(volatile CARD8*)((unsigned long)Base+(Offset)) = Value;
59 void
60 writeDenseNB16(int Value, pointer Base, register unsigned long Offset)
62 *(volatile CARD16*)((unsigned long)Base + (Offset)) = Value;
65 void
66 writeDenseNB32(int Value, pointer Base, register unsigned long Offset)
68 *(volatile CARD32*)((unsigned long)Base+(Offset)) = Value;
71 void
72 writeDense8(int Value, pointer Base, register unsigned long Offset)
74 write_mem_barrier();
75 *(volatile CARD8 *)((unsigned long)Base+(Offset)) = Value;
78 void
79 writeDense16(int Value, pointer Base, register unsigned long Offset)
81 write_mem_barrier();
82 *(volatile CARD16 *)((unsigned long)Base+(Offset)) = Value;
85 void
86 writeDense32(int Value, pointer Base, register unsigned long Offset)
88 write_mem_barrier();
89 *(volatile CARD32 *)((unsigned long)Base+(Offset)) = Value;