acpi.c (268887) | acpi.c (268972) |
---|---|
1/*- 2 * Copyright (c) 2012 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2012 NetApp, Inc. 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: stable/10/usr.sbin/bhyve/acpi.c 268887 2014-07-19 20:13:01Z jhb $ | 26 * $FreeBSD: stable/10/usr.sbin/bhyve/acpi.c 268972 2014-07-22 03:14:37Z jhb $ |
27 */ 28 29/* 30 * bhyve ACPI table generator. 31 * 32 * Create the minimal set of ACPI tables required to boot FreeBSD (and 33 * hopefully other o/s's) by writing out ASL template files for each of 34 * the tables and the compiling them to AML with the Intel iasl compiler. --- 10 unchanged lines hidden (view full) --- 45 * MADT -> 0xf2500 (depends on #CPUs) 46 * FADT -> 0xf2600 (268 bytes) 47 * HPET -> 0xf2740 (56 bytes) 48 * FACS -> 0xf2780 (64 bytes) 49 * DSDT -> 0xf2800 (variable - can go up to 0x100000) 50 */ 51 52#include <sys/cdefs.h> | 27 */ 28 29/* 30 * bhyve ACPI table generator. 31 * 32 * Create the minimal set of ACPI tables required to boot FreeBSD (and 33 * hopefully other o/s's) by writing out ASL template files for each of 34 * the tables and the compiling them to AML with the Intel iasl compiler. --- 10 unchanged lines hidden (view full) --- 45 * MADT -> 0xf2500 (depends on #CPUs) 46 * FADT -> 0xf2600 (268 bytes) 47 * HPET -> 0xf2740 (56 bytes) 48 * FACS -> 0xf2780 (64 bytes) 49 * DSDT -> 0xf2800 (variable - can go up to 0x100000) 50 */ 51 52#include <sys/cdefs.h> |
53__FBSDID("$FreeBSD: stable/10/usr.sbin/bhyve/acpi.c 268887 2014-07-19 20:13:01Z jhb $"); | 53__FBSDID("$FreeBSD: stable/10/usr.sbin/bhyve/acpi.c 268972 2014-07-22 03:14:37Z jhb $"); |
54 55#include <sys/param.h> 56#include <sys/errno.h> 57#include <sys/stat.h> 58 59#include <paths.h> 60#include <stdarg.h> 61#include <stdio.h> --- 637 unchanged lines hidden (view full) --- 699 dsdt_indent_level = 0; 700 701 dsdt_line("/*"); 702 dsdt_line(" * bhyve DSDT template"); 703 dsdt_line(" */"); 704 dsdt_line("DefinitionBlock (\"bhyve_dsdt.aml\", \"DSDT\", 2," 705 "\"BHYVE \", \"BVDSDT \", 0x00000001)"); 706 dsdt_line("{"); | 54 55#include <sys/param.h> 56#include <sys/errno.h> 57#include <sys/stat.h> 58 59#include <paths.h> 60#include <stdarg.h> 61#include <stdio.h> --- 637 unchanged lines hidden (view full) --- 699 dsdt_indent_level = 0; 700 701 dsdt_line("/*"); 702 dsdt_line(" * bhyve DSDT template"); 703 dsdt_line(" */"); 704 dsdt_line("DefinitionBlock (\"bhyve_dsdt.aml\", \"DSDT\", 2," 705 "\"BHYVE \", \"BVDSDT \", 0x00000001)"); 706 dsdt_line("{"); |
707 dsdt_line(" Name (_S5, Package (0x02)"); | 707 dsdt_line(" Name (_S5, Package ()"); |
708 dsdt_line(" {"); 709 dsdt_line(" 0x05,"); 710 dsdt_line(" Zero,"); 711 dsdt_line(" })"); 712 713 pci_write_dsdt(); 714 715 dsdt_line(""); --- 254 unchanged lines hidden --- | 708 dsdt_line(" {"); 709 dsdt_line(" 0x05,"); 710 dsdt_line(" Zero,"); 711 dsdt_line(" })"); 712 713 pci_write_dsdt(); 714 715 dsdt_line(""); --- 254 unchanged lines hidden --- |