1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright (C) 2015, Bin Meng <bmeng.cn@gmail.com>
9 /* Programmable Attribute Map (PAM) Registers */
10 #define I440FX_PAM 0x59
15 /* X-Bus Chip Select Register */
17 #define APIC_EN (1 << 8)
19 /* IDE Timing Register */
22 #define IDE_DECODE_EN (1 << 15)
24 /* PCIe ECAM Base Address Register */
25 #define PCIEX_BAR 0x60
26 #define BAR_EN (1 << 0)
29 #define CMOS_ADDR_PORT 0x70
30 #define CMOS_DATA_PORT 0x71
32 #define LOW_RAM_ADDR 0x34
33 #define HIGH_RAM_ADDR 0x35
37 #define PMREGMISC 0x80
38 #define PMIOSE (1 << 0)
41 * qemu_get_low_memory_size() - Get low memory size
43 * @return: size of memory below 4GiB
45 u32 qemu_get_low_memory_size(void);
47 #endif /* _ARCH_QEMU_H_ */