I would like to request sponsor for CR6482159, that happened
while attaching cardbus driver.

I think following two files should be fixed.


(1) uts/common/sys/pci.h

------- pci.h -------
114c114
< #define       PCI_CBUS_RESERVED1      0x14    /* Reserved, 2 bytes */
---
> #define       PCI_CBUS_CAP_PTR        0x14    /* Capability pointer, 1 byte */


(2) uts/common/io/pci_cap.c

------- pci_cap.c -------
128a129
>       uint8_t header;
136c137,159
<       for (base = pci_config_get8(h, PCI_CONF_CAP_PTR); base;
---
>       header = pci_config_get8(h, PCI_CONF_HEADER);
>
>       switch (header & PCI_HEADER_TYPE_M) {
>       case PCI_HEADER_ZERO:
>               base = PCI_CONF_CAP_PTR;
>               break;
>
>       case PCI_HEADER_PPB:
>               base = PCI_BCNF_CAP_PTR;
>               break;
>
>       case PCI_HEADER_CARDBUS:
>               base = PCI_CBUS_CAP_PTR;
>               break;
>
>       default:
>               cmn_err(CE_WARN, "%s: unexpected pci header type:%x",
>                       __func__,
>                       pci_config_get8(h, PCI_CONF_HEADER));
>               return (DDI_FAILURE);
>       }
>
>       for (base = pci_config_get8(h, base); base;
146,147d168
<
<


Thanks in advance.

Masa Murayama
 
 
This message posted from opensolaris.org

Reply via email to