diff options
author | Warner Losh <imp@FreeBSD.org> | 2017-02-25 06:11:59 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2017-02-25 06:11:59 +0000 |
commit | 28586889c23b86d81983c35c5754f55f0f4b877d (patch) | |
tree | 48b0904786141ce064bfe59fa128c875b7561884 /sys/sparc64/pci | |
parent | 8a1926c5c1691c2d1ff5a31b3843aa2e50588016 (diff) | |
download | src-28586889c23b86d81983c35c5754f55f0f4b877d.tar.gz src-28586889c23b86d81983c35c5754f55f0f4b877d.zip |
Convert PCIe Hot Plug to using pci_request_feature
Convert PCIe hot plug support over to asking the firmware, if any, for
permission to use the HotPlug hardware. Implement pci_request_feature
for ACPI. All other host pci connections to allowing all valid feature
requests.
Sponsored by: Netflix
Notes
Notes:
svn path=/head/; revision=314250
Diffstat (limited to 'sys/sparc64/pci')
-rw-r--r-- | sys/sparc64/pci/apb.c | 1 | ||||
-rw-r--r-- | sys/sparc64/pci/fire.c | 1 | ||||
-rw-r--r-- | sys/sparc64/pci/ofw_pcib.c | 1 | ||||
-rw-r--r-- | sys/sparc64/pci/psycho.c | 1 | ||||
-rw-r--r-- | sys/sparc64/pci/schizo.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/sys/sparc64/pci/apb.c b/sys/sparc64/pci/apb.c index 55f131382c33..23435a9ef1e7 100644 --- a/sys/sparc64/pci/apb.c +++ b/sys/sparc64/pci/apb.c @@ -92,6 +92,7 @@ static device_method_t apb_methods[] = { /* pcib interface */ DEVMETHOD(pcib_route_interrupt, ofw_pcib_gen_route_interrupt), + DEVMETHOD(pcib_request_feature, pcib_request_feature_allow), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, ofw_pcib_gen_get_node), diff --git a/sys/sparc64/pci/fire.c b/sys/sparc64/pci/fire.c index 26925b81ac94..54cebbf419ad 100644 --- a/sys/sparc64/pci/fire.c +++ b/sys/sparc64/pci/fire.c @@ -152,6 +152,7 @@ static device_method_t fire_methods[] = { DEVMETHOD(pcib_alloc_msix, fire_alloc_msix), DEVMETHOD(pcib_release_msix, fire_release_msix), DEVMETHOD(pcib_map_msi, fire_map_msi), + DEVMETHOD(pcib_request_feature, pcib_request_feature_allow), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, ofw_pci_get_node), diff --git a/sys/sparc64/pci/ofw_pcib.c b/sys/sparc64/pci/ofw_pcib.c index 77c2c35109f7..de6ca714cb65 100644 --- a/sys/sparc64/pci/ofw_pcib.c +++ b/sys/sparc64/pci/ofw_pcib.c @@ -72,6 +72,7 @@ static device_method_t ofw_pcib_methods[] = { /* pcib interface */ DEVMETHOD(pcib_route_interrupt, ofw_pcib_gen_route_interrupt), + DEVMETHOD(pcib_request_feature, pcib_request_feature_allow), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, ofw_pcib_gen_get_node), diff --git a/sys/sparc64/pci/psycho.c b/sys/sparc64/pci/psycho.c index 496df96895d4..6f54594c20d3 100644 --- a/sys/sparc64/pci/psycho.c +++ b/sys/sparc64/pci/psycho.c @@ -141,6 +141,7 @@ static device_method_t psycho_methods[] = { DEVMETHOD(pcib_read_config, psycho_read_config), DEVMETHOD(pcib_write_config, psycho_write_config), DEVMETHOD(pcib_route_interrupt, psycho_route_interrupt), + DEVMETHOD(pcib_request_feature, pcib_request_feature_allow), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, ofw_pci_get_node), diff --git a/sys/sparc64/pci/schizo.c b/sys/sparc64/pci/schizo.c index a96155bd94bf..e4a745ad5fcb 100644 --- a/sys/sparc64/pci/schizo.c +++ b/sys/sparc64/pci/schizo.c @@ -138,6 +138,7 @@ static device_method_t schizo_methods[] = { DEVMETHOD(pcib_read_config, schizo_read_config), DEVMETHOD(pcib_write_config, schizo_write_config), DEVMETHOD(pcib_route_interrupt, schizo_route_interrupt), + DEVMETHOD(pcib_request_feature, pcib_request_feature_allow), /* ofw_bus interface */ DEVMETHOD(ofw_bus_get_node, ofw_pci_get_node), |