pci-stub.c 1.2 KB
Newer Older
1
/*
A
Alon Levy 已提交
2
 * PCI stubs for platforms that don't support pci bus.
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
 *
 * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp>
 *                    VA Linux Systems Japan K.K.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License along
 * with this program; if not, see <http://www.gnu.org/licenses/>.
 */

P
Peter Maydell 已提交
21
#include "qemu/osdep.h"
22
#include "sysemu/sysemu.h"
23
#include "monitor/monitor.h"
24
#include "qapi/qmp/qerror.h"
25
#include "hw/pci/pci.h"
L
Luiz Capitulino 已提交
26
#include "qmp-commands.h"
27 28 29
#include "hw/pci/msi.h"

bool msi_nonbroken;
30

L
Luiz Capitulino 已提交
31
PciInfoList *qmp_query_pci(Error **errp)
32
{
33
    error_setg(errp, QERR_UNSUPPORTED);
L
Luiz Capitulino 已提交
34
    return NULL;
35 36
}

37
void hmp_pcie_aer_inject_error(Monitor *mon, const QDict *qdict)
38
{
L
Luiz Capitulino 已提交
39
    monitor_printf(mon, "PCI devices not supported\n");
40
}