Update For Review
[mirror_edk2.git] / IntelFrameworkModulePkg / Include / Protocol / PciHotPlugRequest.h
1 /** @file
2
3 Copyright (c) 2006 - 2007, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
8
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12 **/
13
14 #ifndef __PCI_HOTPLUG_REQUEST_H_
15 #define __PCI_HOTPLUG_REQUEST_H_
16
17 #define EFI_PCI_HOTPLUG_REQUEST_PROTOCOL_GUID \
18 {0x19cb87ab,0x2cb9,{0x4665,0x83,0x60,0xdd,0xcf,0x60,0x54,0xf7,0x9d}}
19
20 typedef enum {
21 EfiPciHotPlugRequestAdd,
22 EfiPciHotplugRequestRemove
23 } EFI_PCI_HOTPLUG_OPERATION;
24
25 typedef struct _EFI_PCI_HOTPLUG_REQUEST_PROTOCOL EFI_PCI_HOTPLUG_REQUEST_PROTOCOL;
26
27 typedef
28 EFI_STATUS
29 (EFIAPI *EFI_PCI_HOTPLUG_REQUEST_NOTIFY) (
30 IN EFI_PCI_HOTPLUG_REQUEST_PROTOCOL *This,
31 IN EFI_PCI_HOTPLUG_OPERATION Operation,
32 IN EFI_HANDLE Controller,
33 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath OPTIONAL,
34 IN OUT UINT8 *NumberOfChildren,
35 IN OUT EFI_HANDLE *ChildHandleBuffer
36 );
37
38
39
40 struct _EFI_PCI_HOTPLUG_REQUEST_PROTOCOL {
41 EFI_PCI_HOTPLUG_REQUEST_NOTIFY Notify;
42 };
43
44 extern EFI_GUID gEfiPciHotPlugRequestProtocolGuid;
45
46 #endif