repo.or.cz
/
coreboot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
payloads/edk2: Disable the CPU Timer Lib unless supported
[coreboot.git]
/
src
/
mainboard
/
system76
/
kbl-u
/
acpi
/
hid.asl
blob
6610c2e1bc2ce3d0fb741b4d15645fea708606ee
1
/* SPDX-License-Identifier: GPL-2.0-only */
2
3
Device (HIDD)
4
{
5
Name (_HID, "INT33D5")
6
Name (HBSY, Zero)
7
Name (HIDX, Zero)
8
Name (HRDY, Zero)
9
10
Method (HDEM, 0, Serialized)
11
{
12
HBSY = Zero
13
Return (HIDX)
14
}
15
16
Method (HDMM, 0, Serialized)
17
{
18
Return (Zero)
19
}
20
21
Method (HDSM, 1, Serialized)
22
{
23
HRDY = Arg0
24
}
25
26
Method (HPEM, 1, Serialized)
27
{
28
HBSY = One
29
HIDX = Arg0
30
31
Notify (HIDD, 0xC0)
32
Local0 = Zero
33
While ((Local0 < 0xFA) && HBSY)
34
{
35
Sleep (0x04)
36
Local0++
37
}
38
39
If (HBSY == One)
40
{
41
HBSY = Zero
42
HIDX = Zero
43
Return (One)
44
}
45
Else
46
{
47
Return (Zero)
48
}
49
}
50
}