mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrzej Krzysztofowicz <ankry@pg.gda.pl>
To: smoku@jaszczur.org (Tomasz Sterna)
Cc: linux-kernel@vger.kernel.org
Subject: Re: standard_io_resources[]
Date: Tue, 20 Mar 2001 10:56:47 +0100 (MET)	[thread overview]
Message-ID: <200103200956.KAA21611@sunrise.pg.gda.pl> (raw)
In-Reply-To: <20010320101636.A4226@plwawtl0.pl.ccbeverages.com> from "Tomasz Sterna" at Mar 20, 2001 10:16:36 AM

"Tomasz Sterna wrote:"
> 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?

There are more problems. Eg. ali14xx (old IDE interface, mostly used on
i486-bazed systems) sometimes uses 0x074, 0x0f4 or 0x034 ports for IDE
configuration. It cannot be evidenced as all the ports mentioned here are
claimed to be used by other subsystem.

But there's another problem here: probing port 0x34 on Intel VX/HX/TX/LX/BX
chipset based systems causes system hang (interrupts are masked) as these
chipsets do not completely decode 0x34 I/O address (ie. 0x34 == 0x20 for
them)

So, the ports are used in some hardware configurations, are not used (some
of them) in others. But there is no simple way to distinguish these cases.
:(

-- 
=======================================================================
  Andrzej M. Krzysztofowicz               ankry@mif.pg.gda.pl
  phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math.,   Technical University of Gdansk

  reply	other threads:[~2001-03-20  9:58 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-20  9:16 standard_io_resources[] Tomasz Sterna
2001-03-20  9:56 ` Andrzej Krzysztofowicz [this message]
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
2001-03-22  7:40 standard_io_resources[] James Simmons
2001-03-22  7:41 standard_io_resources[] James Simmons

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=200103200956.KAA21611@sunrise.pg.gda.pl \
    --to=ankry@pg.gda.pl \
    --cc=ankry@green.mif.pg.gda.pl \
    --cc=linux-kernel@vger.kernel.org \
    --cc=smoku@jaszczur.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

all inboxes | Powered by JetHome®