4 * Copyright (C) 2005 Adaptec, Inc. All rights reserved.
5 * Copyright (C) 2005 Luben Tuikov <luben_tuikov@adaptec.com>
7 * This file is licensed under GPLv2.
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License as
11 * published by the Free Software Foundation; either version 2 of the
12 * License, or (at your option) any later version.
14 * This program is distributed in the hope that it will be useful, but
15 * WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
24 * $Id: //depot/sas-class/sas_frames.h#5 $
30 #define SMP_REQUEST 0x40
31 #define SMP_RESPONSE 0x41
34 #define SSP_XFER_RDY 0x05
35 #define SSP_COMMAND 0x06
36 #define SSP_RESPONSE 0x07
39 struct dev_to_host_fis {
40 u8 fis_type; /* 0x34 */
46 union { u8 lbam; u8 byte_count_low; };
47 union { u8 lbah; u8 byte_count_high; };
55 union { u8 sector_count; u8 interrupt_reason; };
61 } __attribute__ ((packed));
63 struct host_to_dev_fis {
64 u8 fis_type; /* 0x27 */
70 union { u8 lbam; u8 byte_count_low; };
71 union { u8 lbah; u8 byte_count_high; };
79 union { u8 sector_count; u8 interrupt_reason; };
85 } __attribute__ ((packed));
87 /* Prefer to have code clarity over header file clarity.
89 #ifdef __LITTLE_ENDIAN_BITFIELD
90 #include <scsi/sas/sas_frames_le.h>
91 #elif defined(__BIG_ENDIAN_BITFIELD)
92 #include <scsi/sas/sas_frames_be.h>
94 #error "Bitfield order not defined!"
97 #endif /* _SAS_FRAMES_ */