Path: blob/21.2-virgl/src/gallium/drivers/nouveau/nouveau_mm.h
4570 views
#ifndef __NOUVEAU_MM_H__1#define __NOUVEAU_MM_H__23union nouveau_bo_config;4struct nouveau_mman;56/* Since a resource can be migrated, we need to decouple allocations from7* them. This struct is linked with fences for delayed freeing of allocs.8*/9struct nouveau_mm_allocation {10void *priv;11uint32_t offset;12};1314extern struct nouveau_mman *15nouveau_mm_create(struct nouveau_device *, uint32_t domain,16union nouveau_bo_config *);1718extern void19nouveau_mm_destroy(struct nouveau_mman *);2021extern struct nouveau_mm_allocation *22nouveau_mm_allocate(struct nouveau_mman *, uint32_t size,23struct nouveau_bo **, uint32_t *offset);2425extern void26nouveau_mm_free(struct nouveau_mm_allocation *);2728extern void29nouveau_mm_free_work(void *);3031#endif // __NOUVEAU_MM_H__323334