mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 01:53:29 +02:00
drm/nouveau/core: add representation of generic binary objects
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
47c8f8e1a2
commit
f25709f9ae
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user