third_party/virtualbox/src/VBox/Devices/Network/DevE1000.cpp
/**
 * Dump receive descriptor to debug log.
 *
 * @param   pThis       The device state structure.
 * @param   pDesc       Pointer to the descriptor.
 * @thread  E1000_RX
 */
Dump receive descriptor to debug log.
@param   pThis       The device state structure.
@param   pDesc       Pointer to the descriptor.
Dump receive descriptor to debug log . @param pThis The device state structure . @param pDesc Pointer to the descriptor .
static void e1kPrintRDesc(PE1KSTATE pThis, E1KRXDESC *pDesc)
{
    RT_NOREF2(pThis, pDesc);
    E1kLog2(("%s <-- Receive Descriptor (%d bytes):\n", pThis->szPrf, pDesc->u16Length));
    E1kLog2(("        Address=%16LX Length=%04X Csum=%04X\n",
             pDesc->u64BufAddr, pDesc->u16Length, pDesc->u16Checksum));
    E1kLog2(("        STA: %s %s %s %s %s %s %s ERR: %s %s %s %s SPECIAL: %s VLAN=%03x PRI=%x\n",
             pDesc->status.fPIF ? "PIF" : "pif",
             pDesc->status.fIPCS ? "IPCS" : "ipcs",
             pDesc->status.fTCPCS ? "TCPCS" : "tcpcs",
             pDesc->status.fVP ? "VP" : "vp",
             pDesc->status.fIXSM ? "IXSM" : "ixsm",
             pDesc->status.fEOP ? "EOP" : "eop",
             pDesc->status.fDD ? "DD" : "dd",
             pDesc->status.fRXE ? "RXE" : "rxe",
             pDesc->status.fIPE ? "IPE" : "ipe",
             pDesc->status.fTCPE ? "TCPE" : "tcpe",
             pDesc->status.fCE ? "CE" : "ce",
             E1K_SPEC_CFI(pDesc->status.u16Special) ? "CFI" :"cfi",
             E1K_SPEC_VLAN(pDesc->status.u16Special),
             E1K_SPEC_PRI(pDesc->status.u16Special)));
}
static void e1kPrintRDesc ( PE1KSTATE pThis , E1KRXDESC * pDesc ) { RT_NOREF2 ( pThis , pDesc ) ; E1kLog2 ( ( " \n " , pThis -> szPrf , pDesc -> u16Length ) ) ; E1kLog2 ( ( " \n " , pDesc -> u64BufAddr , pDesc -> u16Length , pDesc -> u16Checksum ) ) ; E1kLog2 ( ( " \n " , pDesc -> status . fPIF ? " " : " " , pDesc -> status . fIPCS ? " " : " " , pDesc -> status . fTCPCS ? " " : " " , pDesc -> status . fVP ? " " : " " , pDesc -> status . fIXSM ? " " : " " , pDesc -> status . fEOP ? " " : " " , pDesc -> status . fDD ? " " : " " , pDesc -> status . fRXE ? " " : " " , pDesc -> status . fIPE ? " " : " " , pDesc -> status . fTCPE ? " " : " " , pDesc -> status . fCE ? " " : " " , E1K_SPEC_CFI ( pDesc -> status . u16Special ) ? " " : " " , E1K_SPEC_VLAN ( pDesc -> status . u16Special ) , E1K_SPEC_PRI ( pDesc -> status . u16Special ) ) ) ; }
Dump receive descriptor to debug log.
Dump receive descriptor to debug log .