]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
ad4a3626 BS |
2 | #ifndef __NVKM_BIOS_PRIV_H__ |
3 | #define __NVKM_BIOS_PRIV_H__ | |
46484438 | 4 | #define nvkm_bios(p) container_of((p), struct nvkm_bios, subdev) |
ad4a3626 BS |
5 | #include <subdev/bios.h> |
6 | ||
7 | struct nvbios_source { | |
8 | const char *name; | |
d390b480 | 9 | void *(*init)(struct nvkm_bios *, const char *); |
ad4a3626 | 10 | void (*fini)(void *); |
d390b480 | 11 | u32 (*read)(void *, u32 offset, u32 length, struct nvkm_bios *); |
25d29588 | 12 | u32 (*size)(void *); |
ad4a3626 | 13 | bool rw; |
25d29588 IM |
14 | bool ignore_checksum; |
15 | bool no_pcir; | |
5dc7f4aa | 16 | bool require_checksum; |
ad4a3626 BS |
17 | }; |
18 | ||
d390b480 BS |
19 | int nvbios_extend(struct nvkm_bios *, u32 length); |
20 | int nvbios_shadow(struct nvkm_bios *); | |
ad4a3626 BS |
21 | |
22 | extern const struct nvbios_source nvbios_rom; | |
23 | extern const struct nvbios_source nvbios_ramin; | |
24 | extern const struct nvbios_source nvbios_acpi_fast; | |
25 | extern const struct nvbios_source nvbios_acpi_slow; | |
26 | extern const struct nvbios_source nvbios_pcirom; | |
27 | extern const struct nvbios_source nvbios_platform; | |
28 | extern const struct nvbios_source nvbios_of; | |
ad4a3626 | 29 | #endif |