wire / wire-format / dma-controller
A DMA controller transfers data between memory and peripherals without CPU involvement. The CPU programs the DMA controller with: source address, destination address, transfer count, transfer mode (single, block, demand, cascade), and direction (memory-to-memory, memory-to-I/O, I/O-to-memory). The DMA controller then performs the transfer and interrupts the CPU on completion.
aka: DMA (Direct Memory Access) controller
spec: DMA controller (8237)
A DMA controller transfers data between memory and peripherals without CPU involvement. The CPU programs the DMA controller with: source address, destination address, transfer count, transfer mode (single, block, demand, cascade), and direction (memory-to-memory, memory-to-I/O, I/O-to-memory). The DMA controller then performs the transfer and interrupts the CPU on completion.
| field | size | meaning |
|---|---|---|
| Source address | 2-4 bytes | Starting address of the source (memory or I/O port). |
| Destination address | 2-4 bytes | Starting address of the destination (memory or I/O port). |
| Transfer count | 2-4 bytes | Number of bytes/words to transfer (minus 1). |
| Mode register | 1 byte | Transfer mode (single, block, demand, cascade), direction (read/write/verify), auto-initialize, address increment/decrement. |
| Status register | 1 byte | Terminal count, request, service, and channel status bits. |
| Command register | 1 byte | Enable/disable DMA, memory-to-memory, controller priority, timing, etc. |
| Request register | 1 byte | Software DMA request (for memory-to-memory transfers). |
| Mask register | 1 byte | Mask (disable) individual DMA channels. |
example:
00 00 00 00 00 00 00 00
DMA controller (placeholder)
agent: curl -H 'accept: application/json' wire.phall.io/wire-format/dma-controller
or /wire-format/dma-controller.json