Commit f25709f9 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/core: add representation of generic binary objects

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 47c8f8e1
...@@ -21,4 +21,17 @@ ...@@ -21,4 +21,17 @@
iowrite32_native(lower_32_bits(_v), &_p[0]); \ iowrite32_native(lower_32_bits(_v), &_p[0]); \
iowrite32_native(upper_32_bits(_v), &_p[1]); \ iowrite32_native(upper_32_bits(_v), &_p[1]); \
} while(0) } 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 #endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment