blob: f3df1a5f275d161304118cc7442d926899225191 [file] [log] [blame]
Yinghai Lu13f1c2a2005-07-08 02:49:49 +00001#ifndef DEVICE_PCIEXP_H
2#define DEVICE_PCIEXP_H
3/* (c) 2005 Linux Networx GPL see COPYING for details */
4
Duncan Laurie90dcdd42011-10-25 14:15:11 -07005enum aspm_type {
6 PCIE_ASPM_NONE = 0,
7 PCIE_ASPM_L0S = 1,
8 PCIE_ASPM_L1 = 2,
9 PCIE_ASPM_BOTH = 3,
10};
11
Kyösti Mälkkide271a82015-03-18 13:09:47 +020012void pciexp_scan_bus(struct bus *bus, unsigned int min_devfn,
13 unsigned int max_devfn);
14
Kyösti Mälkki580e7222015-03-19 21:04:23 +020015void pciexp_scan_bridge(device_t dev);
Yinghai Lu13f1c2a2005-07-08 02:49:49 +000016
17extern struct device_operations default_pciexp_ops_bus;
18
Kenji Chen31c6e632014-10-04 01:14:44 +080019unsigned int pciexp_find_extended_cap(device_t dev, unsigned int cap);
Yinghai Lu13f1c2a2005-07-08 02:49:49 +000020#endif /* DEVICE_PCIEXP_H */