]>
Commit | Line | Data |
---|---|---|
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 |
7 | u8 nvkm_rdport(struct nvkm_device *, int head, u16 port); |
8 | void nvkm_wrport(struct nvkm_device *, int head, u16 port, u8 value); | |
4196faa8 BS |
9 | |
10 | /* VGA Sequencer */ | |
a8dae9fe BS |
11 | u8 nvkm_rdvgas(struct nvkm_device *, int head, u8 index); |
12 | void nvkm_wrvgas(struct nvkm_device *, int head, u8 index, u8 value); | |
4196faa8 BS |
13 | |
14 | /* VGA Graphics */ | |
a8dae9fe BS |
15 | u8 nvkm_rdvgag(struct nvkm_device *, int head, u8 index); |
16 | void nvkm_wrvgag(struct nvkm_device *, int head, u8 index, u8 value); | |
4196faa8 BS |
17 | |
18 | /* VGA CRTC */ | |
a8dae9fe BS |
19 | u8 nvkm_rdvgac(struct nvkm_device *, int head, u8 index); |
20 | void nvkm_wrvgac(struct nvkm_device *, int head, u8 index, u8 value); | |
4196faa8 BS |
21 | |
22 | /* VGA indexed port access dispatcher */ | |
a8dae9fe BS |
23 | u8 nvkm_rdvgai(struct nvkm_device *, int head, u16 port, u8 index); |
24 | void nvkm_wrvgai(struct nvkm_device *, int head, u16 port, u8 index, u8 value); | |
4196faa8 | 25 | |
a8dae9fe BS |
26 | bool nvkm_lockvgac(struct nvkm_device *, bool lock); |
27 | u8 nvkm_rdvgaowner(struct nvkm_device *); | |
28 | void nvkm_wrvgaowner(struct nvkm_device *, u8); | |
4196faa8 | 29 | #endif |