diff options
author | Arvind Bhushan <arvindb@chelsio.com> | 2013-03-14 01:09:08 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-14 11:36:00 -0400 |
commit | 7cc163806b0dc31ea2067d48a2732b452a709f48 (patch) | |
tree | 8211ed0286b901937b89fc01b0c3284d36659d93 /drivers/scsi/csiostor/csio_wr.c | |
parent | d69630e8a42220b04318995d8ed0637ea79a717e (diff) |
csiostor: Cleanup chip specific operations.
This patch removes chip specific operations from the common hardware
paths, as well as the Makefile change to accomodate the new files.
Signed-off-by: Arvind Bhushan <arvindb@chelsio.com>
Signed-off-by: Naresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/scsi/csiostor/csio_wr.c')
-rw-r--r-- | drivers/scsi/csiostor/csio_wr.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/drivers/scsi/csiostor/csio_wr.c b/drivers/scsi/csiostor/csio_wr.c index 713e77d12cb4..4255ce264abf 100644 --- a/drivers/scsi/csiostor/csio_wr.c +++ b/drivers/scsi/csiostor/csio_wr.c | |||
@@ -85,8 +85,8 @@ csio_wr_ring_fldb(struct csio_hw *hw, struct csio_q *flq) | |||
85 | */ | 85 | */ |
86 | if (flq->inc_idx >= 8) { | 86 | if (flq->inc_idx >= 8) { |
87 | csio_wr_reg32(hw, DBPRIO(1) | QID(flq->un.fl.flid) | | 87 | csio_wr_reg32(hw, DBPRIO(1) | QID(flq->un.fl.flid) | |
88 | PIDX(flq->inc_idx / 8), | 88 | CSIO_HW_PIDX(hw, flq->inc_idx / 8), |
89 | MYPF_REG(SGE_PF_KDOORBELL)); | 89 | MYPF_REG(SGE_PF_KDOORBELL)); |
90 | flq->inc_idx &= 7; | 90 | flq->inc_idx &= 7; |
91 | } | 91 | } |
92 | } | 92 | } |
@@ -989,7 +989,8 @@ csio_wr_issue(struct csio_hw *hw, int qidx, bool prio) | |||
989 | wmb(); | 989 | wmb(); |
990 | /* Ring SGE Doorbell writing q->pidx into it */ | 990 | /* Ring SGE Doorbell writing q->pidx into it */ |
991 | csio_wr_reg32(hw, DBPRIO(prio) | QID(q->un.eq.physeqid) | | 991 | csio_wr_reg32(hw, DBPRIO(prio) | QID(q->un.eq.physeqid) | |
992 | PIDX(q->inc_idx), MYPF_REG(SGE_PF_KDOORBELL)); | 992 | CSIO_HW_PIDX(hw, q->inc_idx), |
993 | MYPF_REG(SGE_PF_KDOORBELL)); | ||
993 | q->inc_idx = 0; | 994 | q->inc_idx = 0; |
994 | 995 | ||
995 | return 0; | 996 | return 0; |
@@ -1352,6 +1353,9 @@ csio_wr_fixup_host_params(struct csio_hw *hw) | |||
1352 | /* default value of rx_dma_offset of the NIC driver */ | 1353 | /* default value of rx_dma_offset of the NIC driver */ |
1353 | csio_set_reg_field(hw, SGE_CONTROL, PKTSHIFT_MASK, | 1354 | csio_set_reg_field(hw, SGE_CONTROL, PKTSHIFT_MASK, |
1354 | PKTSHIFT(CSIO_SGE_RX_DMA_OFFSET)); | 1355 | PKTSHIFT(CSIO_SGE_RX_DMA_OFFSET)); |
1356 | |||
1357 | csio_hw_tp_wr_bits_indirect(hw, TP_INGRESS_CONFIG, | ||
1358 | CSUM_HAS_PSEUDO_HDR, 0); | ||
1355 | } | 1359 | } |
1356 | 1360 | ||
1357 | static void | 1361 | static void |
@@ -1467,10 +1471,11 @@ csio_wr_set_sge(struct csio_hw *hw) | |||
1467 | * and generate an interrupt when this occurs so we can recover. | 1471 | * and generate an interrupt when this occurs so we can recover. |
1468 | */ | 1472 | */ |
1469 | csio_set_reg_field(hw, SGE_DBFIFO_STATUS, | 1473 | csio_set_reg_field(hw, SGE_DBFIFO_STATUS, |
1470 | HP_INT_THRESH(HP_INT_THRESH_MASK) | | 1474 | HP_INT_THRESH(HP_INT_THRESH_MASK) | |
1471 | LP_INT_THRESH(LP_INT_THRESH_MASK), | 1475 | CSIO_HW_LP_INT_THRESH(hw, CSIO_HW_M_LP_INT_THRESH(hw)), |
1472 | HP_INT_THRESH(CSIO_SGE_DBFIFO_INT_THRESH) | | 1476 | HP_INT_THRESH(CSIO_SGE_DBFIFO_INT_THRESH) | |
1473 | LP_INT_THRESH(CSIO_SGE_DBFIFO_INT_THRESH)); | 1477 | CSIO_HW_LP_INT_THRESH(hw, CSIO_SGE_DBFIFO_INT_THRESH)); |
1478 | |||
1474 | csio_set_reg_field(hw, SGE_DOORBELL_CONTROL, ENABLE_DROP, | 1479 | csio_set_reg_field(hw, SGE_DOORBELL_CONTROL, ENABLE_DROP, |
1475 | ENABLE_DROP); | 1480 | ENABLE_DROP); |
1476 | 1481 | ||