1 #ifndef __NVKM_BIOS_PRIV_H__ 2 #define __NVKM_BIOS_PRIV_H__ 3 #include <subdev/bios.h> 4 5 struct nvbios_source { 6 const char *name; 7 void *(*init)(struct nvkm_bios *, const char *); 8 void (*fini)(void *); 9 u32 (*read)(void *, u32 offset, u32 length, struct nvkm_bios *); 10 bool rw; 11 }; 12 13 int nvbios_extend(struct nvkm_bios *, u32 length); 14 int nvbios_shadow(struct nvkm_bios *); 15 16 extern const struct nvbios_source nvbios_rom; 17 extern const struct nvbios_source nvbios_ramin; 18 extern const struct nvbios_source nvbios_acpi_fast; 19 extern const struct nvbios_source nvbios_acpi_slow; 20 extern const struct nvbios_source nvbios_pcirom; 21 extern const struct nvbios_source nvbios_platform; 22 extern const struct nvbios_source nvbios_of; 23 #endif 24