PATH 
ADC Home > Documentation > Hardware > Device Managers and Drivers > PCI Card Services > Designing PCI Cards and Drivers for Power Macintosh Computers


  

ExpMgrIOWriteLong

You can use the ExpMgrIOWriteLong function to write a long word to an address in PCI I/O space.

OSErr ExpMgrIOWriteLong (
                     RegEntryIDPtr node,
                     LogicalAddress ioAddr,
                     UInt32 value);
node
A node identifier that identifies a device node. If you specify a node identifier that isn't in the device tree, ExpMgrIOWriteLong returns a result code of deviceTreeInvalidNodeErr.
ioAddr
The sum of the assigned-addresses base address of the device plus the offset to the desired I/O address.
value
The 32-bit value as it would appear on the PCI bus. The function performs the necessary byte swapping.
DESCRIPTION

The ExpMgrIOWriteLong function writes the byte-swapped value of value to the I/O address for device node node starting at address ioAddr.

RESULT CODES
noErr 0 No error
deviceTreeInvalidNodeErr -2538 Device node not in the device tree

© 1999 Apple Computer, Inc. – (Last Updated 26 March 99)