116125Swpaul/* $FreeBSD$ */ 216125Swpaul/* $NecBSD: scsi_dvcfg.h,v 1.4 1998/03/14 07:05:06 kmatsuda Exp $ */ 316125Swpaul/* $NetBSD$ */ 416125Swpaul 516125Swpaul/*- 616125Swpaul * [NetBSD for NEC PC-98 series] 716125Swpaul * Copyright (c) 1994, 1995, 1996, 1997, 1998 816125Swpaul * NetBSD/pc98 porting staff. All rights reserved. 916125Swpaul * Copyright (c) 1994, 1995, 1996, 1997, 1998 1016125Swpaul * Naofumi HONDA. All rights reserved. 1116125Swpaul * 1216125Swpaul * Redistribution and use in source and binary forms, with or without 1316125Swpaul * modification, are permitted provided that the following conditions 1416125Swpaul * are met: 1516125Swpaul * 1. Redistributions of source code must retain the above copyright 1616125Swpaul * notice, this list of conditions and the following disclaimer. 1716125Swpaul * 2. Redistributions in binary form must reproduce the above copyright 1816125Swpaul * notice, this list of conditions and the following disclaimer in the 1916125Swpaul * documentation and/or other materials provided with the distribution. 2016125Swpaul * 3. The name of the author may not be used to endorse or promote products 2116125Swpaul * derived from this software without specific prior written permission. 2216125Swpaul * 2316125Swpaul * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2416125Swpaul * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 2516125Swpaul * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 2616125Swpaul * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 2716125Swpaul * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 2816125Swpaul * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 2916125Swpaul * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 3016125Swpaul * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 3116125Swpaul * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 3216125Swpaul * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 33114601Sobrien * POSSIBILITY OF SUCH DAMAGE. 34114601Sobrien */ 3530378Scharnier 3616125Swpaul#ifndef _SCSI_DVCFG_H_ 3730378Scharnier#define _SCSI_DVCFG_H_ 3830378Scharnier 3969793Sobrien/* common dvcfg flags defitions for bs, ncv, stg */ 4016125Swpaul 4116125Swpaul#define DVF_SCSI_SYNC 0x01 4223716Speter#define DVF_SCSI_DISC 0x02 4316125Swpaul#define DVF_SCSI_WAIT 0x04 44129654Sstefanf#define DVF_SCSI_LINK 0x08 4516125Swpaul#define DVF_SCSI_QTAG 0x10 4616125Swpaul#define DVF_SCSI_SP0 0x100 4716125Swpaul#define DVF_SCSI_NOPARITY 0x200 4816125Swpaul#define DVF_SCSI_SAVESP 0x400 4916125Swpaul#define DVF_SCSI_SP1 0x800 5016125Swpaul#define DVF_SCSI_PERIOD(XXX) (((XXX) >> 24) & 0xff) 5116125Swpaul#define DVF_SCSI_OFFSET(XXX) (((XXX) >> 16) & 0xff) 5216125Swpaul#define DVF_SCSI_SYNCMASK 0xffff0000 5316125Swpaul 5416125Swpaul#define DVF_SCSI_DEFCFG (DVF_SCSI_SYNC | DVF_SCSI_NOPARITY | DVF_SCSI_SYNCMASK) 5516125Swpaul 5616125Swpaul#define DVF_SCSI_BITS "\020\13fssp\12noparity\11nosat\005qtag\004cmdlnk\003wait\002disc\001sync" 5716125Swpaul 5816125Swpaul#endif /* !_SCSI_DVCFG_H_ */ 5916125Swpaul