7 #include <linux/types.h>
11 void xgifb_reg_set(unsigned long port
, u8 index
, u8 data
)
17 u8
xgifb_reg_get(unsigned long port
, u8 index
)
26 void xgifb_reg_and_or(unsigned long port
, u8 index
,
27 unsigned data_and
, unsigned data_or
)
31 temp
= xgifb_reg_get(port
, index
); /* XGINew_Part1Port index 02 */
32 temp
= (temp
& data_and
) | data_or
;
33 xgifb_reg_set(port
, index
, temp
);
36 void xgifb_reg_and(unsigned long port
, u8 index
, unsigned data_and
)
40 temp
= xgifb_reg_get(port
, index
); /* XGINew_Part1Port index 02 */
42 xgifb_reg_set(port
, index
, temp
);
45 void xgifb_reg_or(unsigned long port
, u8 index
, unsigned data_or
)
49 temp
= xgifb_reg_get(port
, index
); /* XGINew_Part1Port index 02 */
51 xgifb_reg_set(port
, index
, temp
);