summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/core/include/subdev
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2014-09-18 09:24:10 +1000
committerBen Skeggs <bskeggs@redhat.com>2014-12-02 15:43:39 +1000
commitad4a362635353f7ceb66f4038269770fee1025fa (patch)
tree335a449ab1ded347b84eaf33dcb66d6faf3bc73a /drivers/gpu/drm/nouveau/core/include/subdev
parente8972421623cd10a12cc7343da029b58777fdd2f (diff)
downloadop-kernel-dev-ad4a362635353f7ceb66f4038269770fee1025fa.zip
op-kernel-dev-ad4a362635353f7ceb66f4038269770fee1025fa.tar.gz
drm/nouveau/bios: split out shadow methods
We're about to need to be able to fetch additional chunks of data beyond the primary bios image, which makes fetching a lot more complicated. This splits out the verious shadowing routines to be nothing more than very dumb "fetch this much data from this offset" routines, and leaves the logic of what and how much to fetch in common code. Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core/include/subdev')
-rw-r--r--drivers/gpu/drm/nouveau/core/include/subdev/bios/image.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/core/include/subdev/bios/image.h b/drivers/gpu/drm/nouveau/core/include/subdev/bios/image.h
new file mode 100644
index 0000000..3348b45
--- /dev/null
+++ b/drivers/gpu/drm/nouveau/core/include/subdev/bios/image.h
@@ -0,0 +1,13 @@
+#ifndef __NVBIOS_IMAGE_H__
+#define __NVBIOS_IMAGE_H__
+
+struct nvbios_image {
+ u32 base;
+ u32 size;
+ u8 type;
+ bool last;
+};
+
+bool nvbios_image(struct nouveau_bios *, int, struct nvbios_image *);
+
+#endif
OpenPOWER on IntegriCloud