#include <libkern/c++/OSObject.h>
#include <IOKit/IOTypes.h>
-typedef UInt32 IORangeScalar;
+typedef IOByteCount IORangeScalar;
/*! @class IORangeAllocator
@abstract A utility class to manage allocations from a range.
@result Returns the new IORangeAllocator instance, to be released by the caller, or zero on failure. */
static IORangeAllocator * withRange( IORangeScalar endOfRange,
- IORangeScalar defaultAlignment = 0, UInt32 capacity = 0,
+ IORangeScalar defaultAlignment = 0,
+ UInt32 capacity = 0,
IOOptionBits options = 0 );
- virtual void free();
- virtual bool serialize(OSSerialize *s) const;
+ virtual void free() APPLE_KEXT_OVERRIDE;
+ virtual bool serialize(OSSerialize *s) const APPLE_KEXT_OVERRIDE;
/*! @function getFragmentCount
@abstract Accessor to return the number of free fragments in the range.