summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2007-06-12 12:09:16 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2007-06-12 12:09:16 +0000
commitc62b0f1d7b5dcd63cf50f517445e4a96430210c1 (patch)
tree2b43103de47921db66d78f55e681ba2edaae41c4 /sys/dev
parentdf9de2a963df2fa93a32b465c12a23893b0ee05d (diff)
Use SATA_SIGNATURE_ATAPI constant instead of a magic number.
ok dlg@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/ahci.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ahci.c b/sys/dev/pci/ahci.c
index 544a7dc0487..430ab62123a 100644
--- a/sys/dev/pci/ahci.c
+++ b/sys/dev/pci/ahci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ahci.c,v 1.118 2007/05/30 03:55:19 tedu Exp $ */
+/* $OpenBSD: ahci.c,v 1.119 2007/06/12 12:09:15 grange Exp $ */
/*
* Copyright (c) 2006 David Gwynne <dlg@openbsd.org>
@@ -2184,7 +2184,7 @@ ahci_ata_probe(void *xsc, int port)
return (ATA_PORT_T_NONE);
sig = ahci_pread(ap, AHCI_PREG_SIG);
- if ((sig & 0xffff0000) == 0xeb140000)
+ if ((sig & 0xffff0000) == (SATA_SIGNATURE_ATAPI & 0xffff0000))
return (ATA_PORT_T_ATAPI);
else
return (ATA_PORT_T_DISK);