@@ -44,7 +44,7 @@ struct dma_siwx91x_data {
44
44
UDMA_Channel_Info * chan_info ;
45
45
dma_callback_t dma_callback ; /* User callback */
46
46
void * cb_data ; /* User callback data */
47
- RSI_UDMA_DATACONTEXT_T dma_rom_buff ; /* Buffer to store UDMA handle
47
+ RSI_UDMA_DATACONTEXT_T udma_handle ; /* Buffer to store UDMA handle
48
48
* related information
49
49
*/
50
50
};
@@ -187,7 +187,7 @@ static int siwx91x_dma_configure(const struct device *dev, uint32_t channel,
187
187
{
188
188
const struct dma_siwx91x_config * cfg = dev -> config ;
189
189
struct dma_siwx91x_data * data = dev -> data ;
190
- void * udma_handle = & data -> dma_rom_buff ;
190
+ void * udma_handle = & data -> udma_handle ;
191
191
int status ;
192
192
193
193
/* Expecting a fixed channel number between 0-31 for dma0 and 0-11 for ulpdma */
@@ -223,7 +223,7 @@ static int siwx91x_dma_reload(const struct device *dev, uint32_t channel, uint32
223
223
{
224
224
const struct dma_siwx91x_config * cfg = dev -> config ;
225
225
struct dma_siwx91x_data * data = dev -> data ;
226
- void * udma_handle = & data -> dma_rom_buff ;
226
+ void * udma_handle = & data -> udma_handle ;
227
227
uint32_t desc_src_addr ;
228
228
uint32_t desc_dst_addr ;
229
229
uint32_t length ;
@@ -278,7 +278,7 @@ static int siwx91x_dma_start(const struct device *dev, uint32_t channel)
278
278
const struct dma_siwx91x_config * cfg = dev -> config ;
279
279
RSI_UDMA_DESC_T * udma_table = cfg -> sram_desc_addr ;
280
280
struct dma_siwx91x_data * data = dev -> data ;
281
- void * udma_handle = & data -> dma_rom_buff ;
281
+ void * udma_handle = & data -> udma_handle ;
282
282
283
283
/* Expecting a fixed channel number between 0-31 for dma0 and 0-11 for ulpdma */
284
284
if (channel >= cfg -> channels ) {
@@ -304,7 +304,7 @@ static int siwx91x_dma_stop(const struct device *dev, uint32_t channel)
304
304
{
305
305
const struct dma_siwx91x_config * cfg = dev -> config ;
306
306
struct dma_siwx91x_data * data = dev -> data ;
307
- void * udma_handle = & data -> dma_rom_buff ;
307
+ void * udma_handle = & data -> udma_handle ;
308
308
309
309
/* Expecting a fixed channel number between 0-31 for dma0 and 0-11 for ulpdma */
310
310
if (channel >= cfg -> channels ) {
@@ -364,8 +364,8 @@ static int siwx91x_dma_init(const struct device *dev)
364
364
}
365
365
366
366
udma_handle = UDMAx_Initialize (& udma_resources , udma_resources .desc , NULL ,
367
- (uint32_t * )& data -> dma_rom_buff );
368
- if (udma_handle != & data -> dma_rom_buff ) {
367
+ (uint32_t * )& data -> udma_handle );
368
+ if (udma_handle != & data -> udma_handle ) {
369
369
return - EINVAL ;
370
370
}
371
371
0 commit comments