Print this page
7127  remove -Wno-missing-braces from Makefile.uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/pcifm.c
          +++ new/usr/src/uts/common/os/pcifm.c
↓ open down ↓ 35 lines elided ↑ open up ↑
  36   36  #include <sys/pci_impl.h>
  37   37  #include <sys/epm.h>
  38   38  #include <sys/pcifm.h>
  39   39  
  40   40  #define PCIX_ECC_VER_CHECK(x)   (((x) == PCI_PCIX_VER_1) ||\
  41   41                                  ((x) == PCI_PCIX_VER_2))
  42   42  
  43   43  errorq_t *pci_target_queue = NULL;
  44   44  
  45   45  pci_fm_err_t pci_err_tbl[] = {
  46      -        PCI_DET_PERR,   PCI_STAT_PERROR,        NULL,           DDI_FM_UNKNOWN,
  47      -        PCI_MDPE,       PCI_STAT_S_PERROR,      PCI_TARG_MDPE,  DDI_FM_UNKNOWN,
  48      -        PCI_SIG_SERR,   PCI_STAT_S_SYSERR,      NULL,           DDI_FM_FATAL,
  49      -        PCI_MA,         PCI_STAT_R_MAST_AB,     PCI_TARG_MA,    DDI_FM_UNKNOWN,
  50      -        PCI_REC_TA,     PCI_STAT_R_TARG_AB,     PCI_TARG_REC_TA, DDI_FM_UNKNOWN,
  51      -        PCI_SIG_TA,     PCI_STAT_S_TARG_AB,     NULL,           DDI_FM_UNKNOWN,
  52      -        NULL, NULL, NULL, NULL,
       46 +        {PCI_DET_PERR,  PCI_STAT_PERROR,        NULL,           DDI_FM_UNKNOWN},
       47 +        {PCI_MDPE,      PCI_STAT_S_PERROR,      PCI_TARG_MDPE,  DDI_FM_UNKNOWN},
       48 +        {PCI_SIG_SERR,  PCI_STAT_S_SYSERR,      NULL,           DDI_FM_FATAL},
       49 +        {PCI_MA,        PCI_STAT_R_MAST_AB,     PCI_TARG_MA,    DDI_FM_UNKNOWN},
       50 +        {PCI_REC_TA,    PCI_STAT_R_TARG_AB, PCI_TARG_REC_TA, DDI_FM_UNKNOWN},
       51 +        {PCI_SIG_TA,    PCI_STAT_S_TARG_AB,     NULL,           DDI_FM_UNKNOWN},
       52 +        {NULL, 0, NULL, 0}
  53   53  };
  54   54  
  55   55  pci_fm_err_t pci_bdg_err_tbl[] = {
  56      -        PCI_DET_PERR,   PCI_STAT_PERROR,        NULL,           DDI_FM_UNKNOWN,
  57      -        PCI_MDPE,       PCI_STAT_S_PERROR,      PCI_TARG_MDPE,  DDI_FM_UNKNOWN,
  58      -        PCI_REC_SERR,   PCI_STAT_S_SYSERR,      NULL,           DDI_FM_UNKNOWN,
       56 +        {PCI_DET_PERR,  PCI_STAT_PERROR,        NULL,           DDI_FM_UNKNOWN},
       57 +        {PCI_MDPE,      PCI_STAT_S_PERROR,      PCI_TARG_MDPE,  DDI_FM_UNKNOWN},
       58 +        {PCI_REC_SERR,  PCI_STAT_S_SYSERR,      NULL,           DDI_FM_UNKNOWN},
  59   59  #if defined(__sparc)
  60      -        PCI_MA,         PCI_STAT_R_MAST_AB,     PCI_TARG_MA,    DDI_FM_UNKNOWN,
       60 +        {PCI_MA,        PCI_STAT_R_MAST_AB,     PCI_TARG_MA,    DDI_FM_UNKNOWN},
  61   61  #endif
  62      -        PCI_REC_TA,     PCI_STAT_R_TARG_AB,     PCI_TARG_REC_TA, DDI_FM_UNKNOWN,
  63      -        PCI_SIG_TA,     PCI_STAT_S_TARG_AB,     NULL,           DDI_FM_UNKNOWN,
  64      -        NULL, NULL, NULL, NULL,
       62 +        {PCI_REC_TA,    PCI_STAT_R_TARG_AB, PCI_TARG_REC_TA, DDI_FM_UNKNOWN},
       63 +        {PCI_SIG_TA,    PCI_STAT_S_TARG_AB,     NULL,           DDI_FM_UNKNOWN},
       64 +        {NULL, 0, NULL, 0}
  65   65  };
  66   66  
  67   67  static pci_fm_err_t pcix_err_tbl[] = {
  68      -        PCIX_SPL_DIS,           PCI_PCIX_SPL_DSCD,      NULL,   DDI_FM_UNKNOWN,
  69      -        PCIX_UNEX_SPL,          PCI_PCIX_UNEX_SPL,      NULL,   DDI_FM_UNKNOWN,
  70      -        PCIX_RX_SPL_MSG,        PCI_PCIX_RX_SPL_MSG,    NULL,   DDI_FM_UNKNOWN,
  71      -        NULL, NULL, NULL, NULL,
       68 +        {PCIX_SPL_DIS,          PCI_PCIX_SPL_DSCD,      NULL,   DDI_FM_UNKNOWN},
       69 +        {PCIX_UNEX_SPL,         PCI_PCIX_UNEX_SPL,      NULL,   DDI_FM_UNKNOWN},
       70 +        {PCIX_RX_SPL_MSG,       PCI_PCIX_RX_SPL_MSG,    NULL,   DDI_FM_UNKNOWN},
       71 +        {NULL, 0, NULL, 0}
  72   72  };
  73   73  
  74   74  static pci_fm_err_t pcix_sec_err_tbl[] = {
  75      -        PCIX_SPL_DIS,           PCI_PCIX_BSS_SPL_DSCD,  NULL,   DDI_FM_UNKNOWN,
  76      -        PCIX_UNEX_SPL,          PCI_PCIX_BSS_UNEX_SPL,  NULL,   DDI_FM_UNKNOWN,
  77      -        PCIX_BSS_SPL_OR,        PCI_PCIX_BSS_SPL_OR,    NULL,   DDI_FM_OK,
  78      -        PCIX_BSS_SPL_DLY,       PCI_PCIX_BSS_SPL_DLY,   NULL,   DDI_FM_OK,
  79      -        NULL, NULL, NULL, NULL,
       75 +        {PCIX_SPL_DIS,          PCI_PCIX_BSS_SPL_DSCD,  NULL,   DDI_FM_UNKNOWN},
       76 +        {PCIX_UNEX_SPL,         PCI_PCIX_BSS_UNEX_SPL,  NULL,   DDI_FM_UNKNOWN},
       77 +        {PCIX_BSS_SPL_OR,       PCI_PCIX_BSS_SPL_OR,    NULL,   DDI_FM_OK},
       78 +        {PCIX_BSS_SPL_DLY,      PCI_PCIX_BSS_SPL_DLY,   NULL,   DDI_FM_OK},
       79 +        {NULL, 0, NULL, 0}
  80   80  };
  81   81  
  82   82  static int
  83   83  pci_config_check(ddi_acc_handle_t handle, int fme_flag)
  84   84  {
  85   85          ddi_acc_hdl_t *hp = impl_acc_hdl_get(handle);
  86   86          ddi_fm_error_t de;
  87   87  
  88   88          if (!(DDI_FM_ACC_ERR_CAP(ddi_fm_capable(hp->ah_dip))))
  89   89                  return (DDI_FM_OK);
↓ open down ↓ 1412 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX