cmd.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 2004 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _SYS_1394_TARGETS_SCSA1394_CMD_H
#define _SYS_1394_TARGETS_SCSA1394_CMD_H
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* scsa1394 command
*/
#ifdef __cplusplus
extern "C" {
#endif
/* preferred pkt_private length in 64-bit quantities */
#ifdef _LP64
#define SCSA1394_CMD_PRIV_SIZE 2
#else /* _ILP32 */
#define SCSA1394_CMD_PRIV_SIZE 1
#endif
/* entry describing a page table segment */
typedef struct scsa1394_cmd_seg {
/* command packet structure */
typedef struct scsa1394_cmd {
int sc_state; /* command state */
int sc_flags; /* command flags */
struct scsi_arq_status sc_scb;
int sc_timeout;
/* DMA: command ORB */
/* DMA: data buffer */
/* DMA: page table */
int sc_pt_cmd_size;
/* for symbios mode only */
int sc_lba; /* start LBA */
int sc_blk_size; /* xfer block size */
/* state */
enum {
};
/* flags */
enum {
SCSA1394_CMD_CDB_EXT = 0x0001,
SCSA1394_CMD_PRIV_EXT = 0x0002,
SCSA1394_CMD_SCB_EXT = 0x0004,
SCSA1394_CMD_DMA_CDB_VALID = 0x0008,
SCSA1394_CMD_DMA_BUF_BIND_VALID = 0x0010,
SCSA1394_CMD_DMA_BUF_PT_VALID = 0x0020,
SCSA1394_CMD_DMA_BUF_ADDR_VALID = 0x0040,
SCSA1394_CMD_DMA_BUF_MAPIN = 0x0080,
SCSA1394_CMD_READ = 0x0100,
SCSA1394_CMD_WRITE = 0x0200,
SCSA1394_CMD_SYMBIOS_BREAKUP = 0x400
};
#ifdef __cplusplus
}
#endif
#endif /* _SYS_1394_TARGETS_SCSA1394_CMD_H */