summaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.h
diff options
context:
space:
mode:
authorBrian Norris2012-02-21 19:38:43 +0100
committerJeff Garzik2012-03-13 21:35:47 +0100
commit55d5ec316627b64c3764e4c1b4b8e1988e272c1f (patch)
tree02143de94a97d4c56c94d30acf7f544ec233ed15 /drivers/ata/ahci.h
parentahci: add AHCI_HFLAG_DELAY_ENGINE host flag (diff)
downloadkernel-qcow2-linux-55d5ec316627b64c3764e4c1b4b8e1988e272c1f.tar.gz
kernel-qcow2-linux-55d5ec316627b64c3764e4c1b4b8e1988e272c1f.tar.xz
kernel-qcow2-linux-55d5ec316627b64c3764e4c1b4b8e1988e272c1f.zip
ahci: move AHCI_HFLAGS() macro to ahci.h
We will need this macro in both ahci.c and ahci_platform.c, so just move it to the header. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com> Cc: stable@kernel.org
Diffstat (limited to 'drivers/ata/ahci.h')
-rw-r--r--drivers/ata/ahci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/ata/ahci.h b/drivers/ata/ahci.h
index feb127ef4e4e..c2594ddf25b0 100644
--- a/drivers/ata/ahci.h
+++ b/drivers/ata/ahci.h
@@ -195,6 +195,9 @@ enum {
PORT_FBS_EN = (1 << 0), /* Enable FBS */
/* hpriv->flags bits */
+
+#define AHCI_HFLAGS(flags) .private_data = (void *)(flags)
+
AHCI_HFLAG_NO_NCQ = (1 << 0),
AHCI_HFLAG_IGN_IRQ_IF_ERR = (1 << 1), /* ignore IRQ_IF_ERR */
AHCI_HFLAG_IGN_SERR_INTERNAL = (1 << 2), /* ignore SERR_INTERNAL */