Update stubs for updated IOKit

This commit is contained in:
Ariel Abreu 2020-09-01 10:04:09 -04:00
parent 6632954bf7
commit c5a3ba64c7
No known key found for this signature in database
GPG Key ID: ECF8C2B9E8AD3E6B
4 changed files with 61 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#include "IORegistryEntry.h"
#include <stack>
#include <IOCFSerialize.h>
#include <IOKit/IOCFSerialize.h>
#include <cstring>
#include <vector>
#include <IOKit/IOKitLib.h>

View File

@ -19,7 +19,7 @@
#include "iokitd.h"
#include "ServiceRegistry.h"
#include <IOCFUnserialize.h>
#include <IOKit/IOCFUnserialize.h>
#include <CoreFoundation/CFString.h>
#include <IOKit/IOReturn.h>
#include <os/log.h>

View File

@ -142,6 +142,7 @@ kern_return_t _io_pm_assertion_set_properties
mach_msg_type_number_t propsCnt,
int *disableAppSleep,
int *enableAppSleep,
int *enTrIntensity,
int *return_code
)
{
@ -244,7 +245,7 @@ kern_return_t _io_pm_get_uuid
kern_return_t _io_pm_connection_create
(
mach_port_t server,
mach_port_t task_in,
audit_token_t token,
string_t name,
int interests,
uint32_t *connection_id,
@ -261,6 +262,7 @@ kern_return_t _io_pm_connection_create
kern_return_t _io_pm_connection_schedule_notification
(
mach_port_t server,
audit_token_t token,
uint32_t connection_id,
mach_port_t notify_port,
int disable,
@ -291,6 +293,7 @@ kern_return_t _io_pm_connection_release
kern_return_t _io_pm_connection_acknowledge_event
(
mach_port_t server,
audit_token_t token,
uint32_t connection_id,
int messageToken,
vm_offset_t options,
@ -370,6 +373,7 @@ kern_return_t _io_ps_release_pspowersource
kern_return_t _io_ps_copy_powersources_info
(
mach_port_t server,
audit_token_t token,
int pstype,
vm_offset_t *powersources,
mach_msg_type_number_t *powersourcesCnt,
@ -468,7 +472,6 @@ kern_return_t _io_pm_set_dw_linger_interval
mach_port_t server,
audit_token_t token,
uint32_t newInterval,
uint32_t *oldInterval,
int *return_val
)
{
@ -588,3 +591,17 @@ kern_return_t _io_pm_assertion_activity_aggregate
return KERN_NOT_SUPPORTED;
}
/* Routine io_pm_set_exception_limits */
kern_return_t _io_pm_set_exception_limits
(
mach_port_t server,
audit_token_t token,
vm_offset_t props,
mach_msg_type_number_t propsCnt,
int *return_code
)
{
STUB();
return KERN_NOT_SUPPORTED;
}

View File

@ -724,3 +724,43 @@ kern_return_t is_io_registry_entry_get_path_ool
STUB();
return KERN_NOT_SUPPORTED;
}
kern_return_t is_io_device_tree_entry_exists_with_name
(
mach_port_t master_port,
io_name_t name,
boolean_t *exists
)
{
STUB();
return KERN_NOT_SUPPORTED;
}
kern_return_t is_io_registry_entry_get_properties_bin_buf
(
mach_port_t registry_entry,
mach_vm_address_t buf,
mach_vm_size_t *bufsize,
io_buf_ptr_t *properties,
mach_msg_type_number_t *propertiesCnt
)
{
STUB();
return KERN_NOT_SUPPORTED;
}
kern_return_t is_io_registry_entry_get_property_bin_buf
(
mach_port_t registry_entry,
io_name_t plane,
io_name_t property_name,
uint32_t options,
mach_vm_address_t buf,
mach_vm_size_t *bufsize,
io_buf_ptr_t *properties,
mach_msg_type_number_t *propertiesCnt
)
{
STUB();
return KERN_NOT_SUPPORTED;
}