diff options
author | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
---|---|---|
committer | raywu <raywu0301@gmail.com> | 2018-06-15 00:00:50 +0800 |
commit | b7c51c9cf4864df6aabb99a1ae843becd577237c (patch) | |
tree | eebe9b0d0ca03062955223097e57da84dd618b9a /MiscFramework/Ppi/AtaController/AtaController.h | |
download | zprj-master.tar.xz |
Diffstat (limited to 'MiscFramework/Ppi/AtaController/AtaController.h')
-rw-r--r-- | MiscFramework/Ppi/AtaController/AtaController.h | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/MiscFramework/Ppi/AtaController/AtaController.h b/MiscFramework/Ppi/AtaController/AtaController.h new file mode 100644 index 0000000..568fa71 --- /dev/null +++ b/MiscFramework/Ppi/AtaController/AtaController.h @@ -0,0 +1,62 @@ +// +// This file contains 'Framework Code' and is licensed as such +// under the terms of your license agreement with Intel or your +// vendor. This file may not be modified, except as allowed by +// additional terms of your license agreement. +// +/*++ + +Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved +This software and associated documentation (if any) is furnished +under a license and may only be used or copied in accordance +with the terms of the license. Except as permitted by such +license, no part of this software or documentation may be +reproduced, stored in a retrieval system, or transmitted in any +form or by any means without the express written consent of +Intel Corporation. + + +Module Name: + + AtaController.h + +Abstract: + + ATA Controller PPI as defined in EFI 2.0 + + This code abstracts the PEI core to provide ATA services. + +--*/ + +#ifndef _PEI_ATA_CONTROLLER_PPI_H_ +#define _PEI_ATA_CONTROLLER_PPI_H_ + +#define PEI_ATA_CONTROLLER_PPI_GUID \ + { \ + 0xa1e2176f, 0xcbda, 0x4f32, 0x87, 0x56, 0x7d, 0x7a, 0xe5, 0x22, 0xd6, 0x93 \ + } + +#define PEI_ICH_IDE_NONE 0x00 +#define PEI_ICH_IDE_PRIMARY 0x01 +#define PEI_ICH_IDE_SECONDARY 0x02 +#define PEI_ICH_SATA_NONE 0x04 +#define PEI_ICH_SATA_PRIMARY 0x08 +#define PEI_ICH_SATA_SECONDARY 0x010 + +EFI_FORWARD_DECLARATION (PEI_ATA_CONTROLLER_PPI); + +typedef +EFI_STATUS +(EFIAPI *PEI_ENABLE_ATA) ( + IN EFI_PEI_SERVICES **PeiServices, + IN PEI_ATA_CONTROLLER_PPI * This, + IN UINT8 ChannelMask + ); + +typedef struct _PEI_ATA_CONTROLLER_PPI { + PEI_ENABLE_ATA EnableAtaChannel; +} PEI_ATA_CONTROLLER_PPI; + +extern EFI_GUID gPeiAtaControllerPpiGuid; + +#endif |