public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-+ZI9xUNit7I@public.gmane.org>
To: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Cc: ACPI Developers
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>
Subject: Re: [Fwd: [Fwd: patch to include a custom dsdt]]
Date: Mon, 16 Aug 2004 09:20:49 +0200	[thread overview]
Message-ID: <20040816072049.GA25783@elf.ucw.cz> (raw)
In-Reply-To: <1092070755.2217.16.camel@dhcppc4>

Hi!

> This looks handy.
> comments?

It certainly makes life better for developers.

								Pavel

> --- linux-2.6.7/drivers/acpi/Kconfig.orig	2004-07-17 10:34:39.000000000 +0200
> +++ linux-2.6.7/drivers/acpi/Kconfig	2004-07-17 10:28:11.000000000 +0200
> @@ -204,6 +204,23 @@
>  	  If you have a legacy free Toshiba laptop (such as the Libretto L1
>  	  series), say Y.
>  
> +config ACPI_CUSTOM_TABLE
> +	bool "Include Custom ACPI Table"
> +	depends on X86
> +	depends on ACPI_INTERPRETER
> +	default ""
> +	help
> +	  Thist option is to load a custom acpi dsdt table, e.g. for buggy acpi 
> +	  implementations like on DELL inspiron 5100
> +
> +config ACPI_CUSTOM_TABLE_FILE
> +	string "Custom ACPI Table file to include"
> +	depends on ACPI_CUSTOM_TABLE
> +	default ""
> +	help
> +	  please enter the full path name to the file wich includes the AmlCode delclaration
> +
> +
>  config ACPI_DEBUG
>  	bool "Debug Statements"
>  	depends on ACPI_INTERPRETER
> --- linux-2.6.7/drivers/acpi/osl.c.orig	2004-07-17 08:39:55.000000000 +0200
> +++ linux-2.6.7/drivers/acpi/osl.c	2004-07-17 10:31:51.000000000 +0200
> @@ -55,6 +55,9 @@
>      void		    *context;
>  };
>  
> +#ifdef CONFIG_ACPI_CUSTOM_TABLE
> +#include CONFIG_ACPI_CUSTOM_TABLE_FILE
> +#endif
>  
>  #ifdef ENABLE_DEBUGGER
>  #include <linux/kdb.h>
> @@ -235,7 +238,14 @@
>  	if (!existing_table || !new_table)
>  		return AE_BAD_PARAMETER;
>  
> +#ifdef CONFIG_ACPI_CUSTOM_TABLE
> +	if (strncmp(existing_table->signature, "DSDT", 4) == 0)
> +		*new_table = (struct acpi_table_header*)AmlCode;
> +	else
> +		*new_table = NULL;
> +#else
>  	*new_table = NULL;
> +#endif
>  	return AE_OK;
>  }
>  




-- 
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!


-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285

      parent reply	other threads:[~2004-08-16  7:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-09 16:59 [Fwd: [Fwd: patch to include a custom dsdt]] Len Brown
2004-08-09 17:49 ` Karol Kozimor
     [not found]   ` <20040809174935.GA20719-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2004-08-09 19:23     ` Dominik Brodowski
2004-08-09 18:28 ` Stefan Schweizer
     [not found]   ` <e7963922040809112873fd7be4-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2004-08-09 19:41     ` Len Brown
2004-08-09 20:02       ` Stefan Schweizer
2004-08-09 20:07       ` Karol Kozimor
2004-08-09 20:30       ` Herman Sheremetyev
2004-08-11  6:20       ` Stefan Seyfried
2004-08-16  7:20 ` Pavel Machek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040816072049.GA25783@elf.ucw.cz \
    --to=pavel-+zi9xunit7i@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox