8e496a172b2000333186e5c1be75a50f398ed830vboxsync/* $Id$ */
8e496a172b2000333186e5c1be75a50f398ed830vboxsync/** @file
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * VirtualBox Support Driver - IDC Client Lib, Solaris Specific Code.
8e496a172b2000333186e5c1be75a50f398ed830vboxsync */
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsync/*
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync * Copyright (C) 2008-2010 Oracle Corporation
8e496a172b2000333186e5c1be75a50f398ed830vboxsync *
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * available from http://www.virtualbox.org. This file is free software;
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * you can redistribute it and/or modify it under the terms of the GNU
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * General Public License (GPL) as published by the Free Software
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
8e496a172b2000333186e5c1be75a50f398ed830vboxsync *
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * The contents of this file may alternatively be used under the terms
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * of the Common Development and Distribution License Version 1.0
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * VirtualBox OSE distribution, in which case the provisions of the
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * CDDL are applicable instead of those of the GPL.
8e496a172b2000333186e5c1be75a50f398ed830vboxsync *
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * You may elect to license modified versions of this file under the
8e496a172b2000333186e5c1be75a50f398ed830vboxsync * terms and conditions of either the GPL or the CDDL or both.
8e496a172b2000333186e5c1be75a50f398ed830vboxsync */
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsync/*******************************************************************************
8e496a172b2000333186e5c1be75a50f398ed830vboxsync* Header Files *
8e496a172b2000333186e5c1be75a50f398ed830vboxsync*******************************************************************************/
8e496a172b2000333186e5c1be75a50f398ed830vboxsync#include "../SUPR0IdcClientInternal.h"
8e496a172b2000333186e5c1be75a50f398ed830vboxsync#include <VBox/err.h>
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsyncint VBOXCALL supR0IdcNativeOpen(PSUPDRVIDCHANDLE pHandle, PSUPDRVIDCREQCONNECT pReq)
8e496a172b2000333186e5c1be75a50f398ed830vboxsync{
8e496a172b2000333186e5c1be75a50f398ed830vboxsync return supR0IdcNativeCall(pHandle, SUPDRV_IDC_REQ_CONNECT, &pReq->Hdr);
8e496a172b2000333186e5c1be75a50f398ed830vboxsync}
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsyncint VBOXCALL supR0IdcNativeClose(PSUPDRVIDCHANDLE pHandle, PSUPDRVIDCREQHDR pReq)
8e496a172b2000333186e5c1be75a50f398ed830vboxsync{
8e496a172b2000333186e5c1be75a50f398ed830vboxsync return supR0IdcNativeCall(pHandle, SUPDRV_IDC_REQ_DISCONNECT, pReq);
8e496a172b2000333186e5c1be75a50f398ed830vboxsync}
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsyncint VBOXCALL supR0IdcNativeCall(PSUPDRVIDCHANDLE pHandle, uint32_t iReq, PSUPDRVIDCREQHDR pReq)
8e496a172b2000333186e5c1be75a50f398ed830vboxsync{
8e496a172b2000333186e5c1be75a50f398ed830vboxsync int rc = SUPDrvSolarisIDC(iReq, pReq);
8e496a172b2000333186e5c1be75a50f398ed830vboxsync if (RT_SUCCESS(rc))
8e496a172b2000333186e5c1be75a50f398ed830vboxsync rc = pReq->rc;
8e496a172b2000333186e5c1be75a50f398ed830vboxsync
8e496a172b2000333186e5c1be75a50f398ed830vboxsync NOREF(pHandle);
8e496a172b2000333186e5c1be75a50f398ed830vboxsync return rc;
8e496a172b2000333186e5c1be75a50f398ed830vboxsync}
8e496a172b2000333186e5c1be75a50f398ed830vboxsync