1b3a29fd5SIsaku Yamahata /* 211d6ddedSAlon Levy * PCI stubs for platforms that don't support pci bus. 3b3a29fd5SIsaku Yamahata * 4b3a29fd5SIsaku Yamahata * Copyright (c) 2010 Isaku Yamahata <yamahata at valinux co jp> 5b3a29fd5SIsaku Yamahata * VA Linux Systems Japan K.K. 6b3a29fd5SIsaku Yamahata * 7b3a29fd5SIsaku Yamahata * This program is free software; you can redistribute it and/or modify 8b3a29fd5SIsaku Yamahata * it under the terms of the GNU General Public License as published by 9b3a29fd5SIsaku Yamahata * the Free Software Foundation; either version 2 of the License, or 10b3a29fd5SIsaku Yamahata * (at your option) any later version. 11b3a29fd5SIsaku Yamahata * 12b3a29fd5SIsaku Yamahata * This program is distributed in the hope that it will be useful, 13b3a29fd5SIsaku Yamahata * but WITHOUT ANY WARRANTY; without even the implied warranty of 14b3a29fd5SIsaku Yamahata * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15b3a29fd5SIsaku Yamahata * GNU General Public License for more details. 16b3a29fd5SIsaku Yamahata * 17b3a29fd5SIsaku Yamahata * You should have received a copy of the GNU General Public License along 18b3a29fd5SIsaku Yamahata * with this program; if not, see <http://www.gnu.org/licenses/>. 19b3a29fd5SIsaku Yamahata */ 20b3a29fd5SIsaku Yamahata 21*9c17d615SPaolo Bonzini #include "sysemu/sysemu.h" 2283c9089eSPaolo Bonzini #include "monitor/monitor.h" 23c759b24fSMichael S. Tsirkin #include "hw/pci/pci.h" 2479627472SLuiz Capitulino #include "qmp-commands.h" 2579627472SLuiz Capitulino 2679627472SLuiz Capitulino PciInfoList *qmp_query_pci(Error **errp) 2779627472SLuiz Capitulino { 2879627472SLuiz Capitulino error_set(errp, QERR_UNSUPPORTED); 2979627472SLuiz Capitulino return NULL; 3079627472SLuiz Capitulino } 31b3a29fd5SIsaku Yamahata 32b3a29fd5SIsaku Yamahata static void pci_error_message(Monitor *mon) 33b3a29fd5SIsaku Yamahata { 34b3a29fd5SIsaku Yamahata monitor_printf(mon, "PCI devices not supported\n"); 35b3a29fd5SIsaku Yamahata } 36b3a29fd5SIsaku Yamahata 371f3392b7SZhi Yong Wu int do_pcie_aer_inject_error(Monitor *mon, 382ae63bdaSIsaku Yamahata const QDict *qdict, QObject **ret_data) 392ae63bdaSIsaku Yamahata { 402ae63bdaSIsaku Yamahata pci_error_message(mon); 412ae63bdaSIsaku Yamahata return -ENOSYS; 422ae63bdaSIsaku Yamahata } 432ae63bdaSIsaku Yamahata 442ae63bdaSIsaku Yamahata void pcie_aer_inject_error_print(Monitor *mon, const QObject *data) 452ae63bdaSIsaku Yamahata { 462ae63bdaSIsaku Yamahata pci_error_message(mon); 472ae63bdaSIsaku Yamahata } 48