- @abstract Generates a little endian physical scatter/gather list given a memory descriptor.
- @discussion Generates a list of physical segments from the given memory descriptor, relative to the current position of the descriptor. Wraps IOMemoryCursor::genPhysicalSegments.
- @param descriptor IOMemoryDescriptor that describes the data associated with an I/O request.
- @param fromPosition Starting location of the I/O within a memory descriptor.
- @param segments Pointer to an array of IOMemoryCursor::PhysicalSegments for the output physical scatter/gather list.
- @param maxSegments Maximum number of segments that can be written to segments array.
- @param inMaxTransferSize Maximum transfer size is limited to that many bytes, otherwise it defaults to the maximum transfer size specified when the memory cursor was initialized.
- @param transferSize Pointer to an IOByteCount variable that can contain the total size of the transfer being described. Defaults to 0 indicating that no transfer size need be returned.
- @result If the descriptor is exhausted of memory, a zero is returned, otherwise the number of segments that were filled in is returned.
-*/
- virtual UInt32 getPhysicalSegments(IOMemoryDescriptor * descriptor,
- IOByteCount fromPosition,
- PhysicalSegment * segments,
- UInt32 maxSegments,
- UInt32 inMaxTransferSize = 0,
- IOByteCount * transferSize = 0)
- {
- return genPhysicalSegments(descriptor, fromPosition, segments,
- maxSegments, inMaxTransferSize, transferSize);
- }
+ * @abstract Generates a little endian physical scatter/gather list given a memory descriptor.
+ * @discussion Generates a list of physical segments from the given memory descriptor, relative to the current position of the descriptor. Wraps IOMemoryCursor::genPhysicalSegments.
+ * @param descriptor IOMemoryDescriptor that describes the data associated with an I/O request.
+ * @param fromPosition Starting location of the I/O within a memory descriptor.
+ * @param segments Pointer to an array of IOMemoryCursor::PhysicalSegments for the output physical scatter/gather list.
+ * @param maxSegments Maximum number of segments that can be written to segments array.
+ * @param inMaxTransferSize Maximum transfer size is limited to that many bytes, otherwise it defaults to the maximum transfer size specified when the memory cursor was initialized.
+ * @param transferSize Pointer to an IOByteCount variable that can contain the total size of the transfer being described. Defaults to 0 indicating that no transfer size need be returned.
+ * @result If the descriptor is exhausted of memory, a zero is returned, otherwise the number of segments that were filled in is returned.
+ */
+ virtual UInt32
+ getPhysicalSegments(IOMemoryDescriptor * descriptor,
+ IOByteCount fromPosition,
+ PhysicalSegment * segments,
+ UInt32 maxSegments,
+ UInt32 inMaxTransferSize = 0,
+ IOByteCount * transferSize = NULL)
+ {
+ return genPhysicalSegments(descriptor, fromPosition, segments,
+ maxSegments, inMaxTransferSize, transferSize);
+ }