[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]
Kernel and Subsystems Technical Reference, Volume 1

d_map_enable Kernel Service

Purpose

Enables DMA for the specified handle.

Syntax

#include <sys/dma.h>
int d_map_enable(*handle)
struct d_handle *handle;

Parameters

handle Indicates the unique handle returned by d_map_init.

Description

The d_map_enable kernel service is a bus-specific utility routine determined by the d_map_init kernel service that enables DMA for the specified handle with respect to the platform.

Note: You can use the D_MAP_ENABLE macro provided in the /usr/include/sys/dma.h file to code calls to the d_map_enable kernel service.

Return Values

DMA_SUCC Indicates the DMA is successfully enabled.
DMA_FAIL Indicates the DMA could not be explicitly enabled for this device or bus.

Implementation Specifics

The d_map_enable kernel service is part of the base device package of your platform.

Related Information

The d_map_init kernel service.


[ Next Article | Previous Article | Book Contents | Library Home | Legal | Search ]