diff options
author | Noriaki Mitsunaga <non@FreeBSD.org> | 2001-07-14 00:38:51 +0000 |
---|---|---|
committer | Noriaki Mitsunaga <non@FreeBSD.org> | 2001-07-14 00:38:51 +0000 |
commit | b45f9c03c729f14dfe22aa7e74134bcf934c89e4 (patch) | |
tree | 01f4c48045db66f0e363a543a36a88e13470d6c9 /sys/dev/ncv/ncr53c500var.h | |
parent | 9516fbd6d9ad46b9442f6e8933d0c3dc76b1bee6 (diff) | |
download | src-b45f9c03c729f14dfe22aa7e74134bcf934c89e4.tar.gz src-b45f9c03c729f14dfe22aa7e74134bcf934c89e4.zip |
Catch up with NetBSD/pc98.
o Much cleanly separate NetBSD(XS) / FreeBSD(CAM) codes.
o Improve tagged queing support (full QTAG).
o Improve quirk support.
o Improve parity error retry.
o Impliment wide negotheation.
o Cmd link support.
o Add copyright of CAM part.
o Change for CAM_NEW_TRAN_CODE.
o Work around for buggy KME UJDCD450.
o stg: add disconnet condition.
o nsp: use suspend I/O.
and more. I thank Honda-san.
conf/options.pc98: add CT_USE_RELOCATE_OFFSET and CT_BUS_WEIGHT
dev/{ct,ncv,nsp,stg}/*_{pccard,isa}.c: add splcam() before calling
attach/detach functions.
Tested by: bsd-nomads
Obtained from: NetBSD/pc98
Notes
Notes:
svn path=/head/; revision=79697
Diffstat (limited to 'sys/dev/ncv/ncr53c500var.h')
-rw-r--r-- | sys/dev/ncv/ncr53c500var.h | 40 |
1 files changed, 26 insertions, 14 deletions
diff --git a/sys/dev/ncv/ncr53c500var.h b/sys/dev/ncv/ncr53c500var.h index f040b1743401..21f4032072f4 100644 --- a/sys/dev/ncv/ncr53c500var.h +++ b/sys/dev/ncv/ncr53c500var.h @@ -1,12 +1,12 @@ /* $FreeBSD$ */ -/* $NecBSD: ncr53c500var.h,v 1.11 1998/11/28 18:42:42 honda Exp $ */ +/* $NecBSD: ncr53c500var.h,v 1.11.18.1 2001/06/08 06:27:45 honda Exp $ */ /* $NetBSD$ */ /* * [NetBSD for NEC PC-98 series] - * Copyright (c) 1995, 1996, 1997, 1998 + * Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2001 * NetBSD/pc98 porting staff. All rights reserved. - * Copyright (c) 1995, 1996, 1997, 1998 + * Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2001 * Naofumi HONDA. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -42,18 +42,20 @@ struct ncv_softc { struct scsi_low_softc sc_sclow; /* generic data */ +#ifdef __NetBSD__ bus_space_tag_t sc_iot; bus_space_tag_t sc_memt; bus_space_handle_t sc_ioh; void *sc_ih; - int sc_wc; /* weight counter */ - int sc_selstop; /* sel atn stop asserted */ - int sc_compseq; /* completion seq cmd asserted */ - int sc_tdatalen; /* temp xfer data len */ +#endif /* __NetBSD__ */ - struct ncv_hw sc_hw; /* hardware register images */ -#if defined (__FreeBSD__) && __FreeBSD_version >= 400001 +#ifdef __FreeBSD__ + bus_space_tag_t sc_iot; + bus_space_tag_t sc_memt; + bus_space_handle_t sc_ioh; + +#if __FreeBSD_version >= 400001 int port_rid; int port_rid_dmy; int irq_rid; @@ -62,19 +64,29 @@ struct ncv_softc { struct resource *port_res_dmy; struct resource *irq_res; struct resource *mem_res; + void *ncv_intrhand; -#endif +#endif /* __FreeBSD_version__ */ +#endif /* __FreeBSD__ */ + + int sc_tmaxcnt; + int sc_selstop; /* sel atn stop asserted */ + int sc_compseq; /* completion seq cmd asserted */ + int sc_sdatalen; /* start datalen */ + int sc_tdatalen; /* temp xfer data len */ + + struct ncv_hw sc_hw; /* hardware register images */ }; /***************************************************************** - * Target information + * Lun information *****************************************************************/ struct ncv_targ_info { struct targ_info nti_ti; - u_int8_t nti_reg_cfg3; /* cfg3 images per target */ - u_int8_t nti_reg_offset; /* synch offset register per target */ - u_int8_t nti_reg_period; /* synch period register per target */ + u_int8_t nti_reg_cfg3; /* cfg3 images per lun */ + u_int8_t nti_reg_offset; /* synch offset register per lun */ + u_int8_t nti_reg_period; /* synch period register per lun */ }; /***************************************************************** |