Expose pci_cfg_safe/restore for subclasses of pci to use.
This commit is contained in:
parent
f7e7502841
commit
5c73f481a5
@ -91,8 +91,6 @@ static int pci_modevent(module_t mod, int what, void *arg);
|
||||
static void pci_hdrtypedata(device_t pcib, int b, int s, int f,
|
||||
pcicfgregs *cfg);
|
||||
static void pci_read_extcap(device_t pcib, pcicfgregs *cfg);
|
||||
static void pci_cfg_restore(device_t, struct pci_devinfo *);
|
||||
static void pci_cfg_save(device_t, struct pci_devinfo *, int);
|
||||
|
||||
static device_method_t pci_methods[] = {
|
||||
/* Device interface */
|
||||
@ -1849,7 +1847,7 @@ pci_modevent(module_t mod, int what, void *arg)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
pci_cfg_restore(device_t dev, struct pci_devinfo *dinfo)
|
||||
{
|
||||
int i;
|
||||
@ -1894,7 +1892,7 @@ pci_cfg_restore(device_t dev, struct pci_devinfo *dinfo)
|
||||
pci_write_config(dev, PCIR_REVID, dinfo->cfg.revid, 1);
|
||||
}
|
||||
|
||||
static void
|
||||
void
|
||||
pci_cfg_save(device_t dev, struct pci_devinfo *dinfo, int setstate)
|
||||
{
|
||||
int i;
|
||||
|
@ -76,4 +76,6 @@ int pci_child_pnpinfo_str_method(device_t cbdev, device_t child,
|
||||
int pci_assign_interrupt_method(device_t dev, device_t child);
|
||||
int pci_resume(device_t dev);
|
||||
int pci_suspend(device_t dev);
|
||||
void pci_cfg_restore(device_t, struct pci_devinfo *);
|
||||
void pci_cfg_save(device_t, struct pci_devinfo *, int);
|
||||
#endif /* _PCI_PRIVATE_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user