fasdma.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 1996, by Sun Microsystems, Inc.
* All rights reserved.
*/
#ifndef _SYS_SCSI_ADAPTERS_FASDMA_H
#define _SYS_SCSI_ADAPTERS_FASDMA_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* SCSI Channel Engine (fas SCSI DVMA) definitions
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* for historical reasons, we call the scsi channel engine
* dma for now
*/
struct dma {
};
/*
* dma_csr bits
*/
/* accesses */
#define DMA_BITS \
"\20\34RST\33PSE\31DSBLPAR\26TWOCYC\24BRST1\23BST0\
\22DSBLEDRN\20WIDE\13REQPEND\12ENBLE\11WR\10RST\05INTEN\
\03DRNING\02ERRPEND\01INTPND"
/*
* burst sizes for dma
*/
#define DMA_BURST16 0x00000000
#define DMA_BURST32 0x00040000
#define DMA_BURST64 0x000c0000
/*
* burst sizes for dma attr
*/
#define BURST1 0x01
#define BURST2 0x02
#define BURST4 0x04
#define BURST8 0x08
#define BURST16 0x10
#define BURST32 0x20
#define BURST64 0x40
#define BURSTSIZE_MASK 0x7f
#define DEFAULT_BURSTSIZE \
#ifdef __cplusplus
}
#endif
#endif /* _SYS_SCSI_ADAPTERS_FASDMA_H */