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 /Protocol/PcmciaRequest | |
download | zprj-master.tar.xz |
Diffstat (limited to 'Protocol/PcmciaRequest')
-rw-r--r-- | Protocol/PcmciaRequest/PcmciaRequest.c | 37 | ||||
-rw-r--r-- | Protocol/PcmciaRequest/PcmciaRequest.h | 72 |
2 files changed, 109 insertions, 0 deletions
diff --git a/Protocol/PcmciaRequest/PcmciaRequest.c b/Protocol/PcmciaRequest/PcmciaRequest.c new file mode 100644 index 0000000..167a574 --- /dev/null +++ b/Protocol/PcmciaRequest/PcmciaRequest.c @@ -0,0 +1,37 @@ +/*++ + 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: + + PcmciaRequest.c + +Abstract: + + EFI PCMCIA Request Protocol + +Revision History + +--*/ + +#include "Tiano.h" + +#include EFI_PROTOCOL_DEFINITION (PcmciaRequest) + +EFI_GUID gEfiPcmciaRequestProtocolGuid = EFI_PCMCIA_REQUEST_PROTOCOL_GUID; + +EFI_GUID_STRING(&gEfiPcmciaRequestProtocolGuid, "PCMCIA Request Protocol", "EFI 1.1 PCMCIA Request Protocol"); diff --git a/Protocol/PcmciaRequest/PcmciaRequest.h b/Protocol/PcmciaRequest/PcmciaRequest.h new file mode 100644 index 0000000..fbead3e --- /dev/null +++ b/Protocol/PcmciaRequest/PcmciaRequest.h @@ -0,0 +1,72 @@ +// +// 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: + + PcmciaRequest.h + +Abstract: + + EFI PCMCIA Request Protocol + +Revision History + +--*/ + +#ifndef _EFI_PCMCIA_REQUEST_H +#define _EFI_PCMCIA_REQUEST_H + +// +// Global GUID for PCMCIA Request Protocol +// +#define EFI_PCMCIA_REQUEST_PROTOCOL_GUID \ + { \ + 0xf238f47c, 0x1de9, 0x4e8b, 0x81, 0xb9, 0xcc, 0x92, 0x4e, 0x6b, 0x5b, 0xe5 \ + } + +EFI_FORWARD_DECLARATION (EFI_PCMCIA_REQUEST_PROTOCOL); + +// +// Prototypes for PCMCIA Request Protocol +// +typedef enum { + EfiPCMCIARequestStart, + EfiPCMCIARequestStop, + EfiPCMCIARequestStatusChange +} EFI_PCMCIA_OPERATION; + +typedef +EFI_STATUS +(EFIAPI *EFI_PCMCIA_REQUEST_NOTIFY) ( + IN EFI_PCMCIA_REQUEST_PROTOCOL * This, + IN EFI_PCMCIA_OPERATION Operation, + IN EFI_HANDLE SocketHandle, + IN EFI_DEVICE_PATH_PROTOCOL * RemainingDevicePath OPTIONAL, + IN OUT UINT8 *NumberOfChildren, + IN OUT EFI_HANDLE * ChildHandleBuffer + ); + +typedef struct _EFI_PCMCIA_REQUEST_PROTOCOL { + + EFI_PCMCIA_REQUEST_NOTIFY Notify; + +} EFI_PCMCIA_REQUEST_PROTOCOL; + +extern EFI_GUID gEfiPcmciaRequestProtocolGuid; + +#endif |