Date: Fri, 1 Apr 2011 16:33:03 GMT From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 190818 for review Message-ID: <201104011633.p31GX3OS075762@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@190818?ac=10 Change 190818 by jhb@jhb_jhbbsd on 2011/03/31 11:59:05 Cleanup. Affected files ... .. //depot/projects/pci/sys/dev/pci/pci.c#9 edit Differences ... ==== //depot/projects/pci/sys/dev/pci/pci.c#9 (text+ko) ==== @@ -4179,9 +4179,6 @@ void pci_cfg_restore(device_t dev, struct pci_devinfo *dinfo) { -#if 0 - int i; -#endif /* * Only do header type 0 devices. Type 1 devices are bridges, @@ -4203,11 +4200,6 @@ */ if (pci_get_powerstate(dev) != PCI_POWERSTATE_D0) pci_set_powerstate(dev, PCI_POWERSTATE_D0); -#if 0 - for (i = 0; i < dinfo->cfg.nummaps; i++) - pci_write_config(dev, PCIR_BAR(i), dinfo->cfg.bar[i], 4); - pci_write_config(dev, PCIR_BIOS, dinfo->cfg.bios, 4); -#endif pci_restore_bars(dev); pci_write_config(dev, PCIR_COMMAND, dinfo->cfg.cmdreg, 2); pci_write_config(dev, PCIR_INTLINE, dinfo->cfg.intline, 1); @@ -4229,9 +4221,6 @@ void pci_cfg_save(device_t dev, struct pci_devinfo *dinfo, int setstate) { -#if 0 - int i; -#endif uint32_t cls; int ps; @@ -4244,11 +4233,6 @@ */ if ((dinfo->cfg.hdrtype & PCIM_HDRTYPE) != PCIM_HDRTYPE_NORMAL) return; -#if 0 - for (i = 0; i < dinfo->cfg.nummaps; i++) - dinfo->cfg.bar[i] = pci_read_config(dev, PCIR_BAR(i), 4); - dinfo->cfg.bios = pci_read_config(dev, PCIR_BIOS, 4); -#endif /* * Some drivers apparently write to these registers w/o updating our
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104011633.p31GX3OS075762>