
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 30
Return
void
See Also
edt_startdma_reg(), edt_reg_write(), edt_reg_read()
edt_enddma_action
Description
Specifies when to perform the action at the end of a dma transfer as specified by edt_enddma_reg(). A
common use of this is to write to a register which signals an external device that dma is complete, or to
change the state of a signal which will be changed at the start of dma, so the external device can look
for an edge. The default is no end of dma action. Most applications can set the output signal, if needed,
from the application with edt_reg_write(). This routine is only needed if the action must happen within
microseconds of the end of dma.
Syntax
void edt_enddma_action(EdtDev *edt_p, uint_t val);
Arguments
edt_p
device struct returned from edt_open
val
One of EDT_ACT_NEVER, EDT_ACT_ONCE, or EDT_ACT_ALWAYS
Example
u_int fnct_value=0x1;
edt_enddma_action(edt_p, EDT_ACT_ALWAYS);
edt_enddma_reg(edt_p, PCD_FUNCT, fnct_value);
Return
void
See Also
edt_startdma_action(), edt_startdma_reg(), edt_reg_write(), edt_reg_read()
edt_startdma_reg
Description
Sets the register and value to use at the start of dma, as set by edt_startdma_action().
Syntax
void edt_startdma_reg(EdtDev *edt_p, uint_t desc, uint_t val);
Arguments
edt_p
device struct returned from edt_open
desc
register description of which register to use as in edtreg.h
val
value to write
Example
edt_startdma_action(edt_p, EDT_ACT_ALWAYS);
Kommentare zu diesen Handbüchern