]> git.proxmox.com Git - mirror_qemu.git/blame - hw/pci-stub.c
Merge remote-tracking branch 'qmp/queue/qmp' into staging
[mirror_qemu.git] / hw / pci-stub.c
CommitLineData
b3a29fd5 1/*
11d6dded 2 * PCI stubs for platforms that don't support pci bus.
b3a29fd5
IY
3 *
4 * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp>
5 * VA Linux Systems Japan K.K.
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, see <http://www.gnu.org/licenses/>.
19 */
20
2ae63bda 21#include "sysemu.h"
b3a29fd5
IY
22#include "monitor.h"
23#include "pci.h"
79627472 24#include "qmp-commands.h"
b3a29fd5 25
79627472 26PciInfoList *qmp_query_pci(Error **errp)
b3a29fd5 27{
79627472
LC
28 error_set(errp, QERR_UNSUPPORTED);
29 return NULL;
b3a29fd5
IY
30}
31
79627472 32static void pci_error_message(Monitor *mon)
b3a29fd5 33{
79627472 34 monitor_printf(mon, "PCI devices not supported\n");
b3a29fd5 35}
2ae63bda 36
0883c515
HP
37void pci_register_bar(PCIDevice *pci_dev, int region_num,
38 uint8_t type, MemoryRegion *memory)
39{
40}
41
42const VMStateDescription vmstate_pci_device = {
43 .name = "PCIDeviceStub",
44 .version_id = 1,
45 .minimum_version_id = 1,
46 .minimum_version_id_old = 1,
47 .fields = (VMStateField[]) {
48 VMSTATE_END_OF_LIST()
49 }
50};
51
1f3392b7 52int do_pcie_aer_inject_error(Monitor *mon,
2ae63bda
IY
53 const QDict *qdict, QObject **ret_data)
54{
55 pci_error_message(mon);
56 return -ENOSYS;
57}
58
59void pcie_aer_inject_error_print(Monitor *mon, const QObject *data)
60{
61 pci_error_message(mon);
62}