#include <IOKit/firewire/IOFWAddressSpace.h>
IOKit/firewire/IOFWAddressSpace.h
IOFWAddressSpace.h
Classes which describe addresses in the local node which are accessable to other nodes
via firewire asynchronous read/write/lock requests.
typedefIOFWRequestRefCon
typedef void * IOFWRequestRefCon
typedefFWWriteCallback
@function FWWriteCallback
@abstract Callback called when a write request packet is received for
a 'virtual' firewire address.
@param device is the node originating the request
@param speed is the FireWire speed of the request, update it if you need to control
the speed of the reply, otherwise the response will be the same speed.
@param addr is the address the device is requesting to write to
@param len is the number of bytes to write
@param buf contains the packet data
@param requestRefcon refcon Can be queried for extra info about the request,
using IOFireWireController::isLockRequest(), isQuadRequest()
@result return:
kFWResponseComplete = 0, OK
kFWResponseConflictError = 4, Resource conflict, may retry
kFWResponseDataError = 5, Data not available
kFWResponseTypeError = 6, Operation not supported
kFWResponseAddressError = 7 Address not valid in target device
typedef UInt32 (*)(void *, UInt16, IOFWSpeed &, FWAddress, UInt32, const void *, IOFWRequestRefCon) FWWriteCallback;
typedefFWReadCallback
@function FWReadCallback
@abstract Callback called when a read request packet is received for
a 'virtual' firewire address.
@param nodeID is the node originating the request
@param speed is the FireWire speed of the request, update it if you need to control
the speed of the reply, otherwise the response will be the same speed.
@param addr is the address the device is requesting to read from
@param len is the number of bytes to read
@param buf contains the packet data
@param offset on return points to the offset into *buf of the packet data
@param requestRefcon refcon to pass back if sending a delayed response. Also can be queried
for extra info about the request
@result return:
kFWResponsePending = -1, Pseudo response, real response sent later.
kFWResponseComplete = 0, OK!
kFWResponseConflictError = 4, Resource conflict, may retry
kFWResponseDataError = 5, Data not available
kFWResponseTypeError = 6, Operation not supported
kFWResponseAddressError = 7 Address not valid in target device
A return of kFWResponsePending should be followed at some later time by a call to
IOFireWireController::asyncReadResponse
typedef UInt32 (*)(void *, UInt16, IOFWSpeed &, FWAddress, UInt32, IOMemoryDescriptor **, IOByteCount *, IOFWRequestRefCon) FWReadCallback;