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