]> git.proxmox.com Git - mirror_edk2.git/blame - Include/Protocol/SuperIoControl.h
MdeModulePkg: Add IsaBusDxe driver
[mirror_edk2.git] / Include / Protocol / SuperIoControl.h
CommitLineData
42c9d9f8
RN
1/** @file\r
2 The Super I/O Control Protocol is installed by the Super I/O driver. It provides\r
3 the low-level services for SIO devices that enable them to be used in the UEFI\r
4 driver model.\r
5\r
6 Copyright (c) 2015, Intel Corporation. All rights reserved.<BR>\r
7 This program and the accompanying materials \r
8 are licensed and made available under the terms and conditions of the BSD License \r
9 which accompanies this distribution. The full text of the license may be found at \r
10 http://opensource.org/licenses/bsd-license.php \r
11\r
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
14\r
15 @par Revision Reference:\r
16 This protocol is from PI Version 1.2.1.\r
17\r
18**/\r
19\r
20#ifndef __EFI_SUPER_IO_CONTROL_PROTOCOL_H__\r
21#define __EFI_SUPER_IO_CONTROL_PROTOCOL_H__\r
22\r
23#define EFI_SIO_CONTROL_PROTOCOL_GUID \\r
24 { \\r
25 0xb91978df, 0x9fc1, 0x427d, { 0xbb, 0x5, 0x4c, 0x82, 0x84, 0x55, 0xca, 0x27 } \\r
26 }\r
27\r
28typedef struct _EFI_SIO_CONTROL_PROTOCOL EFI_SIO_CONTROL_PROTOCOL;\r
29typedef struct _EFI_SIO_CONTROL_PROTOCOL *PEFI_SIO_CONTROL_PROTOCOL;\r
30\r
31/**\r
32 Enable an ISA-style device.\r
33\r
34 This function enables a logical ISA device and, if necessary, configures it\r
35 to default settings, including memory, I/O, DMA and IRQ resources.\r
36\r
37 @param This A pointer to this instance of the EFI_SIO_CONTROL_PROTOCOL.\r
38\r
39 @retval EFI_SUCCESS The device is enabled successfully.\r
40 @retval EFI_OUT_OF_RESOURCES The device could not be enabled because there\r
41 were insufficient resources either for the device \r
42 itself or for the records needed to track the device.\r
43 @retval EFI_ALREADY_STARTED The device is already enabled.\r
44 @retval EFI_UNSUPPORTED The device cannot be enabled.\r
45**/\r
46typedef\r
47EFI_STATUS\r
48(EFIAPI *EFI_SIO_CONTROL_ENABLE)(\r
49 IN CONST EFI_SIO_CONTROL_PROTOCOL *This\r
50 );\r
51\r
52/**\r
53 Disable a logical ISA device.\r
54\r
55 This function disables a logical ISA device so that it no longer consumes\r
56 system resources, such as memory, I/O, DMA and IRQ resources. Enough information\r
57 must be available so that subsequent Enable() calls would properly reconfigure\r
58 the device.\r
59\r
60 @param This A pointer to this instance of the EFI_SIO_CONTROL_PROTOCOL.\r
61\r
62 @retval EFI_SUCCESS The device is disabled successfully.\r
63 @retval EFI_OUT_OF_RESOURCES The device could not be disabled because there\r
64 were insufficient resources either for the device \r
65 itself or for the records needed to track the device.\r
66 @retval EFI_ALREADY_STARTED The device is already disabled.\r
67 @retval EFI_UNSUPPORTED The device cannot be disabled.\r
68**/\r
69typedef\r
70EFI_STATUS\r
71(EFIAPI *EFI_SIO_CONTROL_DISABLE)(\r
72 IN CONST EFI_SIO_CONTROL_PROTOCOL *This\r
73 );\r
74\r
75struct _EFI_SIO_CONTROL_PROTOCOL {\r
76 ///\r
77 /// The version of this protocol.\r
78 ///\r
79 UINT32 Version;\r
80 ///\r
81 /// Enable a device.\r
82 ///\r
83 EFI_SIO_CONTROL_ENABLE EnableDevice;\r
84 ///\r
85 /// Disable a device.\r
86 ///\r
87 EFI_SIO_CONTROL_DISABLE DisableDevice;\r
88};\r
89\r
90extern EFI_GUID gEfiSioControlProtocolGuid;\r
91\r
92#endif // __EFI_SUPER_IO_CONTROL_PROTOCOL_H__\r