openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/pdbg/2.2+gitAUTOINC+dbbb35af95-r0/git/libpdbg/xbus.c
static uint64_t xbus_translate(struct xbus* xbus, uint64_t addr)
{
    uint64_t ring = (addr >> 10) & 0xf;

    if (ring >= 0x3 && ring <= 0x5)
        addr = SETFIELD(PPC_BITMASK(50, 53), addr, 0x3 + xbus->ring_id);
    else if (ring >= 0x6 && ring <= 8)
        addr = SETFIELD(PPC_BITMASK(50, 53), addr, 0x6 + xbus->ring_id);

    return addr;
}
/* XBus addressing is more complicated. This comes from p9_scominfo.C
 * in the ekb. */
XBus addressing is more complicated. This comes from p9_scominfo.C
in the ekb.
XBus addressing is more complicated . This comes from p9_scominfo . C in the ekb .
static uint64_t xbus_translate(struct xbus* xbus, uint64_t addr)
{
    uint64_t ring = (addr >> 10) & 0xf;
    if (ring >= 0x3 && ring <= 0x5)
        addr = SETFIELD(PPC_BITMASK(50, 53), addr, 0x3 + xbus->ring_id);
    else if (ring >= 0x6 && ring <= 8)
        addr = SETFIELD(PPC_BITMASK(50, 53), addr, 0x6 + xbus->ring_id);
    return addr;
}
static uint64_t xbus_translate ( struct xbus * xbus , uint64_t addr ) { uint64_t ring = ( addr >> 10 ) & 0xf ; if ( ring >= 0x3 && ring <= 0x5 ) addr = SETFIELD ( PPC_BITMASK ( 50 , 53 ) , addr , 0x3 + xbus -> ring_id ) ; else if ( ring >= 0x6 && ring <= 8 ) addr = SETFIELD ( PPC_BITMASK ( 50 , 53 ) , addr , 0x6 + xbus -> ring_id ) ; return addr ; }
XBus addressing is more complicated.
XBus addressing is more complicated .