| 1 | #ifndef __NOUVEAU_VGA_H__ |
| 2 | #define __NOUVEAU_VGA_H__ |
| 3 | |
| 4 | #include <core/os.h> |
| 5 | |
| 6 | /* access to various legacy io ports */ |
| 7 | u8 nv_rdport(void *obj, int head, u16 port); |
| 8 | void nv_wrport(void *obj, int head, u16 port, u8 value); |
| 9 | |
| 10 | /* VGA Sequencer */ |
| 11 | u8 nv_rdvgas(void *obj, int head, u8 index); |
| 12 | void nv_wrvgas(void *obj, int head, u8 index, u8 value); |
| 13 | |
| 14 | /* VGA Graphics */ |
| 15 | u8 nv_rdvgag(void *obj, int head, u8 index); |
| 16 | void nv_wrvgag(void *obj, int head, u8 index, u8 value); |
| 17 | |
| 18 | /* VGA CRTC */ |
| 19 | u8 nv_rdvgac(void *obj, int head, u8 index); |
| 20 | void nv_wrvgac(void *obj, int head, u8 index, u8 value); |
| 21 | |
| 22 | /* VGA indexed port access dispatcher */ |
| 23 | u8 nv_rdvgai(void *obj, int head, u16 port, u8 index); |
| 24 | void nv_wrvgai(void *obj, int head, u16 port, u8 index, u8 value); |
| 25 | |
| 26 | bool nv_lockvgac(void *obj, bool lock); |
| 27 | u8 nv_rdvgaowner(void *obj); |
| 28 | void nv_wrvgaowner(void *obj, u8); |
| 29 | |
| 30 | #endif |
| 31 | |