]> git.proxmox.com Git - mirror_edk2.git/commitdiff
add a macro IS_PCI_SATADPA to judge if device is a SATA controller which is running...
authorerictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Sep 2010 05:38:20 +0000 (05:38 +0000)
committererictian <erictian@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Sep 2010 05:38:20 +0000 (05:38 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10897 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/IndustryStandard/Pci30.h

index 2ad05e820f9c0d7c57eb600ad36b83c12b8565b2..4c71385a180d5c2956e84531dab86caa089a08c0 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Support for PCI 3.0 standard.\r
 \r
-  Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials                          \r
   are licensed and made available under the terms and conditions of the BSD License         \r
   which accompanies this distribution.  The full text of the license may be found at        \r
 #define   PCI_IF_MASS_STORAGE_SATA         0x00\r
 #define   PCI_IF_MASS_STORAGE_AHCI         0x01\r
 \r
+/**  \r
+  Macro that checks whether device is a SATA controller.\r
+\r
+  @param  _p      Specified device.\r
+\r
+  @retval TRUE    Device is a SATA controller.\r
+  @retval FALSE   Device is not a SATA controller.\r
+\r
+**/\r
+#define IS_PCI_SATADPA(_p) IS_CLASS2 (_p, PCI_CLASS_MASS_STORAGE, PCI_CLASS_MASS_STORAGE_SATADPA)\r
+\r
 ///\r
 /// PCI Capability List IDs and records\r
 ///\r