linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/priv.h
<<
>>
Prefs
   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
   6struct 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};
  16
  17int nvbios_extend(struct nvkm_bios *, u32 length);
  18int nvbios_shadow(struct nvkm_bios *);
  19
  20extern const struct nvbios_source nvbios_rom;
  21extern const struct nvbios_source nvbios_ramin;
  22extern const struct nvbios_source nvbios_acpi_fast;
  23extern const struct nvbios_source nvbios_acpi_slow;
  24extern const struct nvbios_source nvbios_pcirom;
  25extern const struct nvbios_source nvbios_platform;
  26extern const struct nvbios_source nvbios_of;
  27#endif
  28