The namespace of NVKM is being changed to nvkm_ instead of nouveau_, which will be used for the DRM part of the driver. This is being done in order to make it very clear as to what part of the driver a given symbol belongs to, and as a minor step towards splitting the DRM driver out to be able to stand on its own (for virt). Because there's already a large amount of churn here anyway, this is as good a time as any to also switch to NVIDIA's device and chipset naming to ease collaboration with them. A comparison of objdump disassemblies proves no code changes. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
23 lines
723 B
C
23 lines
723 B
C
#ifndef __NVKM_BIOS_PRIV_H__
|
|
#define __NVKM_BIOS_PRIV_H__
|
|
#include <subdev/bios.h>
|
|
|
|
struct nvbios_source {
|
|
const char *name;
|
|
void *(*init)(struct nvkm_bios *, const char *);
|
|
void (*fini)(void *);
|
|
u32 (*read)(void *, u32 offset, u32 length, struct nvkm_bios *);
|
|
bool rw;
|
|
};
|
|
|
|
int nvbios_extend(struct nvkm_bios *, u32 length);
|
|
int nvbios_shadow(struct nvkm_bios *);
|
|
|
|
extern const struct nvbios_source nvbios_rom;
|
|
extern const struct nvbios_source nvbios_ramin;
|
|
extern const struct nvbios_source nvbios_acpi_fast;
|
|
extern const struct nvbios_source nvbios_acpi_slow;
|
|
extern const struct nvbios_source nvbios_pcirom;
|
|
extern const struct nvbios_source nvbios_platform;
|
|
extern const struct nvbios_source nvbios_of;
|
|
#endif
|