VSCSIVpdPagePool.cpp revision 65697a26b524640b83828b715160c798c43a0424
/* $Id$ */
/** @file
* Virtual SCSI driver: VPD page pool
*/
/*
* Copyright (C) 2011 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
/*******************************************************************************
* Header Files *
*******************************************************************************/
#define LOG_GROUP LOG_GROUP_VSCSI
#include "VSCSIInternal.h"
/*******************************************************************************
* Structures and Typedefs *
*******************************************************************************/
/**
* A VSCSI VPD page.
*/
typedef struct VSCSIVPDPAGE
{
/** List node. */
/** Page size. */
/** Page data - variable size. */
} VSCSIVPDPAGE;
/** Pointer to a VPD page. */
typedef VSCSIVPDPAGE *PVSCSIVPDPAGE;
/*******************************************************************************
* Internal Functions *
*******************************************************************************/
{
return VINF_SUCCESS;
}
{
{
}
}
int vscsiVpdPagePoolAllocNewPage(PVSCSIVPDPOOL pVScsiVpdPool, uint8_t uPage, size_t cbPage, uint8_t **ppbPage)
{
int rc = VINF_SUCCESS;
/* Check that the page doesn't exist already. */
{
return VERR_ALREADY_EXISTS;
}
if (pPage)
{
}
else
rc = VERR_NO_MEMORY;
return rc;
}
{
/* Check that the page doesn't exist already. */
{
{
return VINF_SUCCESS;
}
}
return VERR_NOT_FOUND;
}