]> git.proxmox.com Git - mirror_ubuntu-kernels.git/blame - drivers/gpu/drm/nouveau/nvkm/subdev/bios/priv.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-kernels.git] / drivers / gpu / drm / nouveau / nvkm / subdev / bios / priv.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
ad4a3626
BS
2#ifndef __NVKM_BIOS_PRIV_H__
3#define __NVKM_BIOS_PRIV_H__
46484438 4#define nvkm_bios(p) container_of((p), struct nvkm_bios, subdev)
ad4a3626
BS
5#include <subdev/bios.h>
6
7struct nvbios_source {
8 const char *name;
d390b480 9 void *(*init)(struct nvkm_bios *, const char *);
ad4a3626 10 void (*fini)(void *);
d390b480 11 u32 (*read)(void *, u32 offset, u32 length, struct nvkm_bios *);
25d29588 12 u32 (*size)(void *);
ad4a3626 13 bool rw;
25d29588
IM
14 bool ignore_checksum;
15 bool no_pcir;
5dc7f4aa 16 bool require_checksum;
ad4a3626
BS
17};
18
d390b480
BS
19int nvbios_extend(struct nvkm_bios *, u32 length);
20int nvbios_shadow(struct nvkm_bios *);
ad4a3626
BS
21
22extern const struct nvbios_source nvbios_rom;
23extern const struct nvbios_source nvbios_ramin;
24extern const struct nvbios_source nvbios_acpi_fast;
25extern const struct nvbios_source nvbios_acpi_slow;
26extern const struct nvbios_source nvbios_pcirom;
27extern const struct nvbios_source nvbios_platform;
28extern const struct nvbios_source nvbios_of;
ad4a3626 29#endif