mirror of
https://gitlab.com/qemu-project/qemu
synced 2024-07-22 19:04:26 +00:00
pci: Give a few helpers internal linkage
None of them should be used in new code. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
af59b35ce1
commit
6dbcb81956
14
hw/pci/pci.c
14
hw/pci/pci.c
|
@ -539,8 +539,8 @@ static void pci_set_default_subsystem_id(PCIDevice *pci_dev)
|
||||||
* Parse [[<domain>:]<bus>:]<slot>, return -1 on error if funcp == NULL
|
* Parse [[<domain>:]<bus>:]<slot>, return -1 on error if funcp == NULL
|
||||||
* [[<domain>:]<bus>:]<slot>.<func>, return -1 on error
|
* [[<domain>:]<bus>:]<slot>.<func>, return -1 on error
|
||||||
*/
|
*/
|
||||||
int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
static int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
||||||
unsigned int *slotp, unsigned int *funcp)
|
unsigned int *slotp, unsigned int *funcp)
|
||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
char *e;
|
char *e;
|
||||||
|
@ -598,7 +598,8 @@ int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
PCIBus *pci_get_bus_devfn(int *devfnp, PCIBus *root, const char *devaddr)
|
static PCIBus *pci_get_bus_devfn(int *devfnp, PCIBus *root,
|
||||||
|
const char *devaddr)
|
||||||
{
|
{
|
||||||
int dom, bus;
|
int dom, bus;
|
||||||
unsigned slot;
|
unsigned slot;
|
||||||
|
@ -1610,10 +1611,9 @@ static const char * const pci_nic_names[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Initialize a PCI NIC. */
|
/* Initialize a PCI NIC. */
|
||||||
/* FIXME callers should check for failure, but don't */
|
static PCIDevice *pci_nic_init(NICInfo *nd, PCIBus *rootbus,
|
||||||
PCIDevice *pci_nic_init(NICInfo *nd, PCIBus *rootbus,
|
const char *default_model,
|
||||||
const char *default_model,
|
const char *default_devaddr)
|
||||||
const char *default_devaddr)
|
|
||||||
{
|
{
|
||||||
const char *devaddr = nd->devaddr ? nd->devaddr : default_devaddr;
|
const char *devaddr = nd->devaddr ? nd->devaddr : default_devaddr;
|
||||||
PCIBus *bus;
|
PCIBus *bus;
|
||||||
|
|
|
@ -371,9 +371,6 @@ void pci_device_set_intx_routing_notifier(PCIDevice *dev,
|
||||||
PCIINTxRoutingNotifier notifier);
|
PCIINTxRoutingNotifier notifier);
|
||||||
void pci_device_reset(PCIDevice *dev);
|
void pci_device_reset(PCIDevice *dev);
|
||||||
|
|
||||||
PCIDevice *pci_nic_init(NICInfo *nd, PCIBus *rootbus,
|
|
||||||
const char *default_model,
|
|
||||||
const char *default_devaddr);
|
|
||||||
PCIDevice *pci_nic_init_nofail(NICInfo *nd, PCIBus *rootbus,
|
PCIDevice *pci_nic_init_nofail(NICInfo *nd, PCIBus *rootbus,
|
||||||
const char *default_model,
|
const char *default_model,
|
||||||
const char *default_devaddr);
|
const char *default_devaddr);
|
||||||
|
@ -403,12 +400,8 @@ PCIBus *pci_device_root_bus(const PCIDevice *d);
|
||||||
const char *pci_root_bus_path(PCIDevice *dev);
|
const char *pci_root_bus_path(PCIDevice *dev);
|
||||||
PCIDevice *pci_find_device(PCIBus *bus, int bus_num, uint8_t devfn);
|
PCIDevice *pci_find_device(PCIBus *bus, int bus_num, uint8_t devfn);
|
||||||
int pci_qdev_find_device(const char *id, PCIDevice **pdev);
|
int pci_qdev_find_device(const char *id, PCIDevice **pdev);
|
||||||
PCIBus *pci_get_bus_devfn(int *devfnp, PCIBus *root, const char *devaddr);
|
|
||||||
void pci_bus_get_w64_range(PCIBus *bus, Range *range);
|
void pci_bus_get_w64_range(PCIBus *bus, Range *range);
|
||||||
|
|
||||||
int pci_parse_devaddr(const char *addr, int *domp, int *busp,
|
|
||||||
unsigned int *slotp, unsigned int *funcp);
|
|
||||||
|
|
||||||
void pci_device_deassert_intx(PCIDevice *dev);
|
void pci_device_deassert_intx(PCIDevice *dev);
|
||||||
|
|
||||||
typedef AddressSpace *(*PCIIOMMUFunc)(PCIBus *, void *, int);
|
typedef AddressSpace *(*PCIIOMMUFunc)(PCIBus *, void *, int);
|
||||||
|
|
Loading…
Reference in a new issue