src/dev/net/ns_gige.cc
/**
 * This is to write to the PCI general configuration registers
 */
This is to write to the PCI general configuration registers
This is to write to the PCI general configuration registers
Tick
NSGigE::writeConfig(PacketPtr pkt)
{
    int offset = pkt->getAddr() & PCI_CONFIG_SIZE;
    if (offset < PCI_DEVICE_SPECIFIC)
        PciDevice::writeConfig(pkt);
    else
        panic("Device specific PCI config space not implemented!\n");
    switch (offset) {
      case PCI_COMMAND:
        if (config.data[offset] & PCI_CMD_IOSE)
            ioEnable = true;
        else
            ioEnable = false;
        break;
    }
    return configDelay;
}
Tick NSGigE :: writeConfig ( PacketPtr pkt ) { int offset = pkt -> getAddr ( ) & PCI_CONFIG_SIZE ; if ( offset < PCI_DEVICE_SPECIFIC ) PciDevice :: writeConfig ( pkt ) ; else panic ( " \n " ) ; switch ( offset ) { case PCI_COMMAND : if ( config . data [ offset ] & PCI_CMD_IOSE ) ioEnable = true ; else ioEnable = false ; break ; } return configDelay ; }
This is to write to the PCI general configuration registers
This is to write to the PCI general configuration registers
// seems to work fine without all these PCI settings, but i // put in the IO to double check, an assertion will fail if we // need to properly implement it