]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Framework/Ppi/Smbus/Smbus.h
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Framework / Ppi / Smbus / Smbus.h
CommitLineData
3eb9473e 1/*++\r
2\r
f57387d5
HT
3Copyright (c) 1999 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials\r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12\r
13Module Name:\r
14\r
15 Smbus.h\r
16 \r
17Abstract:\r
18\r
19 Smbus PPI as defined in EFI 2.0\r
20\r
21--*/\r
22\r
23#ifndef _PEI_SMBUS_PPI_H\r
24#define _PEI_SMBUS_PPI_H\r
25\r
26#include "EfiSmbus.h"\r
27\r
28#define PEI_SMBUS_PPI_GUID \\r
29 { \\r
7ccf38a3 30 0xabd42895, 0x78cf, 0x4872, {0x84, 0x44, 0x1b, 0x5c, 0x18, 0xb, 0xfb, 0xda} \\r
3eb9473e 31 }\r
32\r
33EFI_FORWARD_DECLARATION (PEI_SMBUS_PPI);\r
34\r
35typedef\r
36EFI_STATUS\r
37(EFIAPI *PEI_SMBUS_PPI_EXECUTE_OPERATION) (\r
38 IN EFI_PEI_SERVICES **PeiServices,\r
39 IN PEI_SMBUS_PPI * This,\r
40 IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
41 IN EFI_SMBUS_DEVICE_COMMAND Command,\r
42 IN EFI_SMBUS_OPERATION Operation,\r
43 IN BOOLEAN PecCheck,\r
44 IN OUT UINTN *Length,\r
45 IN OUT VOID *Buffer\r
46 );\r
47\r
48\r
49typedef\r
50EFI_STATUS\r
51(EFIAPI *PEI_SMBUS_NOTIFY_FUNCTION) (\r
52 IN EFI_PEI_SERVICES **PeiServices,\r
53 IN PEI_SMBUS_PPI * SmbusPpi,\r
54 IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
55 IN UINTN Data\r
56 );\r
57\r
58//\r
59// If ArpAll is TRUE, SmbusUdid/SlaveAddress is Optional.\r
60// If FALSE, ArpDevice will enum SmbusUdid and the address will be at SlaveAddress\r
61//\r
62typedef\r
63EFI_STATUS\r
64(EFIAPI *PEI_SMBUS_PPI_ARP_DEVICE) (\r
65 IN EFI_PEI_SERVICES **PeiServices,\r
66 IN PEI_SMBUS_PPI * This,\r
67 IN BOOLEAN ArpAll,\r
68 IN EFI_SMBUS_UDID * SmbusUdid, OPTIONAL\r
69 IN OUT EFI_SMBUS_DEVICE_ADDRESS * SlaveAddress OPTIONAL\r
70 );\r
71\r
72\r
73typedef\r
74EFI_STATUS\r
75(EFIAPI *PEI_SMBUS_PPI_GET_ARP_MAP) (\r
76 IN EFI_PEI_SERVICES **PeiServices,\r
77 IN PEI_SMBUS_PPI * This,\r
78 IN OUT UINTN *Length,\r
79 IN OUT EFI_SMBUS_DEVICE_MAP **SmbusDeviceMap\r
80 );\r
81\r
82typedef\r
83EFI_STATUS\r
84(EFIAPI *PEI_SMBUS_PPI_NOTIFY) (\r
85 IN EFI_PEI_SERVICES **PeiServices,\r
86 IN PEI_SMBUS_PPI * This,\r
87 IN EFI_SMBUS_DEVICE_ADDRESS SlaveAddress,\r
88 IN UINTN Data,\r
89 IN PEI_SMBUS_NOTIFY_FUNCTION NotifyFunction\r
90 );\r
91\r
8cdb2112 92struct _PEI_SMBUS_PPI {\r
3eb9473e 93 PEI_SMBUS_PPI_EXECUTE_OPERATION Execute;\r
94 PEI_SMBUS_PPI_ARP_DEVICE ArpDevice;\r
95 PEI_SMBUS_PPI_GET_ARP_MAP GetArpMap;\r
96 PEI_SMBUS_PPI_NOTIFY Notify;\r
8cdb2112 97};\r
3eb9473e 98\r
99extern EFI_GUID gPeiSmbusPpiGuid;\r
100\r
101#endif\r