ncr53c9xvar.h (145202) | ncr53c9xvar.h (146392) |
---|---|
1/* $NetBSD: ncr53c9xvar.h,v 1.46 2005/02/04 02:10:36 perry Exp $ */ 2 3/*- 4 * Copyright (c) 1997 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 52 unchanged lines hidden (view full) --- 61 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 62 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 63 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 64 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 65 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 66 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 67 */ 68 | 1/* $NetBSD: ncr53c9xvar.h,v 1.46 2005/02/04 02:10:36 perry Exp $ */ 2 3/*- 4 * Copyright (c) 1997 The NetBSD Foundation, Inc. 5 * All rights reserved. 6 * 7 * This code is derived from software contributed to The NetBSD Foundation 8 * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility, --- 52 unchanged lines hidden (view full) --- 61 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 62 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 63 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 64 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 65 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 66 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 67 */ 68 |
69/* $FreeBSD: head/sys/dev/esp/ncr53c9xvar.h 145202 2005-04-17 17:44:01Z marius $ */ | 69/* $FreeBSD: head/sys/dev/esp/ncr53c9xvar.h 146392 2005-05-19 14:51:10Z marius $ */ |
70 71#ifndef _DEV_IC_NCR53C9XVAR_H_ 72#define _DEV_IC_NCR53C9XVAR_H_ 73 74#include <sys/lock.h> 75 76/* Set this to 1 for normal debug, or 2 for per-target tracing. */ 77/* #define NCR53C9X_DEBUG 2 */ --- 16 unchanged lines hidden (view full) --- 94#define NCR_VARIANT_NCR53C94 3 95#define NCR_VARIANT_NCR53C96 4 96#define NCR_VARIANT_ESP406 5 97#define NCR_VARIANT_FAS408 6 98#define NCR_VARIANT_FAS216 7 99#define NCR_VARIANT_AM53C974 8 100#define NCR_VARIANT_FAS366 9 101#define NCR_VARIANT_NCR53C90_86C01 10 | 70 71#ifndef _DEV_IC_NCR53C9XVAR_H_ 72#define _DEV_IC_NCR53C9XVAR_H_ 73 74#include <sys/lock.h> 75 76/* Set this to 1 for normal debug, or 2 for per-target tracing. */ 77/* #define NCR53C9X_DEBUG 2 */ --- 16 unchanged lines hidden (view full) --- 94#define NCR_VARIANT_NCR53C94 3 95#define NCR_VARIANT_NCR53C96 4 96#define NCR_VARIANT_ESP406 5 97#define NCR_VARIANT_FAS408 6 98#define NCR_VARIANT_FAS216 7 99#define NCR_VARIANT_AM53C974 8 100#define NCR_VARIANT_FAS366 9 101#define NCR_VARIANT_NCR53C90_86C01 10 |
102#define NCR_VARIANT_MAX 11 | 102#define NCR_VARIANT_FAS100A 11 103#define NCR_VARIANT_FAS236 12 104#define NCR_VARIANT_MAX 13 |
103 104/* XXX Max tag depth. Should this be defined in the register header? */ 105#define NCR_TAG_DEPTH 256 106 107/* 108 * ECB. Holds additional information for each SCSI command Comments: We 109 * need a separate scsi command block because we may need to overwrite it 110 * with a request sense command. Basicly, we refrain from fiddling with --- 217 unchanged lines hidden (view full) --- 328 329 /* Message stuff */ 330 u_short sc_msgify; /* IDENTIFY message associated with this nexus */ 331 u_short sc_msgout; /* What message is on its way out? */ 332 u_short sc_msgpriq; /* One or more messages to send (encoded) */ 333 u_short sc_msgoutq; /* What messages have been sent so far? */ 334 335 u_char *sc_omess; /* MSGOUT buffer */ | 105 106/* XXX Max tag depth. Should this be defined in the register header? */ 107#define NCR_TAG_DEPTH 256 108 109/* 110 * ECB. Holds additional information for each SCSI command Comments: We 111 * need a separate scsi command block because we may need to overwrite it 112 * with a request sense command. Basicly, we refrain from fiddling with --- 217 unchanged lines hidden (view full) --- 330 331 /* Message stuff */ 332 u_short sc_msgify; /* IDENTIFY message associated with this nexus */ 333 u_short sc_msgout; /* What message is on its way out? */ 334 u_short sc_msgpriq; /* One or more messages to send (encoded) */ 335 u_short sc_msgoutq; /* What messages have been sent so far? */ 336 337 u_char *sc_omess; /* MSGOUT buffer */ |
338 int sc_omess_self; /* MSGOUT buffer is self-allocated */ |
|
336 caddr_t sc_omp; /* Message pointer (for multibyte messages) */ 337 size_t sc_omlen; 338 u_char *sc_imess; /* MSGIN buffer */ | 339 caddr_t sc_omp; /* Message pointer (for multibyte messages) */ 340 size_t sc_omlen; 341 u_char *sc_imess; /* MSGIN buffer */ |
342 int sc_imess_self; /* MSGIN buffer is self-allocated */ |
|
339 caddr_t sc_imp; /* Message pointer (for multibyte messages) */ 340 size_t sc_imlen; 341 342 caddr_t sc_cmdp; /* Command pointer (for DMAed commands) */ 343 size_t sc_cmdlen; /* Size of command in transit */ 344 345 /* Hardware attributes */ 346 int sc_freq; /* SCSI bus frequency in MHz */ --- 107 unchanged lines hidden (view full) --- 454/* 455 * Macro to convert the chip register Clock Per Byte value to 456 * Synchronous Transfer Period. 457 */ 458#define ncr53c9x_cpb2stp(sc, cpb) \ 459 ((250 * (cpb)) / (sc)->sc_freq) 460 461int ncr53c9x_attach(struct ncr53c9x_softc *); | 343 caddr_t sc_imp; /* Message pointer (for multibyte messages) */ 344 size_t sc_imlen; 345 346 caddr_t sc_cmdp; /* Command pointer (for DMAed commands) */ 347 size_t sc_cmdlen; /* Size of command in transit */ 348 349 /* Hardware attributes */ 350 int sc_freq; /* SCSI bus frequency in MHz */ --- 107 unchanged lines hidden (view full) --- 458/* 459 * Macro to convert the chip register Clock Per Byte value to 460 * Synchronous Transfer Period. 461 */ 462#define ncr53c9x_cpb2stp(sc, cpb) \ 463 ((250 * (cpb)) / (sc)->sc_freq) 464 465int ncr53c9x_attach(struct ncr53c9x_softc *); |
462int ncr53c9x_detach(struct ncr53c9x_softc *, int); | 466int ncr53c9x_detach(struct ncr53c9x_softc *); |
463void ncr53c9x_action(struct cam_sim *, union ccb *); 464void ncr53c9x_reset(struct ncr53c9x_softc *); 465void ncr53c9x_intr(void *); 466void ncr53c9x_init(struct ncr53c9x_softc *, int); 467 468#endif /* _DEV_IC_NCR53C9XVAR_H_ */ | 467void ncr53c9x_action(struct cam_sim *, union ccb *); 468void ncr53c9x_reset(struct ncr53c9x_softc *); 469void ncr53c9x_intr(void *); 470void ncr53c9x_init(struct ncr53c9x_softc *, int); 471 472#endif /* _DEV_IC_NCR53C9XVAR_H_ */ |