~mmach/netext73/mesa-haswell

« back to all changes in this revision

Viewing changes to src/gallium/drivers/nouveau/nouveau_mm.h

  • Committer: mmach
  • Date: 2022-09-22 19:56:13 UTC
  • Revision ID: netbit73@gmail.com-20220922195613-wtik9mmy20tmor0i
2022-09-22 21:17:09

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#ifndef __NOUVEAU_MM_H__
2
 
#define __NOUVEAU_MM_H__
3
 
 
4
 
union nouveau_bo_config;
5
 
struct nouveau_mman;
6
 
 
7
 
/* Since a resource can be migrated, we need to decouple allocations from
8
 
 * them. This struct is linked with fences for delayed freeing of allocs.
9
 
 */
10
 
struct nouveau_mm_allocation {
11
 
   void *priv;
12
 
   uint32_t offset;
13
 
};
14
 
 
15
 
extern struct nouveau_mman *
16
 
nouveau_mm_create(struct nouveau_device *, uint32_t domain,
17
 
                  union nouveau_bo_config *);
18
 
 
19
 
extern void
20
 
nouveau_mm_destroy(struct nouveau_mman *);
21
 
 
22
 
extern struct nouveau_mm_allocation *
23
 
nouveau_mm_allocate(struct nouveau_mman *, uint32_t size,
24
 
                    struct nouveau_bo **, uint32_t *offset);
25
 
 
26
 
extern void
27
 
nouveau_mm_free(struct nouveau_mm_allocation *);
28
 
 
29
 
extern void
30
 
nouveau_mm_free_work(void *);
31
 
 
32
 
#endif // __NOUVEAU_MM_H__