diff options
author | gavin <gavin@FreeBSD.org> | 2012-09-19 12:27:23 +0000 |
---|---|---|
committer | gavin <gavin@FreeBSD.org> | 2012-09-19 12:27:23 +0000 |
commit | 274e5948cc44f9bdef7d96b128143fbedd83a5f2 (patch) | |
tree | 3f394f93c5ea4f518737a9e08fd86e7af882dc69 /sys/dev/ahci/ahci.c | |
parent | 199045d17c4c0b10c7089126434c8411864c298b (diff) | |
download | FreeBSD-src-274e5948cc44f9bdef7d96b128143fbedd83a5f2.zip FreeBSD-src-274e5948cc44f9bdef7d96b128143fbedd83a5f2.tar.gz |
Switch some PCI register reads from using magic numbers to using the names
defined in pcireg.h
MFC after: 1 week
Diffstat (limited to 'sys/dev/ahci/ahci.c')
-rw-r--r-- | sys/dev/ahci/ahci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ahci/ahci.c b/sys/dev/ahci/ahci.c index d661416..4a3c355 100644 --- a/sys/dev/ahci/ahci.c +++ b/sys/dev/ahci/ahci.c @@ -543,7 +543,7 @@ ahci_ctlr_reset(device_t dev) struct ahci_controller *ctlr = device_get_softc(dev); int timeout; - if (pci_read_config(dev, 0x00, 4) == 0x28298086 && + if (pci_read_config(dev, PCIR_DEVVENDOR, 4) == 0x28298086 && (pci_read_config(dev, 0x92, 1) & 0xfe) == 0x04) pci_write_config(dev, 0x92, 0x01, 1); /* Enable AHCI mode */ |