---
name: "mca_set_dma_mode"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/mca_set_dma_mode"
---

# mca\_set\_dma\_mode(9)

set the DMA mode

## NAME

mca\_set\_dma\_mode - set the DMA mode

## SYNOPSIS

**void mca\_set\_dma\_mode(unsigned int** *dmanr***, unsigned int** *mode***);**

## ARGUMENTS

*dmanr*

DMA channel

*mode*

mode to set

## DESCRIPTION

The DMA controller supports several modes. The mode values you can set are-

**MCA\_DMA\_MODE\_READ** when reading from the DMA device.

**MCA\_DMA\_MODE\_WRITE** to writing to the DMA device.

**MCA\_DMA\_MODE\_IO** to do DMA to or from an I/O port.

**MCA\_DMA\_MODE\_16** to do 16bit transfers.

## COPYRIGHT
