On Thu, 18 Oct 2001, CICCARELLO, Joseph wrote:
> I'm also running a single chip computer based on the SC400 See:
> http://www.ssv-embedded.de/ssv/pc104/p169.htm

I didn't test it on the PC/104 boards from SSV, but I assume the problem
will be the same there as well. I'm currently working with the DNP (which
has an SC410).

The kernel requests the ressources here:

-----$KERNEL/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 }
};
[...]
/* request I/O space for devices used on all i[345]86 PCs */
for (i = 0; i < STANDARD_IO_RESOURCES; i++)
  request_resource(&ioport_resource, standard_io_resources+i);
-------------------------------------------

> It seem to work fine, but i don't know if the kernel have been patched
> or not.

According to the SSV people (I've talked to them yesterday) they have not,
at least not for the DNP (for some PC/104 boards they definitely have).
But I'm not sure if somebody ever tested to write a real driver for the
ioports - SSV proposes to write user space programs, which works just find
(e.g. the dipswitch.c example). The only example I could find on the CD is
the rtlinux demo which writes to the ports without calling check_region()
and request_region().

The question is: is the output from the kernel correct, does the 8259
really use more than 0x0020 and 0x0021? I couldn't find any reasonable
information, the only hint is that the original 8259 has only one address
line. But if this is correct it's the question why the kernel requests
more than that.

Robert
-- 
 +--------------------------------------------------------+
 |             Dipl.-Ing. Robert Schwebel                 |
 |      Linux Solutions for Science and Industry          |
 |  Braunschweiger Straße 79, 31134 Hildesheim, Germany   |
 |     Phone: +49-5121-28619-0  Fax: +49-5121-28619-4     |
 +--------------------------------------------------------+


--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to