
PCI CD and PCI CDa
Document Number: 008-00965-06 EDT Public Revision: I December 2004
Template: edt.dot
Page 41
descriptions in the section entitled “Hardware.”
Return
The value of the register.
edt_reg_write
Note
Use this routine with care; it writes directly to the hardware. An incorrect value can crash
your system, possibly causing loss of data.
Description
Write the specified value to the specified register. Use this routine instead of using ioctls.
Syntax
#include "edtinc.h"
void edt_reg_write(EdtDev *edt_p, uint address, uint value);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
address
The name of the register to write. Use the names provided in the register
descriptions in the section entitled “Hardware.”
value
The desired value to write in the register.
Return
No return value.
edt_reg_and
Note
Use this routine with care; it writes directly to the hardware. An incorrect value can crash
your system, possibly causing loss of data.
Description
Performs a bitwise logical AND of the value of the specified register and the value provided in the
argument; the result becomes the new value of the register. Use this routine instead of using ioctls.
Syntax
#include "edtinc.h"
uint edt_reg_and(EdtDev *edt_p, uint address, uint mask);
Arguments
edt_p
device handle returned from edt_open or edt_open_channel
address
The name of the register to modify. Use the names provided in the register
descriptions in the section entitled “Hardware.”
mask
The value to AND with the register.
Return
The new value of the register.
Kommentare zu diesen Handbüchern