FreeBSD/sys/dev/pci/pci_pci.c
/*
 * Restore previous I/O decode.
 */
Restore previous I/O decode.
Restore previous I / O decode .
static void
pcib_set_io_decode(struct pcib_softc *sc)
{
	device_t	dev;
	uint32_t	iohi;
	dev = sc->dev;
	iohi = sc->iobase >> 16;
	if (iohi > 0)
		pci_write_config(dev, PCIR_IOBASEH_1, iohi, 2);
	pci_write_config(dev, PCIR_IOBASEL_1, sc->iobase >> 8, 1);
	iohi = sc->iolimit >> 16;
	if (iohi > 0)
		pci_write_config(dev, PCIR_IOLIMITH_1, iohi, 2);
	pci_write_config(dev, PCIR_IOLIMITL_1, sc->iolimit >> 8, 1);
}
static void pcib_set_io_decode ( struct pcib_softc * sc ) { device_t dev ; uint32_t iohi ; dev = sc -> dev ; iohi = sc -> iobase >> 16 ; if ( iohi > 0 ) pci_write_config ( dev , PCIR_IOBASEH_1 , iohi , 2 ) ; pci_write_config ( dev , PCIR_IOBASEL_1 , sc -> iobase >> 8 , 1 ) ; iohi = sc -> iolimit >> 16 ; if ( iohi > 0 ) pci_write_config ( dev , PCIR_IOLIMITH_1 , iohi , 2 ) ; pci_write_config ( dev , PCIR_IOLIMITL_1 , sc -> iolimit >> 8 , 1 ) ; }
Restore previous I/O decode.
Restore previous I / O decode .