*/
#include <IOKit/IODeviceMemory.h>
+#include <IOKit/IOSubMemoryDescriptor.h>
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
IOPhysicalAddress start,
IOPhysicalLength length )
{
- return( (IODeviceMemory *) IOMemoryDescriptor::withPhysicalAddress(
- start, length, kIODirectionNone ));
+ return( (IODeviceMemory *) IOMemoryDescriptor::withAddressRange(
+ start, length, kIODirectionNone | kIOMemoryMapperNone, NULL ));
}
IOPhysicalAddress offset,
IOPhysicalLength length )
{
- return( (IODeviceMemory *) IOMemoryDescriptor::withSubRange(
+ return( (IODeviceMemory *) IOSubMemoryDescriptor::withSubRange(
of, offset, length, kIODirectionNone ));
}