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_IT_NEXUS_RSP 0x0002
28 #define TGT_UEVENT_TSK_MGMT_RSP 0x0003
31 #define TGT_KEVENT_CMD_REQ 0x1001
32 #define TGT_KEVENT_CMD_DONE 0x1002
33 #define TGT_KEVENT_IT_NEXUS_REQ 0x1003
34 #define TGT_KEVENT_TSK_MGMT_REQ 0x1004
36 struct tgt_event_hdr {
41 } __attribute__ ((aligned (sizeof(uint64_t))));
44 struct tgt_event_hdr hdr;
54 aligned_u64 sense_uaddr;
101 __u8 initiator_id[16];
104 } __attribute__ ((aligned (sizeof(uint64_t))));
106 #define TGT_RING_SIZE (1UL << 16)