Use irq_tok() instead of num_tok() for IRQ's. This will allow us to use

the '?' (undefined) token for stating IRQ's in the driver config line.

This will allow the card to automatically select and unused IRQ when
that code is enabled.
This commit is contained in:
Nate Williams 1996-06-19 01:08:58 +00:00
parent 61d16cdb21
commit 29f0bf5478
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16493

View file

@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: file.c,v 1.5 1996/06/18 19:52:29 nate Exp $
* $Id: file.c,v 1.6 1996/06/18 23:50:51 nate Exp $
*/
#include <stdio.h>
#include <stdlib.h>
@ -184,7 +184,7 @@ parse_card(void)
confp = xmalloc(sizeof(*confp));
man = next_tok();
confp->driver = new_driver(man);
confp->irq = num_tok();
confp->irq = irq_tok(1);
confp->flags = num_tok();
if (confp->flags == -1) {
pusht = 1;