Commit f25709f9 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

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



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 47c8f8e1
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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