Revision a8170e5e hw/soc_dma.h
b/hw/soc_dma.h | ||
---|---|---|
51 | 51 |
int bytes; |
52 | 52 |
/* Initialised by the DMA module, call soc_dma_ch_update after writing. */ |
53 | 53 |
enum soc_dma_access_type type[2]; |
54 |
target_phys_addr_t vaddr[2]; /* Updated by .transfer_fn(). */
|
|
54 |
hwaddr vaddr[2]; /* Updated by .transfer_fn(). */
|
|
55 | 55 |
/* Private */ |
56 | 56 |
void *paddr[2]; |
57 | 57 |
soc_dma_io_t io_fn[2]; |
... | ... | |
91 | 91 |
void soc_dma_reset(struct soc_dma_s *s); |
92 | 92 |
struct soc_dma_s *soc_dma_init(int n); |
93 | 93 |
|
94 |
void soc_dma_port_add_fifo(struct soc_dma_s *dma, target_phys_addr_t virt_base,
|
|
94 |
void soc_dma_port_add_fifo(struct soc_dma_s *dma, hwaddr virt_base,
|
|
95 | 95 |
soc_dma_io_t fn, void *opaque, int out); |
96 | 96 |
void soc_dma_port_add_mem(struct soc_dma_s *dma, uint8_t *phys_base, |
97 |
target_phys_addr_t virt_base, size_t size);
|
|
97 |
hwaddr virt_base, size_t size);
|
|
98 | 98 |
|
99 | 99 |
static inline void soc_dma_port_add_fifo_in(struct soc_dma_s *dma, |
100 |
target_phys_addr_t virt_base, soc_dma_io_t fn, void *opaque)
|
|
100 |
hwaddr virt_base, soc_dma_io_t fn, void *opaque)
|
|
101 | 101 |
{ |
102 | 102 |
return soc_dma_port_add_fifo(dma, virt_base, fn, opaque, 0); |
103 | 103 |
} |
104 | 104 |
|
105 | 105 |
static inline void soc_dma_port_add_fifo_out(struct soc_dma_s *dma, |
106 |
target_phys_addr_t virt_base, soc_dma_io_t fn, void *opaque)
|
|
106 |
hwaddr virt_base, soc_dma_io_t fn, void *opaque)
|
|
107 | 107 |
{ |
108 | 108 |
return soc_dma_port_add_fifo(dma, virt_base, fn, opaque, 1); |
109 | 109 |
} |
Also available in: Unified diff