1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
/*
** Copyright (c) 2015, Intel Corporation
**
** This software is licensed under the terms of the GNU General Public
** License version 2, as published by the Free Software Foundation, and
** may be copied, distributed, and modified under those terms.
**
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
*/
/****************************************************************
* Android-specific virtual hardware (goldfish devices)
****************************************************************/
#include "hw/acpi/goldfish_defs.h"
Scope(\_SB) {
/* Battery */
Device(GFBY) {
Name(_HID, "GFSH0001")
Name(_STR, Unicode("goldfish battery"))
Name(_CRS, ResourceTemplate() {
Memory32Fixed(ReadWrite,
GF_BATTERY_IOMEM_BASE,
GF_BATTERY_IOMEM_SIZE
)
Interrupt(, Edge, ActiveHigh) {
GF_BATTERY_IRQ
}
})
}
/* Events */
Device(GFEV) {
Name(_HID, "GFSH0002")
Name(_STR, Unicode("goldfish events"))
Name(_CRS, ResourceTemplate() {
Memory32Fixed(ReadWrite,
GF_EVENTS_IOMEM_BASE,
GF_EVENTS_IOMEM_SIZE
)
Interrupt(, Edge, ActiveHigh) {
GF_EVENTS_IRQ
}
})
}
/* Pipe */
Device(GFPP) {
Name(_HID, "GFSH0003")
Name(_STR, Unicode("android pipe"))
Name(_CRS, ResourceTemplate() {
Memory32Fixed(ReadWrite,
GF_PIPE_IOMEM_BASE,
GF_PIPE_IOMEM_SIZE
)
Interrupt(, Edge, ActiveHigh) {
GF_PIPE_IRQ
}
})
}
}
|