|
ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IOFWPhysicalAddressSpace.h |
Validates the IOMemoryDescriptor, which is used to initialize the PhysicalAddressSpace.
complete the IODMACommand used by this PhysicalAddressSpace.
A method for processing an address space read request
A method for processing an address space write request
Get the DMACommand from this PhysicalAddressSpace.
Get the length of the memory backed by PhysicalAddressSpace.
Gets the memory descriptor, which is associated to this PhysicalAddressSpace.
Returns the scatter gather list of memory segments from the IODMACommand used in this PhysicalAddressSpace.
Initialize physical address space.
Initialize physical address space with IOMemoryDescriptor.
Initialize physical address space with IODMACommand.
Inspects whether the IODMACommand was prepared in this PhysicalAddressSpace.
Prepare the IODMACommand used by this PhysicalAddressSpace.
Set the DMACommand for this PhysicalAddressSpace.
Sets the memory descriptor, which will be associated to this PhysicalAddressSpace.
synchronize the IODMACommand used by this PhysicalAddressSpace.
checkMemoryInRange |
Validates the IOMemoryDescriptor, which is used to initialize the PhysicalAddressSpace.
IOReturn checkMemoryInRange( IOMemoryDescriptor *memory );
memoryPoints to a valid IOMemoryDescriptor.
returns kIOReturnSuccess on success
complete |
complete the IODMACommand used by this PhysicalAddressSpace.
inline IOReturn complete( void ) ;
none.returns kIOReturnSuccess on success
doRead |
A method for processing an address space read request
virtual UInt32 doRead( UInt16 nodeID, IOFWSpeed &speed, FWAddress addr, UInt32 len, IOMemoryDescriptor **buf, IOByteCount *offset, IOFWRequestRefCon refcon);
nodeIDFireWire Read from nodeID.
speedat this 'speed'.
addrwith FireWire address 'addr'.
lenread 'len' bytes from nodeID.
bufpoints to a memory descriptor containing the packet data.
offsetstart from this 'offset' in 'buf'.
refconCan be queried for extra info about the request.
UIn32 returns kFWResponseComplete on success
doWrite |
A method for processing an address space write request
virtual UInt32 doWrite( UInt16 nodeID, IOFWSpeed &speed, FWAddress addr, UInt32 len, const void *buf, IOFWRequestRefCon refcon);
nodeIDFireWire Write to nodeID.
speedat this 'speed'.
addrwith FireWire address 'addr'.
lenwrite 'len' bytes to nodeID.
bufobtain bytes from location given by 'buf'.
reqrefconCan be queried for extra info about the request.
UIn32 returns kFWResponseComplete on success
getDMACommand |
Get the DMACommand from this PhysicalAddressSpace.
inline IODMACommand * getDMACommand( void ) ;
none.return previously assigned IODMACommand, null if not initialized
getLength |
Get the length of the memory backed by PhysicalAddressSpace.
UInt64 getLength( void );
none.returns the length
getMemoryDescriptor |
Gets the memory descriptor, which is associated to this PhysicalAddressSpace.
IOMemoryDescriptor * getMemoryDescriptor( void );
none.returns the IOMemoryDescriptor
getSegments |
Returns the scatter gather list of memory segments from the IODMACommand used in this PhysicalAddressSpace.
inline IOReturn getSegments( UInt64 *offset, FWSegment *fw_segments, UInt32 *num_segments ) ;
offsetinput/output parameter, defines the starting and ending offset in the memory descriptor, relative to any offset passed to the prepare() method. FWSegment Points to an array of memory segments. num_segments Size of the FWSegment array.
returns kIOReturnSuccess on success
init |
Initialize physical address space.
virtual bool init( IOFireWireBus *bus );
busPoints to IOFireWireBus object.
returns true if success, else false
initWithDesc |
Initialize physical address space with IOMemoryDescriptor.
virtual bool initWithDesc( IOFireWireBus *bus, IOMemoryDescriptor *mem);
busPoints to IOFireWireBus object.
memPoints to IOMemoryDescriptor.
returns true if success, else false
initWithDMACommand |
Initialize physical address space with IODMACommand.
virtual bool initWithDMACommand( IOFireWireBus *control, IODMACommand *command );
busPoints to IOFireWireBus object.
commandPoints to IODMACommand.
returns true if success, else false
isPrepared |
Inspects whether the IODMACommand was prepared in this PhysicalAddressSpace.
inline bool isPrepared( void ) ;
none.returns true if prepared, else false
prepare |
Prepare the IODMACommand used by this PhysicalAddressSpace.
inline IOReturn prepare( void ) ;
none.returns kIOReturnSuccess on success
setDMACommand |
Set the DMACommand for this PhysicalAddressSpace.
inline void setDMACommand( IODMACommand *dma_command ) ;
dma_commandPoints to IODMACommand object.
none
setMemoryDescriptor |
Sets the memory descriptor, which will be associated to this PhysicalAddressSpace.
IOReturn setMemoryDescriptor( IOMemoryDescriptor *descriptor );
none.returns the IOMemoryDescriptor
synchronize |
synchronize the IODMACommand used by this PhysicalAddressSpace.
inline IOReturn synchronize( IOOptionBits options ) ;
none.returns kIOReturnSuccess on success
|
Last Updated: 2008-12-19