]> git.saurik.com Git - apple/xnu.git/blobdiff - iokit/IOKit/IOPlatformExpert.h
xnu-201.42.3.tar.gz
[apple/xnu.git] / iokit / IOKit / IOPlatformExpert.h
index 05d6e2d1963a58ae1087605a66e7886ae478c7c6..1147780fdc2fbfff5f0237df835850183b43fa2e 100644 (file)
@@ -196,6 +196,7 @@ public:
 
     /* virtual */ IOReturn readXPRAM(IOByteCount offset, UInt8 * buffer,
                                     IOByteCount length);
+
     /* virtual */ IOReturn writeXPRAM(IOByteCount offset, UInt8 * buffer,
                                      IOByteCount length);
 
@@ -207,6 +208,18 @@ public:
        IORegistryEntry * entry,
        const OSSymbol * name, OSData * value );
 
+    // This returns a dictionary describing all the NVRAM partitions.
+    // The keys will be the partitionIDs of the form "0x52,nvram".
+    // The values will be OSNumbers of the partition's byte count.
+    /* virtual */ OSDictionary *getNVRAMPartitions(void);
+
+    /* virtual */ IOReturn readNVRAMPartition(const OSSymbol * partitionID,
+                                             IOByteCount offset, UInt8 * buffer,
+                                             IOByteCount length);
+
+    /* virtual */ IOReturn writeNVRAMPartition(const OSSymbol * partitionID,
+                                              IOByteCount offset, UInt8 * buffer,
+                                              IOByteCount length);
 
     OSMetaClassDeclareReservedUnused(IODTPlatformExpert,  0);
     OSMetaClassDeclareReservedUnused(IODTPlatformExpert,  1);