-/*! @function IOSetProcessorCacheMode
- @abstract Sets the processor cache mode for mapped memory.
- @discussion This function sets the cache mode of an already mapped & wired memory range. Note this may not be supported on I/O mappings or shared memory - it is far preferable to set the cache mode as mappings are created with the IOMemoryDescriptor::map method.
- @param task Task the memory is mapped into.
- @param address Virtual address of the memory.
- @param length Length of the range to set.
- @param cacheMode A constant from IOTypes.h, <br>
- kIOMapDefaultCache to inhibit the cache in I/O areas, kIOMapCopybackCache in general purpose RAM.<br>
- kIOMapInhibitCache, kIOMapWriteThruCache, kIOMapCopybackCache to set the appropriate caching.<br>
- @result An IOReturn code.*/
+/////////////////////////////////////////////////////////////////////////////
+//
+//
+// These functions are now implemented in IOMapper.cpp
+//
+//
+/////////////////////////////////////////////////////////////////////////////
+
+/*! @function IOMappedRead8
+ @abstract Read one byte from the desired "Physical" IOSpace address.
+ @discussion Read one byte from the desired "Physical" IOSpace address. This function allows the developer to read an address returned from any memory descriptor's getPhysicalSegment routine. It can then be used by segmenting a physical page slightly to tag the physical page with its kernel space virtual address.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @result Data contained at that location */
+
+UInt8 IOMappedRead8(IOPhysicalAddress address);
+
+/*! @function IOMappedRead16
+ @abstract Read two bytes from the desired "Physical" IOSpace address.
+ @discussion Read two bytes from the desired "Physical" IOSpace address. This function allows the developer to read an address returned from any memory descriptor's getPhysicalSegment routine. It can then be used by segmenting a physical page slightly to tag the physical page with its kernel space virtual address.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @result Data contained at that location */
+
+UInt16 IOMappedRead16(IOPhysicalAddress address);
+
+/*! @function IOMappedRead32
+ @abstract Read four bytes from the desired "Physical" IOSpace address.
+ @discussion Read four bytes from the desired "Physical" IOSpace address. This function allows the developer to read an address returned from any memory descriptor's getPhysicalSegment routine. It can then be used by segmenting a physical page slightly to tag the physical page with its kernel space virtual address.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @result Data contained at that location */
+
+UInt32 IOMappedRead32(IOPhysicalAddress address);
+
+/*! @function IOMappedRead64
+ @abstract Read eight bytes from the desired "Physical" IOSpace address.
+ @discussion Read eight bytes from the desired "Physical" IOSpace address. This function allows the developer to read an address returned from any memory descriptor's getPhysicalSegment routine. It can then be used by segmenting a physical page slightly to tag the physical page with its kernel space virtual address.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @result Data contained at that location */
+
+UInt64 IOMappedRead64(IOPhysicalAddress address);
+
+/*! @function IOMappedWrite8
+ @abstract Write one byte to the desired "Physical" IOSpace address.
+ @discussion Write one byte to the desired "Physical" IOSpace address. This function allows the developer to write to an address returned from any memory descriptor's getPhysicalSegment routine.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @param value Data to be writen to the desired location */
+
+void IOMappedWrite8(IOPhysicalAddress address, UInt8 value);
+
+/*! @function IOMappedWrite16
+ @abstract Write two bytes to the desired "Physical" IOSpace address.
+ @discussion Write two bytes to the desired "Physical" IOSpace address. This function allows the developer to write to an address returned from any memory descriptor's getPhysicalSegment routine.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @param value Data to be writen to the desired location */
+
+void IOMappedWrite16(IOPhysicalAddress address, UInt16 value);
+
+/*! @function IOMappedWrite32
+ @abstract Write four bytes to the desired "Physical" IOSpace address.
+ @discussion Write four bytes to the desired "Physical" IOSpace address. This function allows the developer to write to an address returned from any memory descriptor's getPhysicalSegment routine.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @param value Data to be writen to the desired location */
+
+void IOMappedWrite32(IOPhysicalAddress address, UInt32 value);
+
+/*! @function IOMappedWrite64
+ @abstract Write eight bytes to the desired "Physical" IOSpace address.
+ @discussion Write eight bytes to the desired "Physical" IOSpace address. This function allows the developer to write to an address returned from any memory descriptor's getPhysicalSegment routine.
+ @param address The desired address, as returned by IOMemoryDescriptor::getPhysicalSegment.
+ @param value Data to be writen to the desired location */
+
+void IOMappedWrite64(IOPhysicalAddress address, UInt64 value);
+
+/* This function is deprecated. Cache settings may be set for allocated memory with the IOBufferMemoryDescriptor api. */