Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
These changes are the raw update to linux-4.4.6-rt14. Kernel sources
[kvmfornfv.git]
/
kernel
/
drivers
/
gpu
/
drm
/
nouveau
/
include
/
nvkm
/
subdev
/
bios.h
diff --git
a/kernel/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h
b/kernel/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h
index
cef287e
..
e39a1fe
100644
(file)
--- a/
kernel/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h
+++ b/
kernel/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios.h
@@
-3,7
+3,7
@@
#include <core/subdev.h>
struct nvkm_bios {
#include <core/subdev.h>
struct nvkm_bios {
- struct nvkm_subdev
base
;
+ struct nvkm_subdev
subdev
;
u32 size;
u8 *data;
u32 size;
u8 *data;
@@
-19,14
+19,13
@@
struct nvkm_bios {
} version;
};
} version;
};
-static inline struct nvkm_bios *
-nvkm_bios(void *obj)
-{
- return (void *)nvkm_subdev(obj, NVDEV_SUBDEV_VBIOS);
-}
-
u8 nvbios_checksum(const u8 *data, int size);
u16 nvbios_findstr(const u8 *data, int size, const char *str, int len);
u8 nvbios_checksum(const u8 *data, int size);
u16 nvbios_findstr(const u8 *data, int size, const char *str, int len);
+int nvbios_memcmp(struct nvkm_bios *, u32 addr, const char *, u32 len);
+
+#define nvbios_rd08(b,o) (b)->data[(o)]
+#define nvbios_rd16(b,o) get_unaligned_le16(&(b)->data[(o)])
+#define nvbios_rd32(b,o) get_unaligned_le32(&(b)->data[(o)])
-
extern struct nvkm_oclass nvkm_bios_oclass
;
+
int nvkm_bios_new(struct nvkm_device *, int, struct nvkm_bios **)
;
#endif
#endif