In order to propagate error message better, convert shpc_init() to Error also convert the pci_bridge_dev_initfn() to realize. Cc: mst@redhat.com Cc: marcel@redhat.com Cc: armbru@redhat.com Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com> Reviewed-by: Marcel Apfelbaum <marcel@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
13 lines
283 B
C
13 lines
283 B
C
#ifndef PCI_SLOTID_CAP_H
|
|
#define PCI_SLOTID_CAP_H
|
|
|
|
#include "qemu-common.h"
|
|
|
|
int slotid_cap_init(PCIDevice *dev, int nslots,
|
|
uint8_t chassis,
|
|
unsigned offset,
|
|
Error **errp);
|
|
void slotid_cap_cleanup(PCIDevice *dev);
|
|
|
|
#endif
|