Print this page
8368 remove warlock leftovers from usr/src/uts

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/io/ib/adapters/hermon/hermon.c
          +++ new/usr/src/uts/common/io/ib/adapters/hermon/hermon.c
↓ open down ↓ 541 lines elided ↑ open up ↑
 542  542   */
 543  543  static int
 544  544  hermon_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
 545  545  {
 546  546          hermon_state_t  *state;
 547  547          ibc_clnt_hdl_t  tmp_ibtfpriv;
 548  548          ibc_status_t    ibc_status;
 549  549          int             instance;
 550  550          int             status;
 551  551  
 552      -#ifdef __lock_lint
 553      -        (void) hermon_quiesce(dip);
 554      -#endif
 555      -
 556  552          switch (cmd) {
 557  553          case DDI_ATTACH:
 558  554                  instance = ddi_get_instance(dip);
 559  555                  status = ddi_soft_state_zalloc(hermon_statep, instance);
 560  556                  if (status != DDI_SUCCESS) {
 561  557                          cmn_err(CE_NOTE, "hermon%d: driver failed to attach: "
 562  558                              "attach_ssz_fail", instance);
 563  559                          goto fail_attach_nomsg;
 564  560  
 565  561                  }
↓ open down ↓ 275 lines elided ↑ open up ↑
 841  837  
 842  838  /*
 843  839   * hermon_dma_attr_init()
 844  840   *    Context: Can be called from interrupt or base context.
 845  841   */
 846  842  
 847  843  /* ARGSUSED */
 848  844  void
 849  845  hermon_dma_attr_init(hermon_state_t *state, ddi_dma_attr_t *dma_attr)
 850  846  {
 851      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dma_attr))
 852      -
 853  847          dma_attr->dma_attr_version      = DMA_ATTR_V0;
 854  848          dma_attr->dma_attr_addr_lo      = 0;
 855  849          dma_attr->dma_attr_addr_hi      = 0xFFFFFFFFFFFFFFFFull;
 856  850          dma_attr->dma_attr_count_max    = 0xFFFFFFFFFFFFFFFFull;
 857  851          dma_attr->dma_attr_align        = HERMON_PAGESIZE;  /* default 4K */
 858  852          dma_attr->dma_attr_burstsizes   = 0x3FF;
 859  853          dma_attr->dma_attr_minxfer      = 1;
 860  854          dma_attr->dma_attr_maxxfer      = 0xFFFFFFFFFFFFFFFFull;
 861  855          dma_attr->dma_attr_seg          = 0xFFFFFFFFFFFFFFFFull;
 862  856          dma_attr->dma_attr_sgllen       = 0x7FFFFFFF;
↓ open down ↓ 180 lines elided ↑ open up ↑
1043 1037                          return (status);
1044 1038                  }
1045 1039                  break;
1046 1040          }
1047 1041  
1048 1042          /* ensure existence of bitmap and dmainfo, sets "dma_info" */
1049 1043          hermon_bitmap(bitmap, dma_info, icm, index1, num_to_hdl);
1050 1044  
1051 1045          /* Set up the DMA handle for allocation and mapping */
1052 1046          dma_info += index2;
1053      -        _NOTE(NOW_INVISIBLE_TO_OTHER_THREADS(*dma_info))
1054 1047          dma_info->length  = icm->span << icm->log_object_size;
1055 1048          dma_info->icmaddr = icm->icm_baseaddr +
1056 1049              (((index1 << icm->split_shift) +
1057 1050              (index2 << icm->span_shift)) << icm->log_object_size);
1058 1051  
1059 1052          /* Allocate memory for the num_to_qp/cq/srq pointers */
1060 1053          if (num_to_hdl)
1061 1054                  icm->num_to_hdl[index1][index2] =
1062 1055                      kmem_zalloc(HERMON_ICM_SPAN * sizeof (void *), KM_SLEEP);
1063 1056  
↓ open down ↓ 3946 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX