Direct Memory Access Controller (DMAC)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
131
9.3
Registers
This section describes the programmable registers of the DMAC.
Note
: There are references to both software and hardware parameters throughout this chapter. The software parameters are the field names
in each register description table and are prefixed by the register name; for example, the Block Transfer Size field in the Control register for
Channel x is designated as “CTLx.BLOCK_TS”.
Shipped with the DMAC component is an address definition (memory map) C header file. This can be used when the DMAC is programmed in a
C environment.
9.3.1
Register Memory Map
Table 3-2 shows the memory map for the DMAC.
Note
: The address offsets of the registers are always fixed, regardless of the number of configured channels.
Table 9-14 Memory map of DMAC
Name
Address Offset
Access
Reset
Description
Channel Registers
If DMAH_NUM_CHANNELS = “dnc”, “Reg Exist” field shows “dnc” value for register to exist.
SAR0
0x000
R/W
0x0
Channel 0 Source Address Register
Reg Exist:
Yes
DAR0
0x008
R/W
0x0
Channel 0 Destination Address Register
Reg Exist:
Yes
LLP0
0x010
R/W
0x0
Channel 0 Linked List Pointer Register
Reg Exist:
llp0_hc = False
llp0_hc = DMAH_CH0_HC_LLP
CTL0
0x018
R/W
Configuration dependent
Channel 0 Control Register
Reg Exist:
Yes
SSTAT0
0x020
R/W
0x0
Channel 0 Source Status Register
Reg Exist:
sstat0 = True
sstat0 = DMAH_CH0_STAT_SRC
DSTAT0
0x028
R/W
0x0
Channel 0 Destination Status Register
Reg Exist:
dstat0 = True
dstat0 = DMAH_CH0_STAT_DST
SSTATAR0
0x030
R/W
0x0
Channel 0 Source Status Address Register
Reg Exist:
stat0 = True
stat0 = DMAH_CH0_STAT_SRC
DSTATAR0
0x038
R/W
0x0
Channel 0 Destination Status Address Register
Reg Exist:
dstat0 = True
dstat0 = DMAH_CH0_STAT_DST
CFG0
0x040
R/W
0x0000000400000e00
Channel 0 Configuration Register
Reg Exist:
Yes
SGR0
0x048
R/W
0x0
Channel 0 Source Gather Register
Reg Exist:
sgr0 = True
sgr0 = DMAH_CH0_SRC_GAT_EN
DSR0
0x050
R/W
0x0
Channel 0 Destination Scatter Register
Reg Exist:
dsr0 = True
dsr0 = DMAH_CH0_DST_SCA_EN
SAR1
0x058
R/W
0x0
Channel 1 Source Address Register
Reg Exist:
dnc ≥ 2
DAR1
0x060
R/W
0x0
Channel 1 Destination Address Register
Reg Exist:
dnc ≥ 2
LLP1
0x068
R/W
0x0
Channel 1 Linked List Pointer Register
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03