mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-14 18:25:52 +08:00
Update to FreeBSD head 2018-02-01
Git mirror commit d079ae0442af8fa3cfd6d7ede190d04e64a2c0d4. Update #3472.
This commit is contained in:
@@ -1243,10 +1243,8 @@ static void
|
||||
pcib_pcie_ab_timeout(void *arg)
|
||||
{
|
||||
struct pcib_softc *sc;
|
||||
device_t dev;
|
||||
|
||||
sc = arg;
|
||||
dev = sc->dev;
|
||||
mtx_assert(&Giant, MA_OWNED);
|
||||
if (sc->flags & PCIB_DETACH_PENDING) {
|
||||
sc->flags |= PCIB_DETACHING;
|
||||
@@ -1486,16 +1484,14 @@ pcib_cfg_save(struct pcib_softc *sc)
|
||||
static void
|
||||
pcib_cfg_restore(struct pcib_softc *sc)
|
||||
{
|
||||
device_t dev;
|
||||
#ifndef NEW_PCIB
|
||||
uint16_t command;
|
||||
#endif
|
||||
dev = sc->dev;
|
||||
|
||||
#ifdef NEW_PCIB
|
||||
pcib_write_windows(sc, WIN_IO | WIN_MEM | WIN_PMEM);
|
||||
#else
|
||||
command = pci_read_config(dev, PCIR_COMMAND, 2);
|
||||
command = pci_read_config(sc->dev, PCIR_COMMAND, 2);
|
||||
if (command & PCIM_CMD_PORTEN)
|
||||
pcib_set_io_decode(sc);
|
||||
if (command & PCIM_CMD_MEMEN)
|
||||
|
Reference in New Issue
Block a user