src/dev/i2c/bus.cc
/**
 * Reads will always be to SB_CONTROLS. The kernel wants to know the state
 * of sda and scl.
 */
Reads will always be to SB_CONTROLS. The kernel wants to know the state
of sda and scl.
Reads will always be to SB_CONTROLS . The kernel wants to know the state of sda and scl .
Tick
I2CBus::read(PacketPtr pkt)
{
    assert(pkt->getAddr() == pioAddr + SB_CONTROLS);
    pkt->setRaw<uint8_t>((sda << 1) | scl);
    pkt->makeAtomicResponse();
    return pioDelay;
}
Tick I2CBus :: read ( PacketPtr pkt ) { assert ( pkt -> getAddr ( ) == pioAddr + SB_CONTROLS ) ; pkt -> setRaw < uint8_t > ( ( sda << 1 ) | scl ) ; pkt -> makeAtomicResponse ( ) ; return pioDelay ; }
Reads will always be to SB_CONTROLS.
Reads will always be to SB_CONTROLS .