1#ifndef __NVKM_BIOS_PRIV_H__ 2#define __NVKM_BIOS_PRIV_H__ 3#include <subdev/bios.h> 4 5struct 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 13int nvbios_extend(struct nvkm_bios *, u32 length); 14int nvbios_shadow(struct nvkm_bios *); 15 16extern const struct nvbios_source nvbios_rom; 17extern const struct nvbios_source nvbios_ramin; 18extern const struct nvbios_source nvbios_acpi_fast; 19extern const struct nvbios_source nvbios_acpi_slow; 20extern const struct nvbios_source nvbios_pcirom; 21extern const struct nvbios_source nvbios_platform; 22extern const struct nvbios_source nvbios_of; 23#endif 24