2 * SCSI target kernel/user interface
4 * Copyright (C) 2005 FUJITA Tomonori <tomof@acm.org>
5 * Copyright (C) 2005 Mike Christie <michaelc@cs.wisc.edu>
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
22 #ifndef __SCSI_TARGET_IF_H
23 #define __SCSI_TARGET_IF_H
26 #define TGT_UEVENT_CMD_RSP 0x0001
27 #define TGT_UEVENT_TSK_MGMT_RSP 0x0002
30 #define TGT_KEVENT_CMD_REQ 0x1001
31 #define TGT_KEVENT_CMD_DONE 0x1002
32 #define TGT_KEVENT_TSK_MGMT_REQ 0x1003
34 struct tgt_event_hdr
{
39 } __attribute__ ((aligned (sizeof(uint64_t))));
42 struct tgt_event_hdr hdr
;
51 aligned_u64 sense_uaddr
;
85 } __attribute__ ((aligned (sizeof(uint64_t))));
87 #define TGT_RING_SIZE (1UL << 16)