diff options
author | Eric Anholt <[email protected]> | 2018-06-25 14:58:15 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2018-07-27 17:08:35 -0700 |
commit | 01b4952773e874b5fa0cc8190d846f7bbb1c18b6 (patch) | |
tree | b32de7bae052e7fec94cfec2bc1d40cbd75daecf /src/broadcom/clif/clif_private.h | |
parent | e92959c4e03cf17b7cd829e2e56162604069abe6 (diff) |
v3d: Move clif dump BO lookup into the clif dumper.
The clif dumper is going to need information about all of our BOs if we're
going to dump them for replay purposes.
Diffstat (limited to 'src/broadcom/clif/clif_private.h')
-rw-r--r-- | src/broadcom/clif/clif_private.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/broadcom/clif/clif_private.h b/src/broadcom/clif/clif_private.h index 376daef80d9..0d762c4b747 100644 --- a/src/broadcom/clif/clif_private.h +++ b/src/broadcom/clif/clif_private.h @@ -28,17 +28,25 @@ #include <stdarg.h> #include "util/list.h" +struct clif_bo { + const char *name; + uint32_t offset; + uint32_t size; + void *vaddr; +}; + struct clif_dump { const struct v3d_device_info *devinfo; - bool (*lookup_vaddr)(void *data, uint32_t addr, void **vaddr); FILE *out; - /* Opaque data from the caller that is passed to the callbacks. */ - void *data; struct v3d_spec *spec; /* List of struct reloc_worklist_entry */ struct list_head worklist; + + struct clif_bo *bo; + int bo_count; + int bo_array_size; }; enum reloc_worklist_type { |