]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOTypes.h
xnu-792.13.8.tar.gz
[apple/xnu.git] / iokit / IOKit / IOTypes.h
index 6e578358909fdbe218dd4ed00280b8023dd5e4b2..91de92337c26880a5adbc012d01f64ad08fe2206 100644 (file)
@@ -64,20 +64,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__ */
 
@@ -115,12 +104,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
 
 /*