1 #ifndef __NVKM_BIOS_H__
2 #define __NVKM_BIOS_H__
3 #include <core/subdev.h>
6 struct nvkm_subdev subdev
;
22 u8
nvbios_checksum(const u8
*data
, int size
);
23 u16
nvbios_findstr(const u8
*data
, int size
, const char *str
, int len
);
24 int nvbios_memcmp(struct nvkm_bios
*, u32 addr
, const char *, u32 len
);
26 #define nvbios_rd08(b,o) (b)->data[(o)]
27 #define nvbios_rd16(b,o) get_unaligned_le16(&(b)->data[(o)])
28 #define nvbios_rd32(b,o) get_unaligned_le32(&(b)->data[(o)])
30 int nvkm_bios_new(struct nvkm_device
*, int, struct nvkm_bios
**);