From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Starikovskiy Subject: Re: obtaining acpi details outside of drivers/acpi Date: Thu, 06 Sep 2007 17:27:04 +0400 Message-ID: <46E00028.1050205@gmail.com> References: <1189073769.7969.32.camel@localhost> <200709060743.42060.lenb@kernel.org> <1189079221.7969.40.camel@localhost> <200709060922.50337.lenb@kernel.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from ug-out-1314.google.com ([66.249.92.175]:55955 "EHLO ug-out-1314.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753864AbXIFN1P (ORCPT ); Thu, 6 Sep 2007 09:27:15 -0400 Received: by ug-out-1314.google.com with SMTP id z38so151178ugc for ; Thu, 06 Sep 2007 06:27:11 -0700 (PDT) In-Reply-To: <200709060922.50337.lenb@kernel.org> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: Len Brown Cc: Alan Hourihane , linux-acpi@vger.kernel.org Len Brown wrote: > On Thursday 06 September 2007 07:47, Alan Hourihane wrote: > >> Mmm. It seems acpi_video_bus_check() is static and therefore not >> available outside of video.c >> >>> BTW. I'm curious what you are trying to do. >>> There is actually quite a bit of movement in this code right now. >> Think about fbdev drivers (or some video driver).... Rather than >> bang on the hardware to try and do auto-detection of devices, it's much >> easier (and sometimes required) to just ask the system BIOS via ACPI to >> see what devices are available. >> >> I want to parse _DOD myself to see what's available in kernel space. > > It would be good to have this code in only one place > and export it from there to other parts of the kernel that need it. > I'd like to be able to not have fbdev drivers depend on the acpi video driver, > so perhaps we could have some generic interface where fbdev is the consumer > and in this case acpi/video.c is the provider? There is module autoloading code in acpi/scan.c which might be helpful. Just look for acpi_video_bus_match(). Regards, Alex. > > -Len > - > To unsubscribe from this list: send the line "unsubscribe linux-acpi" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >