Lines Matching +full:dma +full:- +full:noncoherent
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* -*- mode: c; c-basic-offset: 8 -*- */
4 /* Driver for 53c700 and 53c700-66 chips from NCR and Symbios
18 /* Turn on for general debugging---too verbose for normal use */
42 #define NCR_700_LUN_MASK (NCR_700_MAX_LUNS - 1)
82 * for the annoying SCSI-2 requirement for LUN information in
110 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_sense_cmnd()
112 return hostdata->cmnd; in NCR_700_get_sense_cmnd()
118 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_set_depth()
120 hostdata->depth = depth; in NCR_700_set_depth()
125 struct NCR_700_Device_Parameters *hostdata = SDp->hostdata; in NCR_700_get_depth()
127 return hostdata->depth; in NCR_700_get_depth()
132 return (spi_flags(SDp->sdev_target) & flag) == flag; in NCR_700_is_flag_set()
137 return (spi_flags(SDp->sdev_target) & flag) == 0; in NCR_700_is_flag_clear()
142 spi_flags(SDp->sdev_target) |= flag; in NCR_700_set_flag()
147 spi_flags(SDp->sdev_target) &= ~flag; in NCR_700_clear_flag()
159 return (enum NCR_700_tag_neg_state)((spi_flags(SDp->sdev_target)>>20) & 0x3); in NCR_700_get_tag_neg_state()
167 spi_flags(SDp->sdev_target) &= ~(0x3 << 20); in NCR_700_set_tag_neg_state()
168 spi_flags(SDp->sdev_target) |= ((__u32)state) << 20; in NCR_700_set_tag_neg_state()
189 /* if this command is a pci_single mapping, holds the dma address
212 __u32 noncoherent:1; /* needs to use non-coherent DMA */ member
256 * 53C700 Register Interface - the offset from the Selected base
259 #define bE (hostdata->force_le_on_be ? 0 : 3)
260 #define bSWAP (hostdata->force_le_on_be)
261 #define bEBus (!hostdata->force_le_on_be)
417 * the 53c700-66 cannot handle an offset >8, so don't change this */
485 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_readb()
487 return ioread8(hostdata->base + (reg^bE)); in NCR_700_readb()
494 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_readl()
495 __u32 value = bEBus ? ioread32be(hostdata->base + reg) : in NCR_700_readl()
496 ioread32(hostdata->base + reg); in NCR_700_readl()
509 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_writeb()
511 iowrite8(value, hostdata->base + (reg^bE)); in NCR_700_writeb()
518 = (struct NCR_700_Host_Parameters *)host->hostdata[0]; in NCR_700_writel()
525 bEBus ? iowrite32be(value, hostdata->base + reg): in NCR_700_writel()
526 iowrite32(value, hostdata->base + reg); in NCR_700_writel()