TianoCore EDK2 master
Loading...
Searching...
No Matches
HardwareInterrupt2.h
Go to the documentation of this file.
1
9#ifndef __HARDWARE_INTERRUPT2_H__
10#define __HARDWARE_INTERRUPT2_H__
11
13
14// 22838932-1a2d-4a47-aaba-f3f7cf569470
15
16#define EFI_HARDWARE_INTERRUPT2_PROTOCOL_GUID \
17 { 0x32898322, 0x2d1a, 0x474a, \
18 { 0xba, 0xaa, 0xf3, 0xf7, 0xcf, 0x56, 0x94, 0x70 } }
19
20typedef enum {
21 EFI_HARDWARE_INTERRUPT2_TRIGGER_LEVEL_LOW,
22 EFI_HARDWARE_INTERRUPT2_TRIGGER_LEVEL_HIGH,
23 EFI_HARDWARE_INTERRUPT2_TRIGGER_EDGE_FALLING,
24 EFI_HARDWARE_INTERRUPT2_TRIGGER_EDGE_RISING,
25} EFI_HARDWARE_INTERRUPT2_TRIGGER_TYPE;
26
29
41typedef
45 IN HARDWARE_INTERRUPT_SOURCE Source,
47 );
48
59typedef
63 IN HARDWARE_INTERRUPT_SOURCE Source
64 );
65
76typedef
80 IN HARDWARE_INTERRUPT_SOURCE Source
81 );
82
94typedef
98 IN HARDWARE_INTERRUPT_SOURCE Source,
99 IN BOOLEAN *InterruptState
100 );
101
113typedef
117 IN HARDWARE_INTERRUPT_SOURCE Source
118 );
119
131typedef
135 IN HARDWARE_INTERRUPT_SOURCE Source,
136 OUT EFI_HARDWARE_INTERRUPT2_TRIGGER_TYPE *TriggerType
137 );
138
150typedef
154 IN HARDWARE_INTERRUPT_SOURCE Source,
155 IN EFI_HARDWARE_INTERRUPT2_TRIGGER_TYPE TriggerType
156 );
157
159 HARDWARE_INTERRUPT2_REGISTER RegisterInterruptSource;
160 HARDWARE_INTERRUPT2_ENABLE EnableInterruptSource;
161 HARDWARE_INTERRUPT2_DISABLE DisableInterruptSource;
162 HARDWARE_INTERRUPT2_INTERRUPT_STATE GetInterruptSourceState;
164
165 // v2 members
168};
169
170extern EFI_GUID gHardwareInterrupt2ProtocolGuid;
171
172#endif
EFI_STATUS(EFIAPI * HARDWARE_INTERRUPT2_DISABLE)(IN EFI_HARDWARE_INTERRUPT2_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source)
EFI_STATUS(EFIAPI * HARDWARE_INTERRUPT2_REGISTER)(IN EFI_HARDWARE_INTERRUPT2_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source, IN HARDWARE_INTERRUPT_HANDLER Handler)
EFI_STATUS(EFIAPI * HARDWARE_INTERRUPT2_END_OF_INTERRUPT)(IN EFI_HARDWARE_INTERRUPT2_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source)
EFI_STATUS(EFIAPI * HARDWARE_INTERRUPT2_ENABLE)(IN EFI_HARDWARE_INTERRUPT2_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source)
EFI_STATUS(EFIAPI * HARDWARE_INTERRUPT2_GET_TRIGGER_TYPE)(IN EFI_HARDWARE_INTERRUPT2_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source, OUT EFI_HARDWARE_INTERRUPT2_TRIGGER_TYPE *TriggerType)
EFI_STATUS(EFIAPI * HARDWARE_INTERRUPT2_INTERRUPT_STATE)(IN EFI_HARDWARE_INTERRUPT2_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source, IN BOOLEAN *InterruptState)
EFI_STATUS(EFIAPI * HARDWARE_INTERRUPT2_SET_TRIGGER_TYPE)(IN EFI_HARDWARE_INTERRUPT2_PROTOCOL *This, IN HARDWARE_INTERRUPT_SOURCE Source, IN EFI_HARDWARE_INTERRUPT2_TRIGGER_TYPE TriggerType)
VOID(EFIAPI * HARDWARE_INTERRUPT_HANDLER)(IN HARDWARE_INTERRUPT_SOURCE Source, IN EFI_SYSTEM_CONTEXT SystemContext)
#define IN
Definition: Base.h:279
#define OUT
Definition: Base.h:284
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
Definition: Base.h:213