public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re:standard_io_resources[]
@ 2001-03-21 17:13 James Simmons
  2001-03-22  8:41 ` standard_io_resources[] Tomasz Sterna
  0 siblings, 1 reply; 7+ messages in thread
From: James Simmons @ 2001-03-21 17:13 UTC (permalink / raw)
  To: Tomasz Sterna; +Cc: Linux Kernel Mailing List


>Isn't that a job of the device drivers?

Well most of those resources are present on every PC motherboard.

>In KGI we have our own keyboard driver which tries to allocate the
>kayboard I/O range for itself, and when it does io_check_region() it
>fails. What should I do?

This will also be the case for 2.5.X. We already have the PS/2 keyboard
ported over to the input api. Since we can in theory have a USB system and
then later attach a PS/2 keyboard we have it so the resources are
allocated for PS/2 keyboards.

MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.

James Simmons  [jsimmons@linux-fbdev.org]               ____/|
fbdev/console/gfx developer                             \ o.O|
http://www.linux-fbdev.org                               =(_)=
http://linuxgfx.sourceforge.net                            U
http://linuxconsole.sourceforge.net


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: standard_io_resources[]
@ 2001-03-22  7:41 James Simmons
  0 siblings, 0 replies; 7+ messages in thread
From: James Simmons @ 2001-03-22  7:41 UTC (permalink / raw)
  To: Jeff Garzik; +Cc: Linux Kernel Mailing List


>If you write into those resources and they are absent, bad things
>sometimes happen.  So, they are always added to the reserved-resource
>list.  I already had this argument with Linus :)

Oops. Got that wrong. Time to fix CVS.

MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.

James Simmons  [jsimmons@linux-fbdev.org]               ____/|
fbdev/console/gfx developer                             \ o.O|
http://www.linux-fbdev.org                               =(_)=
http://linuxgfx.sourceforge.net                            U
http://linuxconsole.sourceforge.net


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: standard_io_resources[]
@ 2001-03-22  7:40 James Simmons
  0 siblings, 0 replies; 7+ messages in thread
From: James Simmons @ 2001-03-22  7:40 UTC (permalink / raw)
  To: Tomasz Sterna; +Cc: Linux Kernel Mailing List


>I still can't see a reason for allocating it before the device drivers
>could do that.

See Jeff's response. We got it wrong as well :-( Time to fix that.

>What is the "input api"? Could You give me any URL to read?

http://www.suse.cz/development/inputhttp://www.suse.cz/development/

And http://linuxconsole.sourceforge.net which is a project that takes
advantage of using the input layer for the console system and a massive
cleanup of the fbdev layer.

MS: (n) 1. A debilitating and surprisingly widespread affliction that
renders the sufferer barely able to perform the simplest task. 2. A disease.

James Simmons  [jsimmons@linux-fbdev.org]               ____/|
fbdev/console/gfx developer                             \ o.O|
http://www.linux-fbdev.org                               =(_)=
http://linuxgfx.sourceforge.net                            U
http://linuxconsole.sourceforge.net


^ permalink raw reply	[flat|nested] 7+ messages in thread
* standard_io_resources[]
@ 2001-03-20  9:16 Tomasz Sterna
  2001-03-20  9:56 ` standard_io_resources[] Andrzej Krzysztofowicz
  0 siblings, 1 reply; 7+ messages in thread
From: Tomasz Sterna @ 2001-03-20  9:16 UTC (permalink / raw)
  To: linux-kernel

I couldn't find a maintainer of the code, so I'm writing here.

In kernel 2.4.1 in arch/i386/kernel/setup.c there is:

--- arch/i386/kernel/setup.c
struct resource standard_io_resources[] = {
        { "dma1", 0x00, 0x1f, IORESOURCE_BUSY },
        { "pic1", 0x20, 0x3f, IORESOURCE_BUSY },
        { "timer", 0x40, 0x5f, IORESOURCE_BUSY },
        { "keyboard", 0x60, 0x6f, IORESOURCE_BUSY },
        { "dma page reg", 0x80, 0x8f, IORESOURCE_BUSY },
        { "pic2", 0xa0, 0xbf, IORESOURCE_BUSY },
        { "dma2", 0xc0, 0xdf, IORESOURCE_BUSY },
        { "fpu", 0xf0, 0xff, IORESOURCE_BUSY }
};
---

which fix-allocate some io-resources.
What is the reason for that?
Isn't that a job of the device drivers?

In KGI we have our own keyboard driver which tries to allocate the 
kayboard I/O range for itself, and when it does io_check_region() it 
fails. What should I do?


-- 
http://www.jaszczur.org/~smoku/

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2001-03-22 15:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-03-21 17:13 James Simmons
2001-03-22  8:41 ` standard_io_resources[] Tomasz Sterna
2001-03-22 10:38   ` standard_io_resources[] Jeff Garzik
  -- strict thread matches above, loose matches on Subject: below --
2001-03-22  7:41 standard_io_resources[] James Simmons
2001-03-22  7:40 standard_io_resources[] James Simmons
2001-03-20  9:16 standard_io_resources[] Tomasz Sterna
2001-03-20  9:56 ` standard_io_resources[] Andrzej Krzysztofowicz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox