Statistics
| Branch: | Revision:

root / hw / pci-stub.c @ 11d6dded

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 b3a29fd5 Isaku Yamahata
25 b3a29fd5 Isaku Yamahata
static void pci_error_message(Monitor *mon)
26 b3a29fd5 Isaku Yamahata
{
27 b3a29fd5 Isaku Yamahata
    monitor_printf(mon, "PCI devices not supported\n");
28 b3a29fd5 Isaku Yamahata
}
29 b3a29fd5 Isaku Yamahata
30 b3a29fd5 Isaku Yamahata
void do_pci_info(Monitor *mon, QObject **ret_data)
31 b3a29fd5 Isaku Yamahata
{
32 b3a29fd5 Isaku Yamahata
    pci_error_message(mon);
33 b3a29fd5 Isaku Yamahata
}
34 b3a29fd5 Isaku Yamahata
35 b3a29fd5 Isaku Yamahata
void do_pci_info_print(Monitor *mon, const QObject *data)
36 b3a29fd5 Isaku Yamahata
{
37 b3a29fd5 Isaku Yamahata
    pci_error_message(mon);
38 b3a29fd5 Isaku Yamahata
}
39 2ae63bda Isaku Yamahata
40 2ae63bda Isaku Yamahata
int do_pcie_aer_inejct_error(Monitor *mon,
41 2ae63bda Isaku Yamahata
                             const QDict *qdict, QObject **ret_data)
42 2ae63bda Isaku Yamahata
{
43 2ae63bda Isaku Yamahata
    pci_error_message(mon);
44 2ae63bda Isaku Yamahata
    return -ENOSYS;
45 2ae63bda Isaku Yamahata
}
46 2ae63bda Isaku Yamahata
47 2ae63bda Isaku Yamahata
void pcie_aer_inject_error_print(Monitor *mon, const QObject *data)
48 2ae63bda Isaku Yamahata
{
49 2ae63bda Isaku Yamahata
    pci_error_message(mon);
50 2ae63bda Isaku Yamahata
}