167468Snon/*	$FreeBSD: releng/11.0/sys/dev/ncv/ncr53c500var.h 274760 2014-11-20 20:50:05Z jhb $	*/
279697Snon/*	$NecBSD: ncr53c500var.h,v 1.11.18.1 2001/06/08 06:27:45 honda Exp $	*/
367468Snon/*	$NetBSD$	*/
467468Snon
5139749Simp/*-
667468Snon * [NetBSD for NEC PC-98 series]
779697Snon *  Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2001
867468Snon *	NetBSD/pc98 porting staff. All rights reserved.
979697Snon *  Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000, 2001
1067468Snon *	Naofumi HONDA. All rights reserved.
1167468Snon *
1267468Snon *  Redistribution and use in source and binary forms, with or without
1367468Snon *  modification, are permitted provided that the following conditions
1467468Snon *  are met:
1567468Snon *  1. Redistributions of source code must retain the above copyright
1667468Snon *     notice, this list of conditions and the following disclaimer.
1767468Snon *  2. Redistributions in binary form must reproduce the above copyright
1867468Snon *     notice, this list of conditions and the following disclaimer in the
1967468Snon *     documentation and/or other materials provided with the distribution.
2067468Snon *  3. The name of the author may not be used to endorse or promote products
2167468Snon *     derived from this software without specific prior written permission.
2267468Snon *
2367468Snon * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
2467468Snon * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2567468Snon * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2667468Snon * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
2767468Snon * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2867468Snon * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
2967468Snon * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3067468Snon * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
3167468Snon * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
3267468Snon * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
3367468Snon * POSSIBILITY OF SUCH DAMAGE.
3467468Snon */
3567468Snon
3667468Snon#ifndef	_NCR53C500VAR_H_
3767468Snon#define	_NCR53C500VAR_H_
3867468Snon
3967468Snon/*****************************************************************
4067468Snon * Host adapter structure
4167468Snon *****************************************************************/
4267468Snonstruct ncv_softc {
4367468Snon	struct scsi_low_softc sc_sclow;		/* generic data */
4467468Snon
4567468Snon	int port_rid;
4673087Snon	int port_rid_dmy;
4767468Snon	int irq_rid;
4867468Snon	int mem_rid;
4967468Snon	struct resource *port_res;
5073087Snon	struct resource *port_res_dmy;
5167468Snon	struct resource *irq_res;
5267468Snon	struct resource *mem_res;
5379697Snon
5467468Snon	void *ncv_intrhand;
5579697Snon
5679697Snon	int sc_tmaxcnt;
5779697Snon	int sc_selstop;			/* sel atn stop asserted */
5879697Snon	int sc_compseq;			/* completion seq cmd asserted */
5979697Snon	int sc_sdatalen;		/* start datalen */
6079697Snon	int sc_tdatalen;		/* temp xfer data len */
6179697Snon
6279697Snon	struct ncv_hw sc_hw;		/* hardware register images */
6367468Snon};
6467468Snon
6567468Snon/*****************************************************************
6679697Snon * Lun information
6767468Snon *****************************************************************/
6873025Snonstruct ncv_targ_info {
6973025Snon	struct targ_info nti_ti;
7067468Snon
7179697Snon	u_int8_t nti_reg_cfg3;		/* cfg3 images per lun */
7279697Snon	u_int8_t nti_reg_offset;	/* synch offset register per lun */
7379697Snon	u_int8_t nti_reg_period;	/* synch period register per lun */
7467468Snon};
7567468Snon
7667468Snon/*****************************************************************
7767468Snon * Proto
7867468Snon *****************************************************************/
79274760Sjhbint ncvprobesubr(struct resource *, u_int, int);
8092739Salfredvoid ncvattachsubr(struct ncv_softc *);
8192739Salfredint ncvintr(void *);
8267468Snon
8367468Snon#endif	/* !_NCR53C500VAR_H_ */
84