vga.h 1.0 KB

12345678910111213141516171819202122232425262728
  1. #ifndef __NOUVEAU_VGA_H__
  2. #define __NOUVEAU_VGA_H__
  3. #include <core/subdev.h>
  4. /* access to various legacy io ports */
  5. u8 nvkm_rdport(struct nvkm_device *, int head, u16 port);
  6. void nvkm_wrport(struct nvkm_device *, int head, u16 port, u8 value);
  7. /* VGA Sequencer */
  8. u8 nvkm_rdvgas(struct nvkm_device *, int head, u8 index);
  9. void nvkm_wrvgas(struct nvkm_device *, int head, u8 index, u8 value);
  10. /* VGA Graphics */
  11. u8 nvkm_rdvgag(struct nvkm_device *, int head, u8 index);
  12. void nvkm_wrvgag(struct nvkm_device *, int head, u8 index, u8 value);
  13. /* VGA CRTC */
  14. u8 nvkm_rdvgac(struct nvkm_device *, int head, u8 index);
  15. void nvkm_wrvgac(struct nvkm_device *, int head, u8 index, u8 value);
  16. /* VGA indexed port access dispatcher */
  17. u8 nvkm_rdvgai(struct nvkm_device *, int head, u16 port, u8 index);
  18. void nvkm_wrvgai(struct nvkm_device *, int head, u16 port, u8 index, u8 value);
  19. bool nvkm_lockvgac(struct nvkm_device *, bool lock);
  20. u8 nvkm_rdvgaowner(struct nvkm_device *);
  21. void nvkm_wrvgaowner(struct nvkm_device *, u8);
  22. #endif