vscsi.h revision a9f41cb889f53e8407561a6155052c441eb0fc5f
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * VBox storage drivers: Virtual SCSI driver
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * Copyright (C) 2006-2010 Sun Microsystems, Inc.
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * available from http://www.virtualbox.org. This file is free software;
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * you can redistribute it and/or modify it under the terms of the GNU
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * General Public License (GPL) as published by the Free Software
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * The contents of this file may alternatively be used under the terms
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * of the Common Development and Distribution License Version 1.0
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * VirtualBox OSE distribution, in which case the provisions of the
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * CDDL are applicable instead of those of the GPL.
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * You may elect to license modified versions of this file under the
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * terms and conditions of either the GPL or the CDDL or both.
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync * additional information or have any questions.
c695ab003533dff17131a0f1e1f9a85979abf25evboxsync# error "There are no VBox VSCSI APIs available in Ring-0 Host Context!"
typedef enum VSCSIIOREQTXDIR
typedef enum VSCSILUNTYPE
VSCSILUNTYPE_INVALID = 0,
} VSCSILUNTYPE;
typedef struct VSCSILUNIOCALLBACKS
void *pvScsiLunUser,
void *pvScsiLunUser,
void *pvVScsiDeviceUser,
void *pvVScsiReqUser,
int rcReq);
void *pvVScsiDeviceUser);
VBOXDDU_DECL(int) VSCSIDeviceLunAttach(VSCSIDEVICE hVScsiDevice, VSCSILUN hVScsiLun, uint32_t iLun);
void *pvVScsiLunUser);