Subject: None
To: None <tech-kern@NetBSD.ORG>
From: Martin Husemann <martin@rumolt.teuto.de>
List: tech-kern
Date: 09/22/1997 06:50:31
Hi all - I've got a problem I would like your opinion:
An ISAPNP card maps the following isa io ranges:
> isic0 at isapnp0 port 0x580/32,0x180/64 irq 10: Teles S0/16.3
So I have the following mapped by the PnP driver:
> io region #0: base 0580 min 0580 max 0580 len 0020
> io region #1: base 0180 min 0180 max 0180 len 0040
> interrupt #0: irq 10
What the card driver realy needs to access are the ports
at 0x560 - 0x582 and 0x160 - 0x200.
I'm quite sure this violates the PnP specs, but what should I do?
I think right now (at least on port-i386) nothing in the kernel
will prevent me from using negative offsets with the bus_space_read/write
macros, so I will get this working. But I don't realy like this...
Should I map additional bus_space_region's in my driver and use that?
Martin