From owner-freebsd-mobile Wed Sep 24 08:36:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id IAA05311 for mobile-outgoing; Wed, 24 Sep 1997 08:36:01 -0700 (PDT) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id IAA05285; Wed, 24 Sep 1997 08:35:55 -0700 (PDT) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.5/8.6.9) id BAA01330; Thu, 25 Sep 1997 01:33:16 +1000 Date: Thu, 25 Sep 1997 01:33:16 +1000 From: Bruce Evans Message-Id: <199709241533.BAA01330@godzilla.zeta.org.au> To: nate@mt.sri.com, se@FreeBSD.ORG Subject: Re: PCCARD in -current broken Cc: current@FreeBSD.ORG, mobile@FreeBSD.ORG Sender: owner-freebsd-mobile@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk >On Sep 23, Nate Williams wrote: >>... >> So, can I rely on register_intr() return a negative # for failure? No, it sometimes returns > 0 for failure, sometimes -1. This is incompatible with the old register_intr(), which always returned > 0 (e.g., EBUSY) for failure. >Well, if it fails for you, then there definitely is >a bug in the check I added to add_intrdesc(), which >is there to avoid just this situation. pccard arctually checks for != 0 for failure, so it should have no problems with this incompatibilty. >Looks fine to me. Lets see what happens after you call >register_intr(): >... >Well, in fact you should see the "device combination doesn't support ..." >message printed, when you call register_intr() to check for the interrupt >to be available. If you don't then there is a good chance, that you perform This part works fine :-). I see these messages a lot because I register some interrupts in drivers and isa_configure() attempts to register them again. Bruce