public:
static OSArray * arrayFromList( InitElement list[], IOItemCount count );
This method creates IODeviceMemory instances for each physical range passed in a IODeviceMemory::InitElement array. Each element consists of a physical address, length and tag value for the IODeviceMemory. The instances are returned as a created OSArray.
Result: A created OSArray of IODeviceMemory objects, to be released by the caller, or zero on failure.
Name Description list An array of IODeviceMemory::InitElement structures. count The number of elements in the list.
public:
static IODeviceMemory * withRange( IOPhysicalAddress start, IOPhysicalLength length );
This method creates IODeviceMemory instance for one physical range passed as a physical address and length. It just calls IOMemoryDescriptor::withPhysicalAddress.
Result: The created IODeviceMemory on success, to be released by the caller, or zero on failure.
Name Description address The physical address of the first byte in the memory. withLength The length of memory.
public:
static IODeviceMemory * withSubRange( IODeviceMemory * of, IOPhysicalAddress offset, IOPhysicalLength length );
This method creates IODeviceMemory instance for a subset of an existing IODeviceMemory range, passed as a physical address offset and length. It just calls IOMemoryDescriptor::withSubRange.
Result: The created IODeviceMemory on success, to be released by the caller, or zero on failure.
Name Description of The parent IODeviceMemory of which a subrange is to be used for the new descriptor, which will be retained by the subrange IODeviceMemory. offset A byte offset into the parent's memory. length The length of the subrange.
public:struct InitElement { IOPhysicalAddress start; IOPhysicalLength length; IOOptionBits tag; };
Name Description start First physical address in the range. length Length of the range. tag 32-bit value not interpreted by IODeviceMemory or IOMemoryDescriptor, for use by the bus family.
© 2000 Apple Computer, Inc. (Last Updated 2/23/2000)