summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/include
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2016-12-14 09:02:41 +0100
committerBen Skeggs <bskeggs@redhat.com>2017-02-17 06:14:31 +0100
commit555cafb40445861c121422b157c74fe2de793e68 (patch)
treec9e3fda2bbaf3bde73ce0b53aeff2e73966bd985 /drivers/gpu/drm/nouveau/include
parentdrm/nouveau/secboot: add LS flags to LS func structure (diff)
downloadlinux-555cafb40445861c121422b157c74fe2de793e68.tar.xz
linux-555cafb40445861c121422b157c74fe2de793e68.zip
drm/nouveau/secboot: split reset function
Split the reset function into more meaningful and reusable ones. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/include')
-rw-r--r--drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h b/drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
index 6e9e0450220c..5dbd8aa4f8c2 100644
--- a/drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
+++ b/drivers/gpu/drm/nouveau/include/nvkm/subdev/secboot.h
@@ -34,6 +34,9 @@ enum nvkm_secboot_falcon {
NVKM_SECBOOT_FALCON_INVALID = 0xffffffff,
};
+/**
+ * @wpr_set: whether the WPR region is currently set
+*/
struct nvkm_secboot {
const struct nvkm_secboot_func *func;
struct nvkm_acr *acr;
@@ -42,6 +45,8 @@ struct nvkm_secboot {
u64 wpr_addr;
u32 wpr_size;
+
+ bool wpr_set;
};
#define nvkm_secboot(p) container_of((p), struct nvkm_secboot, subdev)