2 #ifdef HAVE_XORG_CONFIG_H
3 #include <xorg-config.h>
8 #include "scrnintstr.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
);
20 writeDenseNB8(int Value
, pointer Base
, register unsigned long Offset
);
22 writeDenseNB16(int Value
, pointer Base
, register unsigned long Offset
);
24 writeDenseNB32(int Value
, pointer Base
, register unsigned long Offset
);
26 writeDense8(int Value
, pointer Base
, register unsigned long Offset
);
28 writeDense16(int Value
, pointer Base
, register unsigned long Offset
);
30 writeDense32(int Value
, pointer Base
, register unsigned long Offset
);
33 readDense8(pointer Base
, register unsigned long Offset
)
36 return *(volatile CARD8
*) ((unsigned long)Base
+(Offset
));
40 readDense16(pointer Base
, register unsigned long Offset
)
43 return *(volatile CARD16
*) ((unsigned long)Base
+(Offset
));
47 readDense32(pointer Base
, register unsigned long Offset
)
50 return *(volatile CARD32
*)((unsigned long)Base
+(Offset
));
54 writeDenseNB8(int Value
, pointer Base
, register unsigned long Offset
)
56 *(volatile CARD8
*)((unsigned long)Base
+(Offset
)) = Value
;
60 writeDenseNB16(int Value
, pointer Base
, register unsigned long Offset
)
62 *(volatile CARD16
*)((unsigned long)Base
+ (Offset
)) = Value
;
66 writeDenseNB32(int Value
, pointer Base
, register unsigned long Offset
)
68 *(volatile CARD32
*)((unsigned long)Base
+(Offset
)) = Value
;
72 writeDense8(int Value
, pointer Base
, register unsigned long Offset
)
75 *(volatile CARD8
*)((unsigned long)Base
+(Offset
)) = Value
;
79 writeDense16(int Value
, pointer Base
, register unsigned long Offset
)
82 *(volatile CARD16
*)((unsigned long)Base
+(Offset
)) = Value
;
86 writeDense32(int Value
, pointer Base
, register unsigned long Offset
)
89 *(volatile CARD32
*)((unsigned long)Base
+(Offset
)) = Value
;