- virtual UInt32 getOFVariableType(const OSSymbol *propSymbol) const;
- virtual UInt32 getOFVariablePerm(const OSSymbol *propSymbol) const;
- virtual bool getOWVariableInfo(UInt32 variableNumber, const OSSymbol **propSymbol,
- UInt32 *propType, UInt32 *propOffset);
- virtual bool convertPropToObject(UInt8 *propName, UInt32 propNameLength,
- UInt8 *propData, UInt32 propDataLength,
- const OSSymbol **propSymbol,
- OSObject **propObject);
- virtual bool convertObjectToProp(UInt8 *buffer, UInt32 *length,
- const OSSymbol *propSymbol, OSObject *propObject);
- virtual UInt16 generateOWChecksum(UInt8 *buffer);
- virtual bool validateOWChecksum(UInt8 *buffer);
- virtual void updateOWBootArgs(const OSSymbol *key, OSObject *value);
- virtual bool searchNVRAMProperty(struct IONVRAMDescriptor *hdr,
- UInt32 *where);
-
- virtual IOReturn readNVRAMPropertyType0(IORegistryEntry *entry,
- const OSSymbol **name,
- OSData **value);
- virtual IOReturn writeNVRAMPropertyType0(IORegistryEntry *entry,
- const OSSymbol *name,
- OSData * value);
-
- virtual OSData *unescapeBytesToData(const UInt8 *bytes, UInt32 length);
- virtual OSData *escapeDataToData(OSData * value);
-
- virtual IOReturn readNVRAMPropertyType1(IORegistryEntry *entry,
- const OSSymbol **name,
- OSData **value);
- virtual IOReturn writeNVRAMPropertyType1(IORegistryEntry *entry,
- const OSSymbol *name,
- OSData *value);
-
+ virtual UInt32 getOFVariableType(const OSSymbol *propSymbol) const;
+ virtual UInt32 getOFVariablePerm(const OSSymbol *propSymbol) const;
+ virtual bool getOWVariableInfo(UInt32 variableNumber, const OSSymbol **propSymbol,
+ UInt32 *propType, UInt32 *propOffset);
+ virtual bool convertPropToObject(UInt8 *propName, UInt32 propNameLength,
+ UInt8 *propData, UInt32 propDataLength,
+ LIBKERN_RETURNS_RETAINED const OSSymbol **propSymbol,
+ LIBKERN_RETURNS_RETAINED OSObject **propObject);
+ virtual bool convertObjectToProp(UInt8 *buffer, UInt32 *length,
+ const OSSymbol *propSymbol, OSObject *propObject);
+ virtual UInt16 generateOWChecksum(UInt8 *buffer);
+ virtual bool validateOWChecksum(UInt8 *buffer);
+ virtual void updateOWBootArgs(const OSSymbol *key, OSObject *value);
+ virtual bool searchNVRAMProperty(struct IONVRAMDescriptor *hdr,
+ UInt32 *where);
+
+ virtual IOReturn readNVRAMPropertyType0(IORegistryEntry *entry,
+ const OSSymbol **name,
+ OSData **value);
+ virtual IOReturn writeNVRAMPropertyType0(IORegistryEntry *entry,
+ const OSSymbol *name,
+ OSData * value);
+
+ virtual OSData *unescapeBytesToData(const UInt8 *bytes, UInt32 length);
+ virtual OSData *escapeDataToData(OSData * value);
+
+ virtual IOReturn readNVRAMPropertyType1(IORegistryEntry *entry,
+ const OSSymbol **name,
+ OSData **value);
+ virtual IOReturn writeNVRAMPropertyType1(IORegistryEntry *entry,
+ const OSSymbol *name,
+ OSData *value);
+
+ void initNVRAMImage(void);
+ void initProxyData(void);
+ IOReturn syncVariables(void);
+ IOReturn setPropertyInternal(const OSSymbol *aKey, OSObject *anObject);
+
+