]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - drivers/gpu/drm/nouveau/core/include/subdev/bios.h
regulator: max8997: Convert max8997_safeout_ops to set_voltage_sel and list_voltage_table
[karo-tx-linux.git] / drivers / gpu / drm / nouveau / core / include / subdev / bios.h
1 #ifndef __NOUVEAU_BIOS_H__
2 #define __NOUVEAU_BIOS_H__
3
4 #include <core/subdev.h>
5 #include <core/device.h>
6
7 struct nouveau_bios {
8         struct nouveau_subdev base;
9         u32 size;
10         u8 *data;
11
12         u32 bmp_offset;
13         u32 bit_offset;
14
15         struct {
16                 u8 major;
17                 u8 chip;
18                 u8 minor;
19                 u8 micro;
20         } version;
21 };
22
23 static inline struct nouveau_bios *
24 nouveau_bios(void *obj)
25 {
26         return (void *)nv_device(obj)->subdev[NVDEV_SUBDEV_VBIOS];
27 }
28
29 u8  nvbios_checksum(const u8 *data, int size);
30 u16 nvbios_findstr(const u8 *data, int size, const char *str, int len);
31
32 extern struct nouveau_oclass nouveau_bios_oclass;
33
34 #endif