Lines Matching +full:irq +full:- +full:status +full:- +full:read +full:- +full:quirk
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * ahci.h - Common AHCI SATA definitions and declarations
6 * Please ALWAYS copy linux-ide@vger.kernel.org
9 * Copyright 2004-2005 Red Hat, Inc.
12 * as Documentation/driver-api/libata.rst
72 HOST_IRQ_STAT = 0x08, /* interrupt status */
80 HOST_RESET = BIT(0), /* reset controller; self-clear */
81 HOST_IRQ_EN = BIT(1), /* global IRQ enable */
92 HOST_CAP_FBS = BIT(16), /* FIS-based switching support */
98 HOST_CAP_SSS = BIT(27), /* Staggered Spin-up */
102 HOST_CAP_64 = BIT(31), /* PCI DAC (64-bit DMA) support */
117 PORT_IRQ_STAT = 0x10, /* interrupt status */
128 PORT_FBS = 0x40, /* FIS-based Switching */
137 PORT_IRQ_IF_NONFATAL = BIT(26), /* interface non-fatal error */
142 PORT_IRQ_DMPS = BIT(7), /* mechanical presence status */
143 PORT_IRQ_CONNECT = BIT(6), /* port connect change status */
209 /* hpriv->flags bits */
230 error-handling stage) */
235 AHCI_HFLAG_MULTI_MSI = BIT(20), /* per-port MSI(-X) */
242 AHCI_HFLAG_NO_WRITE_TO_RO = BIT(24), /* don't write to read
248 AHCI_HFLAG_INTEL_PCS_QUIRK = BIT(28), /* apply Intel PCS quirk */
251 /* ap->flags bits */
272 EM_CTL_SES = BIT(18), /* SES-2 messages supported */
273 EM_CTL_SAFTE = BIT(17), /* SAF-TE messages supported */
278 EM_MSG_TYPE_SAFTE = BIT(1), /* SAF-TE */
279 EM_MSG_TYPE_SES2 = BIT(2), /* SES-2 */
285 __le32 status; member
335 void __iomem * mmio; /* bus-independent mem map */
363 unsigned int irq; /* interrupt line */ member
377 irqreturn_t (*irq_handler)(int irq, void *dev_instance);
379 /* only required for per-port MSI(-X) support */
391 if (portid >= hpriv->nports) in ahci_ignore_port()
394 if (!hpriv->mask_port_map) in ahci_ignore_port()
396 return !(hpriv->mask_port_map & (1 << portid)); in ahci_ignore_port()
405 * This must be instantiated by the edge drivers. Read the comments
456 void __iomem *mmio = hpriv->mmio; in __ahci_port_base()
463 struct ahci_host_priv *hpriv = ap->host->private_data; in ahci_port_base()
465 return __ahci_port_base(hpriv, ap->port_no); in ahci_port_base()