version 1.12, 1993/06/09 22:36:46 |
version 1.13, 1993/07/17 16:20:24 |
Line 660 ahb_free_ecb(int unit, struct ecb *ecb, |
|
Line 660 ahb_free_ecb(int unit, struct ecb *ecb, |
|
* one to come free, starting with queued entries* |
* one to come free, starting with queued entries* |
*/ |
*/ |
if (!ecb->next) |
if (!ecb->next) |
wakeup(&ahb_data[unit].free_ecb); |
wakeup((caddr_t)&ahb_data[unit].free_ecb); |
|
|
if (!(flags & SCSI_NOMASK)) |
if (!(flags & SCSI_NOMASK)) |
splx(opri); |
splx(opri); |
Line 685 ahb_get_ecb(int unit, int flags) |
|
Line 685 ahb_get_ecb(int unit, int flags) |
|
* to come free |
* to come free |
*/ |
*/ |
while ((!(rc = ahb_data[unit].free_ecb)) && (!(flags & SCSI_NOSLEEP))) |
while ((!(rc = ahb_data[unit].free_ecb)) && (!(flags & SCSI_NOSLEEP))) |
sleep(&ahb_data[unit].free_ecb, PRIBIO); |
sleep((caddr_t)&ahb_data[unit].free_ecb, PRIBIO); |
|
|
if (rc) { |
if (rc) { |
ahb_data[unit].free_ecb = rc->next; |
ahb_data[unit].free_ecb = rc->next; |
Line 1164 ahb_timeout(int arg) |
|
Line 1164 ahb_timeout(int arg) |
|
} |
} |
} |
} |
splx(s); |
splx(s); |
timeout(ahb_timeout,arg,SLEEPTIME); |
timeout((timeout_t)ahb_timeout,(caddr_t)arg,SLEEPTIME); |
} |
} |
|
|
void |
void |