Statistics
| Branch: | Revision:

root / hw / pci-stub.c @ 37952117

History | View | Annotate | Download (1.4 kB)

1 b3a29fd5 Isaku Yamahata
/*
2 11d6dded Alon Levy
 * PCI stubs for platforms that don't support pci bus.
3 b3a29fd5 Isaku Yamahata
 *
4 b3a29fd5 Isaku Yamahata
 * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp>
5 b3a29fd5 Isaku Yamahata
 *                    VA Linux Systems Japan K.K.
6 b3a29fd5 Isaku Yamahata
 *
7 b3a29fd5 Isaku Yamahata
 * This program is free software; you can redistribute it and/or modify
8 b3a29fd5 Isaku Yamahata
 * it under the terms of the GNU General Public License as published by
9 b3a29fd5 Isaku Yamahata
 * the Free Software Foundation; either version 2 of the License, or
10 b3a29fd5 Isaku Yamahata
 * (at your option) any later version.
11 b3a29fd5 Isaku Yamahata
 *
12 b3a29fd5 Isaku Yamahata
 * This program is distributed in the hope that it will be useful,
13 b3a29fd5 Isaku Yamahata
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 b3a29fd5 Isaku Yamahata
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 b3a29fd5 Isaku Yamahata
 * GNU General Public License for more details.
16 b3a29fd5 Isaku Yamahata
 *
17 b3a29fd5 Isaku Yamahata
 * You should have received a copy of the GNU General Public License along
18 b3a29fd5 Isaku Yamahata
 * with this program; if not, see <http://www.gnu.org/licenses/>.
19 b3a29fd5 Isaku Yamahata
 */
20 b3a29fd5 Isaku Yamahata
21 2ae63bda Isaku Yamahata
#include "sysemu.h"
22 b3a29fd5 Isaku Yamahata
#include "monitor.h"
23 b3a29fd5 Isaku Yamahata
#include "pci.h"
24 79627472 Luiz Capitulino
#include "qmp-commands.h"
25 b3a29fd5 Isaku Yamahata
26 79627472 Luiz Capitulino
PciInfoList *qmp_query_pci(Error **errp)
27 b3a29fd5 Isaku Yamahata
{
28 79627472 Luiz Capitulino
    error_set(errp, QERR_UNSUPPORTED);
29 79627472 Luiz Capitulino
    return NULL;
30 b3a29fd5 Isaku Yamahata
}
31 b3a29fd5 Isaku Yamahata
32 79627472 Luiz Capitulino
static void pci_error_message(Monitor *mon)
33 b3a29fd5 Isaku Yamahata
{
34 79627472 Luiz Capitulino
    monitor_printf(mon, "PCI devices not supported\n");
35 b3a29fd5 Isaku Yamahata
}
36 2ae63bda Isaku Yamahata
37 1f3392b7 Zhi Yong Wu
int do_pcie_aer_inject_error(Monitor *mon,
38 2ae63bda Isaku Yamahata
                             const QDict *qdict, QObject **ret_data)
39 2ae63bda Isaku Yamahata
{
40 2ae63bda Isaku Yamahata
    pci_error_message(mon);
41 2ae63bda Isaku Yamahata
    return -ENOSYS;
42 2ae63bda Isaku Yamahata
}
43 2ae63bda Isaku Yamahata
44 2ae63bda Isaku Yamahata
void pcie_aer_inject_error_print(Monitor *mon, const QObject *data)
45 2ae63bda Isaku Yamahata
{
46 2ae63bda Isaku Yamahata
    pci_error_message(mon);
47 2ae63bda Isaku Yamahata
}