diff options
author | ken <ken@FreeBSD.org> | 2001-03-16 22:20:19 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2001-03-16 22:20:19 +0000 |
commit | 8d74e08df53b4e20f79a31d6950d4faf882e0983 (patch) | |
tree | cc8c210e3d9f6f59b2fe6fe54f961fb48f74174b /sys/dev/aic/aicvar.h | |
parent | 4265a70a5f8db0542b59be3797c042d4e5698fef (diff) | |
download | FreeBSD-src-8d74e08df53b4e20f79a31d6950d4faf882e0983.zip FreeBSD-src-8d74e08df53b4e20f79a31d6950d4faf882e0983.tar.gz |
Fix a few things in the aic(4) driver:
- enable 10MHz (fast SCSI) operation on boards that support it. (only
aic6360 boards with fast SCSI enabled can do it)
- bounds check sync periods and offsets passed in from the transport layer
- tell the user which resource allocation failed (for the ISA probe) if we
weren't able to allocate an IRQ, DRQ or I/O port.
Diffstat (limited to 'sys/dev/aic/aicvar.h')
-rw-r--r-- | sys/dev/aic/aicvar.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/aic/aicvar.h b/sys/dev/aic/aicvar.h index 9b3c979..d86e49f 100644 --- a/sys/dev/aic/aicvar.h +++ b/sys/dev/aic/aicvar.h @@ -91,6 +91,9 @@ struct aic_softc { struct aic_tinfo tinfo[8]; struct aic_scb scbs[256]; + + int min_period; + int max_period; }; #define AIC_DISC_ENABLE 0x01 @@ -100,6 +103,7 @@ struct aic_softc { #define AIC_RESOURCE_SHORTAGE 0x10 #define AIC_DROP_MSGIN 0x20 #define AIC_BUSFREE_OK 0x40 +#define AIC_FAST_ENABLE 0x80 #define AIC_IDLE 0x00 #define AIC_SELECTING 0x01 @@ -114,6 +118,8 @@ struct aic_softc { #define AIC_MSG_MSGBUF 0x80 #define AIC_SYNC_PERIOD (200 / 4) +#define AIC_FAST_SYNC_PERIOD (100 / 4) +#define AIC_MIN_SYNC_PERIOD 112 #define AIC_SYNC_OFFSET 8 #define aic_inb(aic, port) \ |