• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 	bool require_checksum;
16 };
17 
18 int nvbios_extend(struct nvkm_bios *, u32 length);
19 int nvbios_shadow(struct nvkm_bios *);
20 
21 extern const struct nvbios_source nvbios_rom;
22 extern const struct nvbios_source nvbios_ramin;
23 extern const struct nvbios_source nvbios_acpi_fast;
24 extern const struct nvbios_source nvbios_acpi_slow;
25 extern const struct nvbios_source nvbios_pcirom;
26 extern const struct nvbios_source nvbios_platform;
27 extern const struct nvbios_source nvbios_of;
28 #endif
29