diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-12-09 06:08:10 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-12-09 06:08:10 +0000 |
commit | 9953686beffde0dea3bab1fa3351c7f987e5841f (patch) | |
tree | a56be8283ad51a107962502a6e806f1803995c68 /sys | |
parent | b186c2a10b44fa825c8eb99dc66beeb4350d77d9 (diff) |
add macros for debug shizz
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/ahci.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c index d02a824da8b..83c5748137e 100644 --- a/sys/dev/pci/ahci.c +++ b/sys/dev/pci/ahci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ahci.c,v 1.3 2006/12/09 06:03:34 dlg Exp $ */ +/* $OpenBSD: ahci.c,v 1.4 2006/12/09 06:08:09 dlg Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -30,6 +30,14 @@ #include <dev/pci/pcivar.h> #include <dev/pci/pcidevs.h> +#ifdef AHCI_DEBUG +#define DPRINTF(m, f...) do { if (ahcidebug & (m)) printf(f); } while (0) +#define AHCI_D_VERBOSE 0x01 +int ahcidebug = AHCI_D_VERBOSE; +#else +#define DPRINTF(m, f...) +#endif + #define AHCI_PCI_BAR 0x24 #define AHCI_REG_CAP 0x000 /* HBA Capabilities */ |