#include <IOKit/usb/IOUSBHostControllerInterfaceHelpers.h>

IOKit/usb/IOUSBHostControllerInterfaceHelpers.h Kernel.framework

12 functions · 3 macros

macroIOUSBHostControllerInterfaceHelpers_h

#define IOUSBHostControllerInterfaceHelpers_h 

macroIOUSBHostCIMessageTypeFromMessage

#define IOUSBHostCIMessageTypeFromMessage(message) ((IOUSBHostCIMessageType)(((message)->control & IOUSBHostCIMessageControlType) >> IOUSBHostCIMessageControlTypePhase))

macroIOUSBHostCIMessageStatusFromMessage

#define IOUSBHostCIMessageStatusFromMessage(message) ((IOUSBHostCIMessageStatus)(((message)->control & IOUSBHostCIMessageControlStatus) >> IOUSBHostCIMessageControlStatusPhase))

functionIOUSBHostCIMessageStatusToIOReturn

IOReturn IOUSBHostCIMessageStatusToIOReturn(IOUSBHostCIMessageStatus status)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Converts an IOUSBHostCIMessageStatus code, as carried in the status field of a USB host controller interface (USBDriverKit controller) message, to the corresponding IOReturn value (e.g. IOUSBHostCIMessageStatusSuccess to kIOReturnSuccess). Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIMessageStatusFromIOReturn

IOUSBHostCIMessageStatus IOUSBHostCIMessageStatusFromIOReturn(IOReturn status)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Converts an IOReturn value to the closest IOUSBHostCIMessageStatus code for populating the status field of a USB host controller interface message; the inverse of IOUSBHostCIMessageStatusToIOReturn. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCILinkStateEnabled

bool IOUSBHostCILinkStateEnabled(const IOUSBHostCILinkState linkState)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns true if the given IOUSBHostCILinkState value represents a state in which the port's link is enabled and can carry traffic, false for states such as IOUSBHostCILinkStateDisabled. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIMessageTypeToString

const char* IOUSBHostCIMessageTypeToString(IOUSBHostCIMessageType type)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIMessageType value, for logging and debugging of USB host controller interface messages. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIMessageStatusToString

const char* IOUSBHostCIMessageStatusToString(IOUSBHostCIMessageStatus status)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIMessageStatus value, for logging and debugging of USB host controller interface message status codes. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCILinkStateToString

const char* IOUSBHostCILinkStateToString(IOUSBHostCILinkState linkState)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCILinkState value, for logging and debugging of USB port link states (U0-U3, Disabled, RxDetect, Polling, ...). Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIDeviceSpeedToString

const char* IOUSBHostCIDeviceSpeedToString(IOUSBHostCIDeviceSpeed speed)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIDeviceSpeed value, for logging and debugging of connected-device speeds (full, low, high, super, ...). Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIExceptionTypeToString

const char* IOUSBHostCIExceptionTypeToString(IOUSBHostCIExceptionType exceptionType)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIExceptionType value, for logging and debugging of controller interface exception types. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIControllerStateToString

const char* IOUSBHostCIControllerStateToString(IOUSBHostCIControllerState controllerState)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIControllerState value, for logging and debugging of controller states. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIPortStateToString

const char* IOUSBHostCIPortStateToString(IOUSBHostCIPortState portState)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIPortState value, for logging and debugging of port states. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIDeviceStateToString

const char* IOUSBHostCIDeviceStateToString(IOUSBHostCIDeviceState deviceState)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIDeviceState value, for logging and debugging of device states. Implemented in IOUSBHostFamily, not xnu.

functionIOUSBHostCIEndpointStateToString

const char* IOUSBHostCIEndpointStateToString(IOUSBHostCIEndpointState endpointState)
claude-fable-5, 2026-08-24 · not from Apple sources · verified against xnu SDK Kernel.framework IOKit/usb/IOUSBHostControllerInterfaceHelpers.h and IOUSBHostControllerInterfaceDefinitions.h (IOUSBHostFamily; declaration only)
Returns a constant string naming the given IOUSBHostCIEndpointState value, for logging and debugging of endpoint states. Implemented in IOUSBHostFamily, not xnu.