ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

BOOLEAN i8042Write ( IN PPORT_DEVICE_EXTENSION  DeviceExtension,
IN PUCHAR  addr,
IN UCHAR  data 
)

Definition at line 197 of file readwrite.c.

Referenced by i8042BasicDetect(), i8042ChangeMode(), i8042DetectMouse(), i8042IsrWritePort(), i8042MouInitialize(), i8042PacketWrite(), and i8042SynchWritePort().

{
    ULONG Counter;

    ASSERT(addr);
    ASSERT(DeviceExtension->ControlPort != NULL);

    Counter = DeviceExtension->Settings.PollingIterations;

    while ((KBD_IBF & READ_PORT_UCHAR(DeviceExtension->ControlPort)) &&
           (Counter--))
    {
        KeStallExecutionProcessor(50);
    }

    if (Counter)
    {
        WRITE_PORT_UCHAR(addr, data);
        INFO_(I8042PRT, "Sent 0x%x to port %p\n", data, addr);
        return TRUE;
    }
    return FALSE;
}

Generated on Thu May 24 2012 05:24:04 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.