third_party/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
/**
 * Write handler for Receive Address registers.
 *
 * @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.
 * @thread  EMT
 */
Write handler for Receive Address registers.
@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.
@thread  EMT
Write handler for Receive Address registers . @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 . @thread EMT
static int e1kRegWriteRA(PE1KSTATE pThis, uint32_t offset, uint32_t index, uint32_t value)
{
    AssertReturn(offset - g_aE1kRegMap[index].offset < sizeof(pThis->aRecAddr.au32), VERR_DEV_IO_ERROR);
    pThis->aRecAddr.au32[(offset - g_aE1kRegMap[index].offset)/sizeof(pThis->aRecAddr.au32[0])] = value;
    return VINF_SUCCESS;
}
static int e1kRegWriteRA ( PE1KSTATE pThis , uint32_t offset , uint32_t index , uint32_t value ) { AssertReturn ( offset - g_aE1kRegMap [ index ] . offset < sizeof ( pThis -> aRecAddr . au32 ) , VERR_DEV_IO_ERROR ) ; pThis -> aRecAddr . au32 [ ( offset - g_aE1kRegMap [ index ] . offset ) / sizeof ( pThis -> aRecAddr . au32 [ 0 ] ) ] = value ; return VINF_SUCCESS ; }
Write handler for Receive Address registers.
Write handler for Receive Address registers .