1#
2# Copyright 2017, Data61
3# Commonwealth Scientific and Industrial Research Organisation (CSIRO)
4# ABN 41 687 119 230.
5#
6# This software may be distributed and modified according to the terms of
7# the GNU General Public License version 2. Note that NO WARRANTY is provided.
8# See "LICENSE_GPLv2.txt" for details.
9#
10# @TAG(DATA61_GPL)
11#
12
13cmake_minimum_required(VERSION 3.7.2)
14
15config_option(KernelIOMMU IOMMU
16    "IOMMU support for VT-d enabled chipset"
17    DEFAULT ON
18    DEPENDS "KernelPlatPC99; NOT KernelVerificationBuild" DEFAULT_DISABLED OFF
19)
20
21config_string(KernelMaxRMRREntries MAX_RMRR_ENTRIES
22    "Setsthe maximum number of Reserved Memory Region Reporting structures we support \
23    recording from the ACPI tables"
24    DEFAULT 32
25    DEPENDS "KernelIOMMU" DEFAULT_DISABLED 1
26    UNQUOTE
27)
28
29add_sources(
30    DEP "KernelPlatPC99"
31    PREFIX src/plat/pc99/machine
32    CFILES
33        acpi.c
34        hardware.c
35        pic.c
36        ioapic.c
37        pit.c
38        io.c
39        intel-vtd.c
40)
41
42add_bf_source_old("KernelSel4ArchX86_64" "hardware.bf" "include/plat/pc99/plat/64" "plat_mode/machine")
43add_bf_source_old("KernelSel4ArchIA32" "hardware.bf" "include/plat/pc99/plat/32" "plat_mode/machine")
44