blob: 1146557858177021e9792ec47d7fdcfdce4ec413 [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
Uwe Hermannd453dd02010-10-18 00:00:57 +000012unsigned int pciexp_scan_bus(struct bus *bus, unsigned int min_devfn,
13 unsigned int max_devfn, unsigned int max);
Yinghai Lu13f1c2a2005-07-08 02:49:49 +000014unsigned int pciexp_scan_bridge(device_t dev, unsigned int max);
15
16extern struct device_operations default_pciexp_ops_bus;
17
Kenji Chen31c6e632014-10-04 01:14:44 +080018unsigned int pciexp_find_extended_cap(device_t dev, unsigned int cap);
Yinghai Lu13f1c2a2005-07-08 02:49:49 +000019#endif /* DEVICE_PCIEXP_H */