2 #include <linux/types.h>
12 void xgifb_reg_set(unsigned long port
, u8 index
, u8 data
)
18 u8
xgifb_reg_get(unsigned long port
, u8 index
)
27 void xgifb_reg_and_or(unsigned long port
, u8 index
,
28 unsigned data_and
, unsigned data_or
)
32 temp
= xgifb_reg_get(port
, index
); /* XGINew_Part1Port index 02 */
33 temp
= (temp
& data_and
) | data_or
;
34 xgifb_reg_set(port
, index
, temp
);
37 void xgifb_reg_and(unsigned long port
, u8 index
, unsigned data_and
)
41 temp
= xgifb_reg_get(port
, index
); /* XGINew_Part1Port index 02 */
43 xgifb_reg_set(port
, index
, temp
);
46 void xgifb_reg_or(unsigned long port
, u8 index
, unsigned data_or
)
50 temp
= xgifb_reg_get(port
, index
); /* XGINew_Part1Port index 02 */
52 xgifb_reg_set(port
, index
, temp
);