1898b0535SWarner Losh /*- 229815710SSteve Price * Structure and function declarations for Processor type devices. 376babe50SJustin T. Gibbs * 44d846d26SWarner Losh * SPDX-License-Identifier: BSD-2-Clause 5bec9534dSPedro F. Giffuni * 676babe50SJustin T. Gibbs * Copyright (c) 1998 Justin T. Gibbs 776babe50SJustin T. Gibbs * All rights reserved. 876babe50SJustin T. Gibbs * 976babe50SJustin T. Gibbs * Redistribution and use in source and binary forms, with or without 1076babe50SJustin T. Gibbs * modification, are permitted provided that the following conditions 1176babe50SJustin T. Gibbs * are met: 1276babe50SJustin T. Gibbs * 1. Redistributions of source code must retain the above copyright 1376babe50SJustin T. Gibbs * notice, this list of conditions, and the following disclaimer, 1476babe50SJustin T. Gibbs * without modification, immediately at the beginning of the file. 1576babe50SJustin T. Gibbs * 2. The name of the author may not be used to endorse or promote products 1676babe50SJustin T. Gibbs * derived from this software without specific prior written permission. 1776babe50SJustin T. Gibbs * 1876babe50SJustin T. Gibbs * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1976babe50SJustin T. Gibbs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2076babe50SJustin T. Gibbs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2176babe50SJustin T. Gibbs * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOR 2276babe50SJustin T. Gibbs * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2376babe50SJustin T. Gibbs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2476babe50SJustin T. Gibbs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2576babe50SJustin T. Gibbs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2676babe50SJustin T. Gibbs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2776babe50SJustin T. Gibbs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2876babe50SJustin T. Gibbs * SUCH DAMAGE. 2976babe50SJustin T. Gibbs */ 3076babe50SJustin T. Gibbs 3176babe50SJustin T. Gibbs #ifndef _SCSI_SCSI_PT_H 3276babe50SJustin T. Gibbs #define _SCSI_SCSI_PT_H 1 3376babe50SJustin T. Gibbs 3476babe50SJustin T. Gibbs struct scsi_send_receive 3576babe50SJustin T. Gibbs { 36*7c5d20a6SWarner Losh uint8_t opcode; 37*7c5d20a6SWarner Losh uint8_t byte2; 38*7c5d20a6SWarner Losh uint8_t xfer_len[3]; 39*7c5d20a6SWarner Losh uint8_t control; 4076babe50SJustin T. Gibbs }; 4176babe50SJustin T. Gibbs 4276babe50SJustin T. Gibbs /* 4376babe50SJustin T. Gibbs * Opcodes 4476babe50SJustin T. Gibbs */ 4576babe50SJustin T. Gibbs #define RECEIVE 0x08 4676babe50SJustin T. Gibbs #define SEND 0x0A 4776babe50SJustin T. Gibbs 4876babe50SJustin T. Gibbs #endif /* _SCSI_SCSI_PT_H */ 49