mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-01 00:02:19 -04:00
drm/nouveau/core: add representation of generic binary objects
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user