summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexandre Courbot <acourbot@nvidia.com>2016-02-24 14:42:23 +0900
committerBen Skeggs <bskeggs@redhat.com>2016-03-14 09:53:01 +1000
commit0cbe1e1f8227052c56625f257c564bf87f6b5c5a (patch)
treedf3f9bfbf8bd2d516948bf10fee1dc9e9cdad1f3 /lib
parent93aa09cf1509f7cff94d59089c76bbb0d0006f69 (diff)
downloadnouveau-0cbe1e1f8227052c56625f257c564bf87f6b5c5a.tar.gz
secboot/gm200: add secure-boot support
Add secure-boot for the dGPU set of GM20X chips, using the PMU as the high-secure falcon. This work is based on Deepak Goyal's initial port of Secure Boot to Nouveau. v2. use proper memory target function Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/include/nvif/os.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/include/nvif/os.h b/lib/include/nvif/os.h
index fbde224ba..071d8d91d 100644
--- a/lib/include/nvif/os.h
+++ b/lib/include/nvif/os.h
@@ -64,6 +64,7 @@ typedef dma_addr_t resource_size_t;
*****************************************************************************/
#define noinline __attribute__ ((noinline))
#define __packed __attribute__ ((packed))
+#define __aligned(a) __attribute__((aligned(a)))
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) > (b) ? (b) : (a))
#define max_t(t,a,b) max((t)(a), (t)(b))
@@ -90,6 +91,7 @@ typedef dma_addr_t resource_size_t;
#define likely(a) (a)
#define unlikely(a) (a)
#define BIT(a) (1UL << (a))
+#define ALIGN(a,b) (((a) + ((b) - 1)) & ~((b) - 1))
#define ERR_PTR(err) ((void *)(long)(err))
#define PTR_ERR(ptr) ((long)(ptr))
@@ -1232,6 +1234,8 @@ release_firmware(const struct firmware *fw)
free((void *)fw);
}
+#define MODULE_FIRMWARE(a)
+
/******************************************************************************
* workqueues
*****************************************************************************/