third_party/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
/**
 * Read handler for Receive Address registers.
 *
 * @returns VBox status code.
 *
 * @param   pThis       The device state structure.
 * @param   offset      Register offset in memory-mapped frame.
 * @param   index       Register index in register array.
 * @thread  EMT
 */
Read handler for Receive Address registers.
@returns VBox status code.

@param   pThis       The device state structure.
@param   offset      Register offset in memory-mapped frame.
@param   index       Register index in register array.
@thread  EMT
Read handler for Receive Address registers . @returns VBox status code . @param pThis The device state structure . @param offset Register offset in memory - mapped frame . @param index Register index in register array . @thread EMT
static int e1kRegReadRA(PE1KSTATE pThis, uint32_t offset, uint32_t index, uint32_t *pu32Value)
{
    AssertReturn(offset - g_aE1kRegMap[index].offset< sizeof(pThis->aRecAddr.au32), VERR_DEV_IO_ERROR);
    *pu32Value = pThis->aRecAddr.au32[(offset - g_aE1kRegMap[index].offset)/sizeof(pThis->aRecAddr.au32[0])];
    return VINF_SUCCESS;
}
static int e1kRegReadRA ( PE1KSTATE pThis , uint32_t offset , uint32_t index , uint32_t * pu32Value ) { AssertReturn ( offset - g_aE1kRegMap [ index ] . offset < sizeof ( pThis -> aRecAddr . au32 ) , VERR_DEV_IO_ERROR ) ; * pu32Value = pThis -> aRecAddr . au32 [ ( offset - g_aE1kRegMap [ index ] . offset ) / sizeof ( pThis -> aRecAddr . au32 [ 0 ] ) ] ; return VINF_SUCCESS ; }
Read handler for Receive Address registers.
Read handler for Receive Address registers .