Print this page
10805 Fix for 10687 can be improved

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/pcie_impl.h
          +++ new/usr/src/uts/common/sys/pcie_impl.h
↓ open down ↓ 487 lines elided ↑ open up ↑
 488  488          PCIE_DBG("%s:%d:(0x%x) %s(0x%x) 0x%x -> 0x%x\n", ddi_node_name(dip), \
 489  489              ddi_get_instance(dip), bus_p->bus_bdf, name, off, org, \
 490  490              PCIE_CAP_GET(sz, bus_p, off))
 491  491  #define PCIE_DBG_AER(dip, bus_p, name, sz, off, org) \
 492  492          PCIE_DBG("%s:%d:(0x%x) %s(0x%x) 0x%x -> 0x%x\n", ddi_node_name(dip), \
 493  493              ddi_get_instance(dip), bus_p->bus_bdf, name, off, org, \
 494  494              PCIE_AER_GET(sz, bus_p, off))
 495  495  
 496  496  #else   /* DEBUG */
 497  497  
 498      -#define PCIE_DBG_CFG(...)
 499      -#define PCIE_DBG(...)
 500      -#define PCIE_ARI_DBG(...)
 501      -#define PCIE_DBG_CAP(...)
 502      -#define PCIE_DBG_AER(...)
      498 +#define PCIE_DBG_CFG(...)       (void)(0)
      499 +#define PCIE_DBG(...)           (void)(0)
      500 +#define PCIE_ARI_DBG(...)       (void)(0)
      501 +#define PCIE_DBG_CAP(...)       (void)(0)
      502 +#define PCIE_DBG_AER(...)       (void)(0)
 503  503  
 504  504  #endif  /* DEBUG */
 505  505  
 506  506  /* PCIe Friendly Functions */
 507  507  extern int pcie_init(dev_info_t *dip, caddr_t arg);
 508  508  extern int pcie_uninit(dev_info_t *dip);
 509  509  extern int pcie_hpintr_enable(dev_info_t *dip);
 510  510  extern int pcie_hpintr_disable(dev_info_t *dip);
 511  511  extern int pcie_intr(dev_info_t *dip);
 512  512  extern int pcie_open(dev_info_t *dip, dev_t *devp, int flags, int otyp,
↓ open down ↓ 114 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX