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 bool rw; 12 }; 13 14 int nvbios_extend(struct nvkm_bios *, u32 length); 15 int nvbios_shadow(struct nvkm_bios *); 16 17 extern const struct nvbios_source nvbios_rom; 18 extern const struct nvbios_source nvbios_ramin; 19 extern const struct nvbios_source nvbios_acpi_fast; 20 extern const struct nvbios_source nvbios_acpi_slow; 21 extern const struct nvbios_source nvbios_pcirom; 22 extern const struct nvbios_source nvbios_platform; 23 extern const struct nvbios_source nvbios_of; 24 #endif 25