vga.h 1.1 KB

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NOUVEAU_VGA_H__
  3. #define __NOUVEAU_VGA_H__
  4. #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);
  8. /* VGA Sequencer */
  9. u8 nvkm_rdvgas(struct nvkm_device *, int head, u8 index);
  10. void nvkm_wrvgas(struct nvkm_device *, int head, u8 index, u8 value);
  11. /* VGA Graphics */
  12. u8 nvkm_rdvgag(struct nvkm_device *, int head, u8 index);
  13. void nvkm_wrvgag(struct nvkm_device *, int head, u8 index, u8 value);
  14. /* VGA CRTC */
  15. u8 nvkm_rdvgac(struct nvkm_device *, int head, u8 index);
  16. void nvkm_wrvgac(struct nvkm_device *, int head, u8 index, u8 value);
  17. /* VGA indexed port access dispatcher */
  18. u8 nvkm_rdvgai(struct nvkm_device *, int head, u16 port, u8 index);
  19. void nvkm_wrvgai(struct nvkm_device *, int head, u16 port, u8 index, u8 value);
  20. bool nvkm_lockvgac(struct nvkm_device *, bool lock);
  21. u8 nvkm_rdvgaowner(struct nvkm_device *);
  22. void nvkm_wrvgaowner(struct nvkm_device *, u8);
  23. #endif