diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2003-12-16 09:29:36 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 2003-12-16 09:29:36 +0000 |
commit | 299d7d06d7aeff8f26b4beb5c60a49b9bdf37454 (patch) | |
tree | 76a0ba3b4a8b8448d4734b397c90997da648aabb /sys/dev | |
parent | b8cb5d34f0c50518ba6f21423cb5b2f6417665cd (diff) |
Compute openings value, out of boot-time count of devices.
Add reentrancy check of gdt_exec_ccb. The latter change changes timing enough
to not trigger a timing bug on really fast machines too often.
A real fix is being worked on.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ic/gdtvar.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/dev/ic/gdtvar.h b/sys/dev/ic/gdtvar.h index c37563e575c..1ac9f03bcdf 100644 --- a/sys/dev/ic/gdtvar.h +++ b/sys/dev/ic/gdtvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: gdtvar.h,v 1.8 2003/06/03 20:49:28 deraadt Exp $ */ +/* $OpenBSD: gdtvar.h,v 1.9 2003/12/16 09:29:35 niklas Exp $ */ /* * Copyright (c) 1999, 2000 Niklas Hallqvist. All rights reserved. @@ -29,6 +29,8 @@ * from both ICP-Vortex and Öko.neT. I want to thank them for their support. */ +#define GDT_CMD_RESERVE 4 /* Internal driver cmd reserve. */ + #define GDT_IOCTL_DUMMY _IOWR('B', 32, struct gdt_dummy) struct gdt_dummy { void *cookie; @@ -297,6 +299,8 @@ struct gdt_softc { LIST_HEAD(, scsi_xfer) sc_queue; struct scsi_xfer *sc_queuelast; + int sc_ndevs; + u_int16_t sc_cmd_len; u_int16_t sc_cmd_off; u_int16_t sc_cmd_cnt; |