@@ -380,47 +380,6 @@ qla82xx_pci_set_crbwindow_2M(struct qla_hw_data *ha, ulong off_in,
380
380
* off_out = (off_in & MASK (16 )) + CRB_INDIRECT_2M + ha -> nx_pcibase ;
381
381
}
382
382
383
- static inline unsigned long
384
- qla82xx_pci_set_crbwindow (struct qla_hw_data * ha , u64 off )
385
- {
386
- scsi_qla_host_t * vha = pci_get_drvdata (ha -> pdev );
387
- /* See if we are currently pointing to the region we want to use next */
388
- if ((off >= QLA82XX_CRB_PCIX_HOST ) && (off < QLA82XX_CRB_DDR_NET )) {
389
- /* No need to change window. PCIX and PCIEregs are in both
390
- * regs are in both windows.
391
- */
392
- return off ;
393
- }
394
-
395
- if ((off >= QLA82XX_CRB_PCIX_HOST ) && (off < QLA82XX_CRB_PCIX_HOST2 )) {
396
- /* We are in first CRB window */
397
- if (ha -> curr_window != 0 )
398
- WARN_ON (1 );
399
- return off ;
400
- }
401
-
402
- if ((off > QLA82XX_CRB_PCIX_HOST2 ) && (off < QLA82XX_CRB_MAX )) {
403
- /* We are in second CRB window */
404
- off = off - QLA82XX_CRB_PCIX_HOST2 + QLA82XX_CRB_PCIX_HOST ;
405
-
406
- if (ha -> curr_window != 1 )
407
- return off ;
408
-
409
- /* We are in the QM or direct access
410
- * register region - do nothing
411
- */
412
- if ((off >= QLA82XX_PCI_DIRECT_CRB ) &&
413
- (off < QLA82XX_PCI_CAMQM_MAX ))
414
- return off ;
415
- }
416
- /* strange address given */
417
- ql_dbg (ql_dbg_p3p , vha , 0xb001 ,
418
- "%s: Warning: unm_nic_pci_set_crbwindow "
419
- "called with an unknown address(%llx).\n" ,
420
- QLA2XXX_DRIVER_NAME , off );
421
- return off ;
422
- }
423
-
424
383
static int
425
384
qla82xx_pci_get_crb_addr_2M (struct qla_hw_data * ha , ulong off_in ,
426
385
void __iomem * * off_out )
0 commit comments