1. id_irq is a u_short

2. "irq ?" sets it to (u_short)-1
3. "irq #" sets it to (1<<#)
4. not specifying an interrupt sets it to 0.

Until someone else comes up with a better scheme, that's the way it is.
If you have a driver that turns the interrupt off, set it to ZERO.

If, after calling XXprobe(), id_irq is still (u_short)-1, that is the same
as if  XXprobe() failed.
This commit is contained in:
deraadt 1993-05-11 04:04:57 +00:00
parent 64f341ec2a
commit 3417c8a45b
2 changed files with 2 additions and 2 deletions

View File

@ -752,7 +752,7 @@ init_dev(dp)
dp->d_slave = dp->d_drive = dp->d_unit = UNKNOWN;
dp->d_port = (char *)0;
dp->d_portn = 0;
dp->d_irq = -1;
dp->d_irq = -2;
dp->d_drq = -1;
dp->d_maddr = 0;
dp->d_msize = 0;

View File

@ -752,7 +752,7 @@ init_dev(dp)
dp->d_slave = dp->d_drive = dp->d_unit = UNKNOWN;
dp->d_port = (char *)0;
dp->d_portn = 0;
dp->d_irq = -1;
dp->d_irq = -2;
dp->d_drq = -1;
dp->d_maddr = 0;
dp->d_msize = 0;