PUSB_BUSIFFN_QUERY_CONTROLLER_TYPE callback function

The QueryControllerType routine gets information about the USB host controller to which the USB device is attached.

Syntax

PUSB_BUSIFFN_QUERY_CONTROLLER_TYPE PusbBusiffnQueryControllerType;

NTSTATUS PusbBusiffnQueryControllerType(
  PVOID Arg1,
  PULONG Arg2,
  PUSHORT Arg3,
  PUSHORT Arg4,
  PUCHAR Arg5,
  PUCHAR Arg6,
  PUCHAR Arg7,
  PUCHAR Arg8
)
{...}

Parameters

Arg1

Arg2

Arg3

Arg4

Arg5

Arg6

Arg7

Arg8

Return value

Returns STATUS_SUCCESS on success, and the appropriate error code on failure.

Remarks

PciClass is typically set to PCI_CLASS_SERIAL_BUS_CTLR (0x0C).

PciSubClass is typically set to PCI_SUBCLASS_SB_USB (0x03).

PciProgif is typically set to one of the following values:

0x00 - Universal Host Controller Interface (UHCI)

0x10 - Open Host Controller Interface (OHCI)

0x20 - Enhanced Host Controller Interface (EHCI)

The function definition that is provided on this reference page is an example function whose parameters are just placeholder names. The actual prototype of the function is declared in usbbusif.h as follows:

typedef NTSTATUS
  (USB_BUSIFFN *PUSB_BUSIFFN_QUERY_CONTROLLER_TYPE) (
    IN PVOID,
    OUT PULONG,
    OUT PUSHORT,
    OUT PUSHORT,
    OUT PUCHAR,
    OUT PUCHAR,
    OUT PUCHAR,
    OUT PUCHAR

Requirements

   
Target Platform Desktop
Header usbbusif.h (include Usbbusif.h)
IRQL < = DISPATCH_LEVEL

See also

USB_BUS_INTERFACE_USBDI_V3