]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOTypes.h
xnu-792.10.96.tar.gz
[apple/xnu.git] / iokit / IOKit / IOTypes.h
index 417fe20205a6a6e9bb4a9cbd987b98a722d14a44..4564ad3eba3094c168be4e1128284293e27c05b8 100644 (file)
@@ -56,20 +56,9 @@ extern "C" {
 #ifndef __MACTYPES__   /* CF MacTypes.h */
 #ifndef __TYPES__      /* guess... Mac Types.h */
 
+#include <stdbool.h>
 #include <libkern/OSTypes.h>
 
-#ifndef __cplusplus
-#if !TYPE_BOOL
-#ifdef KERNEL
-typedef int    bool;
-enum {
-    false      = 0,
-    true       = 1
-};
-#endif
-#endif
-#endif
-
 #endif /* __TYPES__ */
 #endif /* __MACTYPES__ */
 
@@ -107,12 +96,23 @@ struct IOVirtualRange
     IOVirtualAddress   address;
     IOByteCount                length;
 };
+struct IOAddressRange
+{
+    mach_vm_address_t  address;
+    mach_vm_size_t     length;
+};
 #else
 typedef struct 
 {
     IOVirtualAddress   address;
     IOByteCount                length;
 } IOVirtualRange;
+
+struct IOAddressRange
+{
+    mach_vm_address_t  address;
+    mach_vm_size_t     length;
+};
 #endif
 
 /*