1 /* SPDX-License-Identifier: MIT */
2 #ifndef __NVKM_BIOS_H__
3 #define __NVKM_BIOS_H__
4 #include <core/subdev.h>
7 struct nvkm_subdev subdev
;
26 u8
nvbios_checksum(const u8
*data
, int size
);
27 u16
nvbios_findstr(const u8
*data
, int size
, const char *str
, int len
);
28 int nvbios_memcmp(struct nvkm_bios
*, u32 addr
, const char *, u32 len
);
29 u8
nvbios_rd08(struct nvkm_bios
*, u32 addr
);
30 u16
nvbios_rd16(struct nvkm_bios
*, u32 addr
);
31 u32
nvbios_rd32(struct nvkm_bios
*, u32 addr
);
33 int nvkm_bios_new(struct nvkm_device
*, int, struct nvkm_bios
**);