projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47c8f8e
)
drm/nouveau/core: add representation of generic binary objects
author
Ben Skeggs
<bskeggs@redhat.com>
Tue, 14 Jan 2020 20:34:21 +0000
(06:34 +1000)
committer
Ben Skeggs
<bskeggs@redhat.com>
Wed, 15 Jan 2020 00:50:26 +0000
(10:50 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/include/nvkm/core/os.h
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/include/nvkm/core/os.h
b/drivers/gpu/drm/nouveau/include/nvkm/core/os.h
index 029a416197db3c64cf687448d0e0d8ee95d672bb..d7ba3205207fe28d1c93d16e4bb234e9ad4dd67f 100644
(file)
--- a/
drivers/gpu/drm/nouveau/include/nvkm/core/os.h
+++ b/
drivers/gpu/drm/nouveau/include/nvkm/core/os.h
@@
-21,4
+21,17
@@
iowrite32_native(lower_32_bits(_v), &_p[0]); \
iowrite32_native(upper_32_bits(_v), &_p[1]); \
} while(0)
+
+struct nvkm_blob {
+ void *data;
+ u32 size;
+};
+
+static inline void
+nvkm_blob_dtor(struct nvkm_blob *blob)
+{
+ kfree(blob->data);
+ blob->data = NULL;
+ blob->size = 0;
+}
#endif