]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - drivers/gpu/drm/nouveau/include/nvkm/subdev/vga.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-kernels.git] / drivers / gpu / drm / nouveau / include / nvkm / subdev / vga.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
4196faa8
BS
2#ifndef __NOUVEAU_VGA_H__
3#define __NOUVEAU_VGA_H__
9ace404b 4#include <core/subdev.h>
70790f4f 5
4196faa8 6/* access to various legacy io ports */
a8dae9fe
BS
7u8 nvkm_rdport(struct nvkm_device *, int head, u16 port);
8void nvkm_wrport(struct nvkm_device *, int head, u16 port, u8 value);
4196faa8
BS
9
10/* VGA Sequencer */
a8dae9fe
BS
11u8 nvkm_rdvgas(struct nvkm_device *, int head, u8 index);
12void nvkm_wrvgas(struct nvkm_device *, int head, u8 index, u8 value);
4196faa8
BS
13
14/* VGA Graphics */
a8dae9fe
BS
15u8 nvkm_rdvgag(struct nvkm_device *, int head, u8 index);
16void nvkm_wrvgag(struct nvkm_device *, int head, u8 index, u8 value);
4196faa8
BS
17
18/* VGA CRTC */
a8dae9fe
BS
19u8 nvkm_rdvgac(struct nvkm_device *, int head, u8 index);
20void nvkm_wrvgac(struct nvkm_device *, int head, u8 index, u8 value);
4196faa8
BS
21
22/* VGA indexed port access dispatcher */
a8dae9fe
BS
23u8 nvkm_rdvgai(struct nvkm_device *, int head, u16 port, u8 index);
24void nvkm_wrvgai(struct nvkm_device *, int head, u16 port, u8 index, u8 value);
4196faa8 25
a8dae9fe
BS
26bool nvkm_lockvgac(struct nvkm_device *, bool lock);
27u8 nvkm_rdvgaowner(struct nvkm_device *);
28void nvkm_wrvgaowner(struct nvkm_device *, u8);
4196faa8 29#endif