FreeBSD/sys/dev/bxe/bxe.c
/*
 * These indirect read and write routines are only during init.
 * The locking is handled by the MCP.
 */
These indirect read and write routines are only during init.
The locking is handled by the MCP.
These indirect read and write routines are only during init . The locking is handled by the MCP .
void
bxe_reg_wr_ind(struct bxe_softc *sc,
               uint32_t         addr,
               uint32_t         val)
{
    pci_write_config(sc->dev, PCICFG_GRC_ADDRESS, addr, 4);
    pci_write_config(sc->dev, PCICFG_GRC_DATA, val, 4);
    pci_write_config(sc->dev, PCICFG_GRC_ADDRESS, 0, 4);
}
void bxe_reg_wr_ind ( struct bxe_softc * sc , uint32_t addr , uint32_t val ) { pci_write_config ( sc -> dev , PCICFG_GRC_ADDRESS , addr , 4 ) ; pci_write_config ( sc -> dev , PCICFG_GRC_DATA , val , 4 ) ; pci_write_config ( sc -> dev , PCICFG_GRC_ADDRESS , 0 , 4 ) ; }
These indirect read and write routines are only during init.
These indirect read and write routines are only during init .