MsiCommon.h revision ea0316554d23852601ee840c4a856339501411a4
/* $Id$ */
/** @file
* Header for MSI support routines.
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute it and/or modify it under the terms of the GNU
* 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.
*/
/* Init MSI support in the device. */
int MSIInit(PPCIDEVICE pDev, PPDMMSIREG pMsiReg);
/* If MSI is enabled, so that MSINotify() shall be used for notifications. */
bool MSIIsEnabled(PPCIDEVICE pDev);
/* Device notification (aka interrupt). */
void MSINotify(PPDMDEVINS pDevIns, PPCIDEVICE pDev, int iVector);
/* PCI config space accessors for MSI registers */
void MSIPciConfigWrite(PPCIDEVICE pDev, uint32_t u32Address, uint32_t val, unsigned len);
uint32_t MSIPciConfigRead (PPCIDEVICE pDev, uint32_t u32Address, unsigned len);