Bewerken

Delen via


PI8042_ISR_WRITE_PORT callback function (ntdd8042.h)

The PI8042_ISR_WRITE_PORT-typed callback routine writes data to an i8042 port. I8042prt provides this callback.

Syntax

PI8042_ISR_WRITE_PORT Pi8042IsrWritePort;

void Pi8042IsrWritePort(
  [in] PVOID Context,
  [in] UCHAR Value
)
{...}

Parameters

[in] Context

Pointer to the function device object that represents a keyboard or mouse device.

[in] Value

Specifies the data to write to an i8042 port.

Return value

None

Remarks

The PI8042_ISR_WRITE_PORT callback should only be called by a PI8042_KEYBOARD_ISR callback or a PI8042_MOUSE_ISR callback. I8042prt calls a vendor-supplied ISR callback for a device in the corresponding I8042prt device ISR.

I8042prt specifies the keyboard write port callback in the IsrWritePort member of the INTERNAL_I8042_HOOK_KEYBOARD structure that I8042prt uses with an IOCTL_INTERNAL_I8042_HOOK_KEYBOARD request.

I8042prt specifies the mouse write port callback in the IsrWritePort member of the INTERNAL_I8042_HOOK_MOUSE structure that I8042prt uses with an IOCTL_INTERNAL_I8042_HOOK_KEYBOARD request.

The PI8042_ISR_WRITE_PORT callback runs in kernel mode at the same IRQL as the I8042prt ISR for the device.

Requirements

Requirement Value
Target Platform Desktop
Header ntdd8042.h (include Ntdd8042.h)
IRQL See Remarks section.

See also

INTERNAL_I8042_HOOK_MOUSE

IOCTL_INTERNAL_I8042_HOOK_KEYBOARD

IOCTL_INTERNAL_I8042_HOOK_MOUSE