summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-27 05:38:20 +0000
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>2010-09-27 05:38:20 +0000
commit98642032eda2db210449aa7ae2afc0c804fdab24 (patch)
tree86e1c9627459b5135b33f9604b6530254daad34b /MdePkg
parentb61bb3b3cea9d32a257efb592ce4e1ca371a68c6 (diff)
downloadedk2-98642032eda2db210449aa7ae2afc0c804fdab24.zip
edk2-98642032eda2db210449aa7ae2afc0c804fdab24.tar.gz
edk2-98642032eda2db210449aa7ae2afc0c804fdab24.tar.bz2
add a macro IS_PCI_SATADPA to judge if device is a SATA controller which is running AHCI mode.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10897 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Include/IndustryStandard/Pci30.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/MdePkg/Include/IndustryStandard/Pci30.h b/MdePkg/Include/IndustryStandard/Pci30.h
index 2ad05e8..4c71385 100644
--- a/MdePkg/Include/IndustryStandard/Pci30.h
+++ b/MdePkg/Include/IndustryStandard/Pci30.h
@@ -1,7 +1,7 @@
/** @file
Support for PCI 3.0 standard.
- Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -25,6 +25,17 @@
#define PCI_IF_MASS_STORAGE_SATA 0x00
#define PCI_IF_MASS_STORAGE_AHCI 0x01
+/**
+ Macro that checks whether device is a SATA controller.
+
+ @param _p Specified device.
+
+ @retval TRUE Device is a SATA controller.
+ @retval FALSE Device is not a SATA controller.
+
+**/
+#define IS_PCI_SATADPA(_p) IS_CLASS2 (_p, PCI_CLASS_MASS_STORAGE, PCI_CLASS_MASS_STORAGE_SATADPA)
+
///
/// PCI Capability List IDs and records
///