Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:01:51

0001 #ifndef RADEON_BO_INT
0002 #define RADEON_BO_INT
0003 
0004 struct radeon_bo_manager {
0005     const struct radeon_bo_funcs *funcs;
0006     int                     fd;
0007 };
0008 
0009 struct radeon_bo_int {
0010     void                        *ptr;
0011     uint32_t                    flags;
0012     uint32_t                    handle;
0013     uint32_t                    size;
0014     /* private members */
0015     uint32_t                    alignment;
0016     uint32_t                    domains;
0017     unsigned                    cref;
0018     struct radeon_bo_manager    *bom;
0019     uint32_t                    space_accounted;
0020     uint32_t                    referenced_in_cs;
0021 };
0022 
0023 /* bo functions */
0024 struct radeon_bo_funcs {
0025     struct radeon_bo *(*bo_open)(struct radeon_bo_manager *bom,
0026                                  uint32_t handle,
0027                                  uint32_t size,
0028                                  uint32_t alignment,
0029                                  uint32_t domains,
0030                                  uint32_t flags);
0031     void (*bo_ref)(struct radeon_bo_int *bo);
0032     struct radeon_bo *(*bo_unref)(struct radeon_bo_int *bo);
0033     int (*bo_map)(struct radeon_bo_int *bo, int write);
0034     int (*bo_unmap)(struct radeon_bo_int *bo);
0035     int (*bo_wait)(struct radeon_bo_int *bo);
0036     int (*bo_is_static)(struct radeon_bo_int *bo);
0037     int (*bo_set_tiling)(struct radeon_bo_int *bo, uint32_t tiling_flags,
0038                          uint32_t pitch);
0039     int (*bo_get_tiling)(struct radeon_bo_int *bo, uint32_t *tiling_flags,
0040                          uint32_t *pitch);
0041     int (*bo_is_busy)(struct radeon_bo_int *bo, uint32_t *domain);
0042     int (*bo_is_referenced_by_cs)(struct radeon_bo_int *bo, struct radeon_cs *cs);
0043 };
0044 
0045 #endif