1 /*****************************************************************************\
2 * Tseng Labs ET6000, ET6100 and ET6300 graphics driver for BeOS 5.
3 * Copyright (c) 2003-2004, Evgeniy Vladimirovich Bobkov.
4 \*****************************************************************************/
10 /*****************************************************************************/
11 __inline
void et6000aclMasterInterruptEnable(void *base
) {
12 set8(&((volatile char *)base
)[0x34], 0x7f, 0x80);
14 /*****************************************************************************/
15 __inline
void et6000aclMasterInterruptDisable(void *base
) {
16 set8(&((volatile char *)base
)[0x34], 0x7f, 0x00);
18 /*****************************************************************************/
19 __inline
void et6000aclReadInterruptEnable(void *base
) {
20 set8(&((volatile char *)base
)[0x34], 0xfd, 0x02);
22 /*****************************************************************************/
23 __inline
void et6000aclReadInterruptDisable(void *base
) {
24 set8(&((volatile char *)base
)[0x34], 0xfd, 0x00);
26 /*****************************************************************************/
27 __inline
void et6000aclWriteInterruptEnable(void *base
) {
28 set8(&((volatile char *)base
)[0x34], 0xfe, 0x01);
30 /*****************************************************************************/
31 __inline
void et6000aclWriteInterruptDisable(void *base
) {
32 set8(&((volatile char *)base
)[0x34], 0xfe, 0x00);
34 /*****************************************************************************/
35 __inline
void et6000aclReadInterruptClear(void *base
) {
36 set8(&((volatile char *)base
)[0x35], 0xfd, 0x02);
38 /*****************************************************************************/
39 __inline
void et6000aclWriteInterruptClear(void *base
) {
40 set8(&((volatile char *)base
)[0x34], 0xfe, 0x00);
42 /*****************************************************************************/
43 __inline
char et6000aclInterruptCause(void *base
) {
44 return ((volatile char *)base
)[0x35] & 0x03;
46 /*****************************************************************************/