third_party/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
/**
 * Write handler for Receive Delay Timer register.
 *
 * @param   pThis       The device state structure.
 * @param   offset      Register offset in memory-mapped frame.
 * @param   index       Register index in register array.
 * @param   value       The value to store.
 * @param   mask        Used to implement partial writes (8 and 16-bit).
 * @thread  EMT
 */
Write handler for Receive Delay Timer register.
@param   pThis       The device state structure.
@param   offset      Register offset in memory-mapped frame.
@param   index       Register index in register array.
@param   value       The value to store.
@param   mask        Used to implement partial writes (8 and 16-bit).
@thread  EMT
Write handler for Receive Delay Timer register . @param pThis The device state structure . @param offset Register offset in memory - mapped frame . @param index Register index in register array . @param value The value to store . @param mask Used to implement partial writes ( 8 and 16 - bit ) . @thread EMT
static int e1kRegWriteRDTR(PE1KSTATE pThis, uint32_t offset, uint32_t index, uint32_t value)
{
    e1kRegWriteDefault(pThis, offset, index, value);
    if (value & RDTR_FPD)
    {
#ifdef E1K_USE_RX_TIMERS
        e1kCancelTimer(pThis, pThis->CTX_SUFF(pRIDTimer));
        e1kCancelTimer(pThis, pThis->CTX_SUFF(pRADTimer));
#endif
        E1K_INC_ISTAT_CNT(pThis->uStatIntRDTR);
        return e1kRaiseInterrupt(pThis, VINF_IOM_R3_MMIO_WRITE, ICR_RXT0);
    }
    return VINF_SUCCESS;
}
static int e1kRegWriteRDTR ( PE1KSTATE pThis , uint32_t offset , uint32_t index , uint32_t value ) { e1kRegWriteDefault ( pThis , offset , index , value ) ; if ( value & RDTR_FPD ) { #ifdef E1K_USE_RX_TIMERS e1kCancelTimer ( pThis , pThis -> CTX_SUFF ( pRIDTimer ) ) ; e1kCancelTimer ( pThis , pThis -> CTX_SUFF ( pRADTimer ) ) ; #endif E1K_INC_ISTAT_CNT ( pThis -> uStatIntRDTR ) ; return e1kRaiseInterrupt ( pThis , VINF_IOM_R3_MMIO_WRITE , ICR_RXT0 ) ; } return VINF_SUCCESS ; }
Write handler for Receive Delay Timer register.
Write handler for Receive Delay Timer register .
/* Flush requested, cancel both timers and raise interrupt */