UcmTcpciDeviceInitialize - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// ucmtcpcidevice.h

NTSTATUS UcmTcpciDeviceInitialize(
  WDFDEVICE               WdfDevice,
  PUCMTCPCI_DEVICE_CONFIG Config
);
View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-ucmtcpcidevice-ucmtcpcideviceinitialize)

UcmTcpciDeviceInitialize function

Description

Initializes the USB Type-C Port Controller Interface framework extension (UcmTcpciCx).

Parameters

WdfDevice

A handle to a framework device object that the client driver received in the previous call to WdfDeviceCreate.

Config

A pointer to a caller-supplied UCMTCPCI_DEVICE_CONFIG structure that is initialized by calling UCMTCPCI_DEVICE_CONFIG_INIT. This value cannot be NULL.

Return value

(NTSTATUS) The method returns STATUS_SUCCESS if the operation succeeds. Otherwise, this method may return an appropriate NTSTATUS error code.

Return code Description
STATUS_INFO_LENGTH_MISMATCH Invalid size for the structure pointed to by Config. Must be size of UCMTCPCI_DEVICE_CONFIG.
STATUS_INVALID_DEVICE_STATE The Plug and Play state of the framework device object's is uninitialized. Call UcmTcpciDeviceInitialize within the driver's implementation of EVT_WDF_DRIVER_DEVICE_ADD.

Remarks

The client driver must call UcmTcpciDeviceInitialize within the driver's implementation of EVT_WDF_DRIVER_DEVICE_ADD. This method configures the framework device object and allocates resources required, registers for PnP events, and sets up I/O targets.

See also

WdfDeviceCreate