]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - drivers/gpu/drm/nouveau/nvkm/subdev/bios/priv.h
Merge branch 'ras-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git...
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / nvkm / subdev / bios / priv.h
1 #ifndef __NVKM_BIOS_PRIV_H__
2 #define __NVKM_BIOS_PRIV_H__
3 #define nvkm_bios(p) container_of((p), struct nvkm_bios, subdev)
4 #include <subdev/bios.h>
5
6 struct nvbios_source {
7         const char *name;
8         void *(*init)(struct nvkm_bios *, const char *);
9         void  (*fini)(void *);
10         u32   (*read)(void *, u32 offset, u32 length, struct nvkm_bios *);
11         u32   (*size)(void *);
12         bool rw;
13         bool ignore_checksum;
14         bool no_pcir;
15 };
16
17 int nvbios_extend(struct nvkm_bios *, u32 length);
18 int nvbios_shadow(struct nvkm_bios *);
19
20 extern const struct nvbios_source nvbios_rom;
21 extern const struct nvbios_source nvbios_ramin;
22 extern const struct nvbios_source nvbios_acpi_fast;
23 extern const struct nvbios_source nvbios_acpi_slow;
24 extern const struct nvbios_source nvbios_pcirom;
25 extern const struct nvbios_source nvbios_platform;
26 extern const struct nvbios_source nvbios_of;
27 #endif