summaryrefslogtreecommitdiff
path: root/sys/dev/ic/ahci.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/ic/ahci.c')
-rw-r--r--sys/dev/ic/ahci.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/sys/dev/ic/ahci.c b/sys/dev/ic/ahci.c
index 5033c9c554c..69d52183931 100644
--- a/sys/dev/ic/ahci.c
+++ b/sys/dev/ic/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.1 2013/01/21 11:17:48 patrick Exp $ */
+/* $OpenBSD: ahci.c,v 1.2 2013/07/09 11:55:55 jmatthew Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -43,6 +43,20 @@
#include <scsi/scsi_all.h>
#include <scsi/scsiconf.h>
+
+#ifdef AHCI_DEBUG
+#define DPRINTF(m, f...) do { if ((ahcidebug & (m)) == (m)) printf(f); } \
+ while (0)
+#define AHCI_D_TIMEOUT 0x00
+#define AHCI_D_VERBOSE 0x01
+#define AHCI_D_INTR 0x02
+#define AHCI_D_XFER 0x08
+int ahcidebug = AHCI_D_VERBOSE;
+#else
+#define DPRINTF(m, f...)
+#endif
+
+
void ahci_hibernate_io_start(struct ahci_port *,
struct ahci_ccb *);
int ahci_hibernate_io_poll(struct ahci_port *,