]>
git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blob - drivers/staging/xgifb/vb_util.h
3 static inline void xgifb_reg_set(unsigned long port
, u8 index
, u8 data
)
9 static inline u8
xgifb_reg_get(unsigned long port
, u8 index
)
15 static inline void xgifb_reg_and_or(unsigned long port
, u8 index
,
16 unsigned int data_and
, unsigned int data_or
)
20 temp
= xgifb_reg_get(port
, index
);
21 temp
= (u8
)((temp
& data_and
) | data_or
);
22 xgifb_reg_set(port
, index
, temp
);
25 static inline void xgifb_reg_and(unsigned long port
, u8 index
,
26 unsigned int data_and
)
30 temp
= xgifb_reg_get(port
, index
);
31 temp
= (u8
)(temp
& data_and
);
32 xgifb_reg_set(port
, index
, temp
);
35 static inline void xgifb_reg_or(unsigned long port
, u8 index
,
40 temp
= xgifb_reg_get(port
, index
);
42 xgifb_reg_set(port
, index
, temp
);