diff options
Diffstat (limited to 'drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h')
-rw-r--r-- | drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h b/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h index fbff372d2f5..a264fa69a4f 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h +++ b/drivers/staging/tidspbridge/include/dspbridge/cmmdefs.h | |||
@@ -19,18 +19,17 @@ | |||
19 | #ifndef CMMDEFS_ | 19 | #ifndef CMMDEFS_ |
20 | #define CMMDEFS_ | 20 | #define CMMDEFS_ |
21 | 21 | ||
22 | #include <dspbridge/list.h> | ||
23 | 22 | ||
24 | /* Cmm attributes used in cmm_create() */ | 23 | /* Cmm attributes used in cmm_create() */ |
25 | struct cmm_mgrattrs { | 24 | struct cmm_mgrattrs { |
26 | /* Minimum SM allocation; default 32 bytes. */ | 25 | /* Minimum SM allocation; default 32 bytes. */ |
27 | u32 ul_min_block_size; | 26 | u32 min_block_size; |
28 | }; | 27 | }; |
29 | 28 | ||
30 | /* Attributes for CMM_AllocBuf() & CMM_AllocDesc() */ | 29 | /* Attributes for CMM_AllocBuf() & CMM_AllocDesc() */ |
31 | struct cmm_attrs { | 30 | struct cmm_attrs { |
32 | u32 ul_seg_id; /* 1,2... are SM segments. 0 is not. */ | 31 | u32 seg_id; /* 1,2... are SM segments. 0 is not. */ |
33 | u32 ul_alignment; /* 0,1,2,4....ul_min_block_size */ | 32 | u32 alignment; /* 0,1,2,4....min_block_size */ |
34 | }; | 33 | }; |
35 | 34 | ||
36 | /* | 35 | /* |
@@ -52,40 +51,40 @@ struct cmm_attrs { | |||
52 | */ | 51 | */ |
53 | 52 | ||
54 | struct cmm_seginfo { | 53 | struct cmm_seginfo { |
55 | u32 dw_seg_base_pa; /* Start Phys address of SM segment */ | 54 | u32 seg_base_pa; /* Start Phys address of SM segment */ |
56 | /* Total size in bytes of segment: DSP+GPP */ | 55 | /* Total size in bytes of segment: DSP+GPP */ |
57 | u32 ul_total_seg_size; | 56 | u32 total_seg_size; |
58 | u32 dw_gpp_base_pa; /* Start Phys addr of Gpp SM seg */ | 57 | u32 gpp_base_pa; /* Start Phys addr of Gpp SM seg */ |
59 | u32 ul_gpp_size; /* Size of Gpp SM seg in bytes */ | 58 | u32 gpp_size; /* Size of Gpp SM seg in bytes */ |
60 | u32 dw_dsp_base_va; /* DSP virt base byte address */ | 59 | u32 dsp_base_va; /* DSP virt base byte address */ |
61 | u32 ul_dsp_size; /* DSP seg size in bytes */ | 60 | u32 dsp_size; /* DSP seg size in bytes */ |
62 | /* # of current GPP allocations from this segment */ | 61 | /* # of current GPP allocations from this segment */ |
63 | u32 ul_in_use_cnt; | 62 | u32 in_use_cnt; |
64 | u32 dw_seg_base_va; /* Start Virt address of SM seg */ | 63 | u32 seg_base_va; /* Start Virt address of SM seg */ |
65 | 64 | ||
66 | }; | 65 | }; |
67 | 66 | ||
68 | /* CMM useful information */ | 67 | /* CMM useful information */ |
69 | struct cmm_info { | 68 | struct cmm_info { |
70 | /* # of SM segments registered with this Cmm. */ | 69 | /* # of SM segments registered with this Cmm. */ |
71 | u32 ul_num_gppsm_segs; | 70 | u32 num_gppsm_segs; |
72 | /* Total # of allocations outstanding for CMM */ | 71 | /* Total # of allocations outstanding for CMM */ |
73 | u32 ul_total_in_use_cnt; | 72 | u32 total_in_use_cnt; |
74 | /* Min SM block size allocation from cmm_create() */ | 73 | /* Min SM block size allocation from cmm_create() */ |
75 | u32 ul_min_block_size; | 74 | u32 min_block_size; |
76 | /* Info per registered SM segment. */ | 75 | /* Info per registered SM segment. */ |
77 | struct cmm_seginfo seg_info[CMM_MAXGPPSEGS]; | 76 | struct cmm_seginfo seg_info[CMM_MAXGPPSEGS]; |
78 | }; | 77 | }; |
79 | 78 | ||
80 | /* XlatorCreate attributes */ | 79 | /* XlatorCreate attributes */ |
81 | struct cmm_xlatorattrs { | 80 | struct cmm_xlatorattrs { |
82 | u32 ul_seg_id; /* segment Id used for SM allocations */ | 81 | u32 seg_id; /* segment Id used for SM allocations */ |
83 | u32 dw_dsp_bufs; /* # of DSP-side bufs */ | 82 | u32 dsp_bufs; /* # of DSP-side bufs */ |
84 | u32 dw_dsp_buf_size; /* size of DSP-side bufs in GPP bytes */ | 83 | u32 dsp_buf_size; /* size of DSP-side bufs in GPP bytes */ |
85 | /* Vm base address alloc'd in client process context */ | 84 | /* Vm base address alloc'd in client process context */ |
86 | void *vm_base; | 85 | void *vm_base; |
87 | /* dw_vm_size must be >= (dwMaxNumBufs * dwMaxSize) */ | 86 | /* vm_size must be >= (dwMaxNumBufs * dwMaxSize) */ |
88 | u32 dw_vm_size; | 87 | u32 vm_size; |
89 | }; | 88 | }; |
90 | 89 | ||
91 | /* | 90 | /* |