changeset 2739:8469a70b9f38

6348180 pci_check_pciex() is no longer used (removing dead code)
author rs90106
date Thu, 14 Sep 2006 23:35:01 -0700
parents 06640e799bdf
children d1f696f4e011
files usr/src/uts/common/io/pci_intr_lib.c usr/src/uts/common/sys/pci_intr_lib.h
diffstat 2 files changed, 0 insertions(+), 35 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/io/pci_intr_lib.c	Thu Sep 14 21:10:39 2006 -0700
+++ b/usr/src/uts/common/io/pci_intr_lib.c	Thu Sep 14 23:35:01 2006 -0700
@@ -48,39 +48,6 @@
  * Library utility functions
  */
 
-
-/*
- * pci_check_pciex:
- *
- * check whether the device has PCI-E capability
- */
-int
-pci_check_pciex(dev_info_t *dip)
-{
-	ddi_acc_handle_t h;
-	ushort_t cap_off;
-
-	DDI_INTR_NEXDBG((CE_CONT, "pci_check_pciex: dip: 0x%p, driver: %s, "
-	    "binding: %s, nodename: %s\n", (void *)dip, ddi_driver_name(dip),
-	    ddi_binding_name(dip), ddi_node_name(dip)));
-
-	if (pci_config_setup(dip, &h) != DDI_SUCCESS) {
-		DDI_INTR_NEXDBG((CE_CONT, "pci_check_pciex: "
-		    "pci_config_setup() failed\n"));
-		return (DDI_FAILURE);
-	}
-
-	if ((PCI_CAP_LOCATE(h, PCI_CAP_ID_PCI_E, &cap_off))
-			== DDI_SUCCESS) {
-		pci_config_teardown(&h);
-		return (DDI_SUCCESS);
-	}
-
-	pci_config_teardown(&h);
-	return (DDI_FAILURE);
-}
-
-
 /*
  * pci_get_msi_ctrl:
  *
--- a/usr/src/uts/common/sys/pci_intr_lib.h	Thu Sep 14 21:10:39 2006 -0700
+++ b/usr/src/uts/common/sys/pci_intr_lib.h	Thu Sep 14 23:35:01 2006 -0700
@@ -32,8 +32,6 @@
 extern "C" {
 #endif
 
-extern	int	pci_check_pciex(dev_info_t *dip);
-
 extern	int	pci_msi_get_cap(dev_info_t *rdip, int type, int *flagsp);
 extern	int	pci_msi_configure(dev_info_t *rdip, int type, int count,
 		    int inum, uint64_t addr, uint64_t data);