diff options
author | imp <imp@FreeBSD.org> | 1999-01-20 06:21:27 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-01-20 06:21:27 +0000 |
commit | 00736ae9131bddd05cf204fdd53a52aaf79adf63 (patch) | |
tree | 4c9e30ee3ffad6a0847cf82407827b9e244d9e38 /sys/dev/aha/ahareg.h | |
parent | 0b91534f2d2280f6af9d8d1f3067a9540ea4ffcc (diff) | |
download | FreeBSD-src-00736ae9131bddd05cf204fdd53a52aaf79adf63.zip FreeBSD-src-00736ae9131bddd05cf204fdd53a52aaf79adf63.tar.gz |
o enable plug and play support for the aha driver. Given the cumbersome
pnp system in freebsd, I'm not sure how useful this will be, but my
1542CP seems to work well in plug and play mode and does seem to
probe correctly at all the oddball addresses/irq/drqs that I tried.
[[
I was unable to get /kernel.conf or /kernel.config to read in, so
I wasn't able to verify that this method of userconfig works. that's
one thing that makes pnp so hard to use in the current scheme.
Pointers to the right new way of doing this accepted.
]]
o Add some kludges to maybe bring support for 1540A/1542A into the
driver. Since I have no 154xA cards, and the only person I know
that has them hasn't given me feedback, I'm making this commit
blind.
o Honor unit numbers that are in the config file now. This allows one
to hard wire the unit numbers (and have high unit numbers for plug
and pray devices, which can't seem to be hardwired) and have the
cards not migrate from aha1 -> aha0 should aha0 go on the fritz. I
didn't verify that hard wired scsi busses would work, but did verify
that hard wired aha addresses did work to a limited extent. Both
aha0 and aha1 must be hardwired, or when the card that was in aha0
goes away, the probe for aha0 might pick up the card that otherwise
would have been aha1.
Diffstat (limited to 'sys/dev/aha/ahareg.h')
-rw-r--r-- | sys/dev/aha/ahareg.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/sys/dev/aha/ahareg.h b/sys/dev/aha/ahareg.h index 48bb20c..82f3f4a 100644 --- a/sys/dev/aha/ahareg.h +++ b/sys/dev/aha/ahareg.h @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ahareg.h,v 1.3 1998/10/02 04:37:49 imp Exp $ + * $Id: ahareg.h,v 1.4 1998/11/10 06:44:42 gibbs Exp $ */ #ifndef _AHAREG_H_ @@ -349,6 +349,8 @@ struct aha_softc { LIST_HEAD(,ccb_hdr) pending_ccbs; u_int active_ccbs; u_int32_t aha_ccb_physbase; + aha_ccb_opcode_t ccb_sg_opcode; + aha_ccb_opcode_t ccb_ccb_opcode; aha_mbox_in_t *in_boxes; aha_mbox_out_t *out_boxes; struct scsi_sense_data *sense_buffers; @@ -428,4 +430,18 @@ int aha_cmd(struct aha_softc *aha, aha_op_t opcode, #define aha_outb(aha, port, value) \ bus_space_write_1((aha)->tag, (aha)->bsh, port, value) + +#ifndef EXTRA_AHA +#if NPNP > 0 +#define EXTRA_AHA MAX_PNP_CARDS +#else +#define EXTRA_AHA 0 +#endif +#endif + +#define NAHATOT (NAHA + EXTRA_AHA) + +#define AHA1542_PNP 0x42159004 /* ADP1542 */ +#define AHA1542_PNPCOMPAT 0xA000D040 /* PNP00A0 */ + #endif /* _AHA_H_ */ |