DMA
86Box offers two mechanisms for Direct Memory Access: 8237 DMA for ISA devices and direct memory read/write for PCI devices.
8237 DMA
86box/dma.h provides the dma_channel_read and dma_channel_write functions to read or write (respectively) a value from or to an 8237 DMA channel.
Parameter |
Description |
|---|---|
|
DMA channel number: |
Return value |
8- (channels May include a |
Parameter |
Description |
|---|---|
|
DMA channel number: |
|
8- (channels |
Return value |
|
Direct memory read/write
86box/mem.h provides the mem_read*_phys and mem_write*_phys functions, which read or write physical memory directly. These are useful for PCI devices, which perform DMA on their own.
Parameter |
Description |
|---|---|
|
32-bit memory address to read. |
Return value |
8- ( |
Parameter |
Description |
|---|---|
|
32-bit memory address to write. |
|
8- ( |