Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 968 of file miniport_dmus.cpp.
Referenced by InitMPU(), ResetHardware(), and SynchronizedDMusMPUWrite().
{ DPRINT("WriteMPU"); NTSTATUS ntStatus = STATUS_IO_DEVICE_ERROR; if (!PortBase) { DPRINT("O: PortBase is zero\n"); return ntStatus; } PUCHAR deviceAddr = PortBase + MPU401_REG_DATA; if (IsCommand) { deviceAddr = PortBase + MPU401_REG_COMMAND; } ULONGLONG startTime = PcGetTimeInterval(0); while (PcGetTimeInterval(startTime) < GTI_MILLISECONDS(50)) { UCHAR status = READ_PORT_UCHAR(PortBase + MPU401_REG_STATUS); if (UartFifoOkForWrite(status)) // Is this a good time to write data? { // yep (Jon comment) WRITE_PORT_UCHAR(deviceAddr,Value); DPRINT("WriteMPU emitted 0x%02x",Value); ntStatus = STATUS_SUCCESS; break; } } return ntStatus; }