Simplistic pnp support. Needs more ids to be added.

This commit is contained in:
Doug Rabson 1999-05-30 11:14:39 +00:00
parent f7f2df54bb
commit 46e1f231cd
2 changed files with 16 additions and 2 deletions

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: sio.c,v 1.242 1999/05/22 15:47:34 dfr Exp $
* $Id: sio.c,v 1.243 1999/05/28 09:37:11 dfr Exp $
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* from: i386/isa sio.c,v 1.234
*/
@ -599,6 +599,13 @@ sioprobe(dev)
int rid;
struct resource *port;
/* Check isapnp ids */
if (isa_get_vendorid(dev)
&& isa_get_compatid(dev) != PNP_EISAID("PNP0500")
&& isa_get_compatid(dev) != PNP_EISAID("PNP0501")
&& isa_get_compatid(dev) != PNP_EISAID("PNP0502"))
return (ENXIO);
rid = 0;
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
0, ~0, IO_COMSIZE, RF_ACTIVE);

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: sio.c,v 1.242 1999/05/22 15:47:34 dfr Exp $
* $Id: sio.c,v 1.243 1999/05/28 09:37:11 dfr Exp $
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* from: i386/isa sio.c,v 1.234
*/
@ -599,6 +599,13 @@ sioprobe(dev)
int rid;
struct resource *port;
/* Check isapnp ids */
if (isa_get_vendorid(dev)
&& isa_get_compatid(dev) != PNP_EISAID("PNP0500")
&& isa_get_compatid(dev) != PNP_EISAID("PNP0501")
&& isa_get_compatid(dev) != PNP_EISAID("PNP0502"))
return (ENXIO);
rid = 0;
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
0, ~0, IO_COMSIZE, RF_ACTIVE);