Skip to content
Snippets Groups Projects
Select Git revision
  • 29c5e8ce01f9dad7e24b99c21e4f836d6b0289e0
  • vme-testing default
  • ci-test
  • master
  • remoteproc
  • am625-sk-ov5640
  • pcal6534-upstreaming
  • lps22df-upstreaming
  • msc-upstreaming
  • imx8mp
  • iio/noa1305
  • vme-next
  • vme-next-4.14-rc4
  • v4.14-rc4
  • v4.14-rc3
  • v4.14-rc2
  • v4.14-rc1
  • v4.13
  • vme-next-4.13-rc7
  • v4.13-rc7
  • v4.13-rc6
  • v4.13-rc5
  • v4.13-rc4
  • v4.13-rc3
  • v4.13-rc2
  • v4.13-rc1
  • v4.12
  • v4.12-rc7
  • v4.12-rc6
  • v4.12-rc5
  • v4.12-rc4
  • v4.12-rc3
32 results

async-thread.c

Blame
  • tables.c 8.65 KiB
    /*
     *  acpi_tables.c - ACPI Boot-Time Table Parsing
     *
     *  Copyright (C) 2001 Paul Diefenbaugh <paul.s.diefenbaugh@intel.com>
     *
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     *
     *  This program is free software; you can redistribute it and/or modify
     *  it under the terms of the GNU General Public License as published by
     *  the Free Software Foundation; either version 2 of the License, or
     *  (at your option) any later version.
     *
     *  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.
     *
     *  You should have received a copy of the GNU General Public License
     *  along with this program; if not, write to the Free Software
     *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     *
     * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     *
     */
    
    #include <linux/init.h>
    #include <linux/kernel.h>
    #include <linux/smp.h>
    #include <linux/string.h>
    #include <linux/types.h>
    #include <linux/irq.h>
    #include <linux/errno.h>
    #include <linux/acpi.h>
    #include <linux/bootmem.h>
    
    #define PREFIX			"ACPI: "
    
    #define ACPI_MAX_TABLES		128
    
    static char *mps_inti_flags_polarity[] = { "dfl", "high", "res", "low" };
    static char *mps_inti_flags_trigger[] = { "dfl", "edge", "res", "level" };
    
    static struct acpi_table_desc initial_tables[ACPI_MAX_TABLES] __initdata;
    
    static int acpi_apic_instance __initdata;
    
    void acpi_table_print_madt_entry(struct acpi_subtable_header *header)
    {
    	if (!header)
    		return;
    
    	switch (header->type) {
    
    	case ACPI_MADT_TYPE_LOCAL_APIC:
    		{
    			struct acpi_madt_local_apic *p =
    			    (struct acpi_madt_local_apic *)header;
    			printk(KERN_INFO PREFIX
    			       "LAPIC (acpi_id[0x%02x] lapic_id[0x%02x] %s)\n",
    			       p->processor_id, p->id,
    			       (p->lapic_flags & ACPI_MADT_ENABLED) ? "enabled" : "disabled");
    		}
    		break;
    
    	case ACPI_MADT_TYPE_IO_APIC:
    		{
    			struct acpi_madt_io_apic *p =
    			    (struct acpi_madt_io_apic *)header;
    			printk(KERN_INFO PREFIX
    			       "IOAPIC (id[0x%02x] address[0x%08x] gsi_base[%d])\n",