1 #ifndef __NOUVEAU_VGA_H__
2 #define __NOUVEAU_VGA_H__
3 #include <core/subdev.h>
5 /* access to various legacy io ports */
6 u8 nvkm_rdport(struct nvkm_device *, int head, u16 port);
7 void nvkm_wrport(struct nvkm_device *, int head, u16 port, u8 value);
10 u8 nvkm_rdvgas(struct nvkm_device *, int head, u8 index);
11 void nvkm_wrvgas(struct nvkm_device *, int head, u8 index, u8 value);
14 u8 nvkm_rdvgag(struct nvkm_device *, int head, u8 index);
15 void nvkm_wrvgag(struct nvkm_device *, int head, u8 index, u8 value);
18 u8 nvkm_rdvgac(struct nvkm_device *, int head, u8 index);
19 void nvkm_wrvgac(struct nvkm_device *, int head, u8 index, u8 value);
21 /* VGA indexed port access dispatcher */
22 u8 nvkm_rdvgai(struct nvkm_device *, int head, u16 port, u8 index);
23 void nvkm_wrvgai(struct nvkm_device *, int head, u16 port, u8 index, u8 value);
25 bool nvkm_lockvgac(struct nvkm_device *, bool lock);
26 u8 nvkm_rdvgaowner(struct nvkm_device *);
27 void nvkm_wrvgaowner(struct nvkm_device *, u8);