ADC Home > Reference Library > Reference > Darwin > Kernel Framework Reference
|
IOFWPseudoAddressSpace |
Inherits from: | |
Declared In: |
returns number of bytes starting at addr in this space
A method for processing an address space read request
A method for processing an address space write request
Initialize an address space object to handle r/w memory
Initialize a fixed address space at top of kCSRRegisterSpaceBaseAddressHi
Installs a callback to receive notification, when FWIM has completed ARxReqInt processing and no incoming packets are left in the queue.
Create an address space object to handle read-only memory (eg. the local ROM) handles everything itself
A method for processing an address space read request
Create an address space object to handle fixed read-only memory (eg. the local ROM) handles everything itself
Create an address space object to handle r/w memory handles everything itself
Create an address space object to handle r/w memory handles everything itself
Create a Read/Write fixed address space at top of kCSRRegisterSpaceBaseAddressHi.
A method for processing an address space write request
contains |
returns number of bytes starting at addr in this space
public
virtual UInt32 contains( FWAddress addr);
0 if it doesn't contain the address
doRead |
A method for processing an address space read request
public
virtual UInt32 doRead( UInt16 nodeID, IOFWSpeed & speed, FWAddress addr, UInt32 len, IOMemoryDescriptor **buf, IOByteCount *offset, IOFWRequestRefCon reqrefcon);
nodeID
FireWire Read from nodeID.
speed
at this 'speed'.
addr
with FireWire address 'addr'.
len
read 'len' bytes from nodeID.
buf
points to a memory descriptor containing the packet data.
offset
start from this 'offset' in 'buf'.
reqrefcon
Can be queried for extra info about the request.
UIn32 returns kFWResponseComplete on success
doWrite |
A method for processing an address space write request
public
virtual UInt32 doWrite( UInt16 nodeID, IOFWSpeed& speed, FWAddress addr, UInt32 len, const void* buf, IOFWRequestRefCon reqrefcon);
nodeID
FireWire Write to nodeID.
speed
at this 'speed'.
addr
with FireWire address 'addr'.
len
write 'len' bytes to nodeID.
buf
obtain bytes from location given by 'buf'.
reqrefcon
Can be queried for extra info about the request.
UIn32 returns kFWResponseComplete on success
initAll |
Initialize an address space object to handle r/w memory
public
virtual bool initAll( IOFireWireBus *bus, FWAddress *addr, UInt32 len, FWReadCallback reader, FWWriteCallback writer, void *refcon);
bus
Points to IOFireWireBus object.
addr
Points to starting address for the Pseudo Address Space.
len
Length of the Pseudo Address Space.
reader
Callback handler for incoming Read.
writer
Callback handler for incoming Write.
refcon
Client's callback object.
returns true on success, false on failure
initFixed |
Initialize a fixed address space at top of kCSRRegisterSpaceBaseAddressHi
public
virtual bool initFixed( IOFireWireBus *bus, FWAddress addr, UInt32 len, FWReadCallback reader, FWWriteCallback writer, void *refcon);
bus
Points to IOFireWireBus object.
addr
Points to starting address for the Pseudo Address Space.
reader
Callback handler for incoming Read.
writer
Callback handler for incoming Write.
refcon
Client's callback object.
returns true on success, false on failure
setARxReqIntCompleteHandler |
Installs a callback to receive notification, when FWIM has completed ARxReqInt processing and no incoming packets are left in the queue.
public
inline void setARxReqIntCompleteHandler( void *refcon, IOFWARxReqIntCompleteHandler handler )
refcon
Client's callback object.
handler
Client callback to be invoked, at the end of interrupt processing.
none.
simpleRead |
Create an address space object to handle read-only memory (eg. the local ROM) handles everything itself
public
static IOFWPseudoAddressSpace* simpleRead( IOFireWireBus *bus, FWAddress *addr, UInt32 len, const void* data);
bus
Points to IOFireWireBus object.
addr
Points to starting address for the Pseudo Address Space.
len
Length of the Pseudo Address Space.
data
The virtual address of the first byte in the memory.
returns valid IOFWPseudoAddressSpace on success, null on failure
simpleReader |
A method for processing an address space read request
public
static UInt32 simpleReader( void *refcon, UInt16 nodeID, IOFWSpeed & speed, FWAddress addr, UInt32 len, IOMemoryDescriptor **buf, IOByteCount *offset, IOFWRequestRefCon reqrefcon);
refcon
Client's callback object.
nodeID
FireWire Read from nodeID.
speed
at this 'speed'.
addr
with FireWire address 'addr'.
len
read 'len' bytes from nodeID.
buf
points to a memory descriptor containing the packet data.
offset
start from this 'offset' in 'buf'.
reqrefcon
Can be queried for extra info about the request.
UIn32 returns kFWResponseComplete on success
simpleReadFixed |
Create an address space object to handle fixed read-only memory (eg. the local ROM) handles everything itself
public
static IOFWPseudoAddressSpace* simpleReadFixed( IOFireWireBus *bus, FWAddress addr, UInt32 len, const void* data);
bus
Points to IOFireWireBus object.
addr
Points to starting address for the Pseudo Address Space.
len
Length of the Pseudo Address Space.
data
The virtual address of the first byte in the memory.
returns valid IOFWPseudoAddressSpace on success, null on failure
simpleRW(IOFireWireBus *, FWAddress *, IOMemoryDescriptor *) |
Create an address space object to handle r/w memory handles everything itself
public
static IOFWPseudoAddressSpace* simpleRW( IOFireWireBus *bus, FWAddress *addr, IOMemoryDescriptor *data);
bus
Points to IOFireWireBus object.
addr
Points to starting address for the Pseudo Address Space.
data
The virtual address of the first byte in the memory.
returns valid IOFWPseudoAddressSpace on success, null on failure
simpleRW(IOFireWireBus *, FWAddress *, UInt32, void *) |
Create an address space object to handle r/w memory handles everything itself
public
static IOFWPseudoAddressSpace* simpleRW( IOFireWireBus *bus, FWAddress *addr, UInt32 len, void *data);
bus
Points to IOFireWireBus object.
addr
Points to starting address for the Pseudo Address Space.
len
Length of the Pseudo Address Space.
data
The virtual address of the first byte in the memory.
returns valid IOFWPseudoAddressSpace on success, null on failure
simpleRWFixed |
Create a Read/Write fixed address space at top of kCSRRegisterSpaceBaseAddressHi.
public
static IOFWPseudoAddressSpace * simpleRWFixed( IOFireWireBus *control, FWAddress addr, UInt32 len, const void *data );
control
Points to IOFireWireBus object.
addr
Points to starting address for the Pseudo Address Space.
len
Length of the address range.
data
The virtual address of the first byte in the memory.
returns valid IOFWPseudoAddressSpace on success, null on failure
simpleWriter |
A method for processing an address space write request
public
static UInt32 simpleWriter( void *refcon, UInt16 nodeID, IOFWSpeed& speed, FWAddress addr, UInt32 len, const void* buf, IOFWRequestRefCon reqrefcon);
refcon
Client's callback object.
nodeID
FireWire Write to nodeID.
speed
at this 'speed'.
addr
with FireWire address 'addr'.
len
write 'len' bytes to nodeID.
buf
obtain bytes from location given by 'buf'.
reqrefcon
Can be queried for extra info about the request.
UIn32 returns kFWResponseComplete on success
ExpansionData |
protected
struct ExpansionData { };
This structure will be used to expand the capablilties of the class in the future.
reserved |
protected
ExpansionData *reserved;
Reserved for future use. (Internal use only)
|
Last Updated: 2008-12-19