From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?ISO-8859-1?Q?Robert_W=F6rle?= Subject: Re: Tablet PC + 2.4.18 + acpi 20020726 + swsup11 working ! Date: Wed, 07 Aug 2002 08:48:08 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <3D50C2A8.5070702@symplon.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Return-path: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Help: List-Post: List-Subscribe: , List-Unsubscribe: , List-Archive: To: "Randy.Dunlap" Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Randy.Dunlap schrieb: >On Tue, 6 Aug 2002, Robert Wörle wrote: > >| Ducrot Bruno schrieb: >| >| >On Tue, Aug 06, 2002 at 03:28:27PM +0200, Jörg Sonnenberger wrote: >| > >| > >| >>Am Dienstag, 6. August 2002 14:04 schrieb Robert Wörle: >| >> >| >> >| >>>So what is this pci1 and pic2 thing ??? and why is it residing at my >| >>>wanted IO ??? >| >>> >| >>> >| >>Let me guess: PIC = Programmable Interrupt Controller, >| >>so I think you don't wanna mess with it! The interesting question is, why is >| >>your device in this range? This ports are reserved since the days of IBM's >| >>good old AT. >| >> >| >> >| >> >| > >| >Well, not all those ports are used by the original 8259A. And the PIC 2, is >| >'only' at range A0-AF, according to Ralf Brown list. Linux extend it a little, >| >but I don't know why. >| > >| > >| > >| Tell me guys , what driver is this pic2 .. where can i found the >| according **.c to have some try`S and modify it >| so if it doesnt need these ports then i can use them for my purposes ... > >The IO space for PIC1 and PIC2 is reserved in >linux/arch/i386/kernel/setup.c, around line 330 in 2.4.18/2.4.19, >in the array standard_io_resources[]. >You might be able to make the granularity of that definition >finer so that some of the IO addresses aren't reserved. > > Thank you , i found it at setup.c ... and i ll now try to free my needed area with something like this: {"pic2",0xa0,0xb0,IORESOURCE_BUSY}, ("pic2",0xb3,0xbf,IORESOURCE_BUSY},---- after that i should (=?!) have 0xb1-0xb2 free to be mapped by my driver ... >Regarding someone else's email about Linux using only addresses >0xa0 and 0xa1 for PIC2: >That's probably correct. The PIC internal registers are addressed >by ICWn and OCWn, which are dependent on the data values written. >The other IO addresses that are reserved (like 0xa4-5, 0xa8-9, >0xac-d, 0xb0-1, 0xb4-5, 0xb8-9, 0xbc-d) are ghosts (duplicates) >of the base IO addresses (0xa0-0xa1), due to incomplete IO address >line decoding. > > > -- _____________________________________ *Robert Wörle Linux | Embedded Device* * Symplon AG* *...touch the internet* phone: +49 89 552 999 35 fax: +49 89 552 999 10 email: robert.woerle-y2s3ugBAdl9BDgjK7y7TUQ@public.gmane.org web: www.symplon.com _____________________________________ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf