Toshiba TX49 TMPR4937 Manual page 274

64-bit tx system risc
Table of Contents

Advertisement

3.
PDMAC Status Register (PDMSTATUS) Clearing
Clears any remaining status from a previous DMA transfer.
4.
PDMAC Configuration register (PDMCFG) Setting
Clears the Channel Reset bit (CHRST), and makes settings such as the data transfer direction
(XFRDIRC), and the data transfer unit size (XFRSIZE).
5.
DMA Transfer Initiation
Setting the Transfer Active bit (XFRACT) of the PDMAC Configuration Register initiates
DMA transfer.
6.
Termination Report
When the DMA data transfer terminates normally, the Normal Data Transfer Complete bit
(NTCMP) of the PDMAC Status Register (PDMSTATUS) is set. An interrupt is then reported
if the Normal Data Transfer Complete Interrupt Enable bit (NTCMPIE) of the PDMAC
Configuration Register is set.
If an error is detected during DMA transfer, the error cause is recorded in the lower 5 bits of
the PDMAC Status Register and the transfer is aborted. An interrupt is then reported if the
Error Detection Interrupt Enable bit (ERRIE) of the PDMAC Configuration register is set.
10.3.10.2 Chain DMA
DMA Command Descriptors are 4 QWORD (32-Byte) data structures indicated in Table 10.3.6
that are placed in memory.
Storing the starting memory address of another DMA Command Descriptor in the Offset 0
Chain Address Field makes it possible to configure a chain list for the DMA command Descriptor.
Set "0" in the Chain Address field of the DMA Command Descriptor at the end of the chain list.
When the DMA transfer specified by one DMA Command Descriptor ends, the PDMAC reads
the next DMA Command Descriptor that the Chain Address field automatically points to, then
continues the DMA transfer. Such continuous DMA transfer that uses multiple descriptors in a
chain format is referred to as the Chain DMA mode.
When a DMA Command Descriptor is placed to an address that does not extend across a 32
QWORD boundary in memory, this transfer method is more efficient since data can be read by a
single G-Bus Burst Read transaction.
Table 10.3.6 DMA Command Descriptors
Offset Address
0x00
Chain Address
0x08
G-Bus Address
0x10
PCI Bus Address
0x18
Count
Field Name
Transfer Destination Register
PDMAC Chain Address Register (PDMCA)
PDMAC G-Bus Address Register (PDMGA)
PDMAC PCI Bus Address Register (PDMPA)
PDMAC Count Register (PDMCTR)
10-16
Chapter 10 PCI Controller

Advertisement

Table of Contents
loading

Table of Contents