pci: do not expose private functions
make the functions + rte_pci_detach + rte_pci_probe + rte_pci_probe_one + rte_pci_scan private as there is no point in using them outside of the rte_bus framework. Signed-off-by: Gaetan Rivet <gaetan.rivet@6wind.com>
This commit is contained in:
parent
eb12440a0e
commit
ea978e7c22
@ -113,6 +113,55 @@ int rte_eal_log_init(const char *id, int facility);
|
|||||||
struct rte_pci_driver;
|
struct rte_pci_driver;
|
||||||
struct rte_pci_device;
|
struct rte_pci_device;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Probe the PCI bus
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* - 0 on success.
|
||||||
|
* - !0 on error.
|
||||||
|
*/
|
||||||
|
int
|
||||||
|
rte_pci_probe(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Scan the content of the PCI bus, and the devices in the devices
|
||||||
|
* list
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* 0 on success, negative on error
|
||||||
|
*/
|
||||||
|
int rte_pci_scan(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Probe the single PCI device.
|
||||||
|
*
|
||||||
|
* Scan the content of the PCI bus, and find the pci device specified by pci
|
||||||
|
* address, then call the probe() function for registered driver that has a
|
||||||
|
* matching entry in its id_table for discovered device.
|
||||||
|
*
|
||||||
|
* @param addr
|
||||||
|
* The PCI Bus-Device-Function address to probe.
|
||||||
|
* @return
|
||||||
|
* - 0 on success.
|
||||||
|
* - Negative on error.
|
||||||
|
*/
|
||||||
|
int rte_pci_probe_one(const struct rte_pci_addr *addr);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Close the single PCI device.
|
||||||
|
*
|
||||||
|
* Scan the content of the PCI bus, and find the pci device specified by pci
|
||||||
|
* address, then call the remove() function for registered driver that has a
|
||||||
|
* matching entry in its id_table for discovered device.
|
||||||
|
*
|
||||||
|
* @param addr
|
||||||
|
* The PCI Bus-Device-Function address to close.
|
||||||
|
* @return
|
||||||
|
* - 0 on success.
|
||||||
|
* - Negative on error.
|
||||||
|
*/
|
||||||
|
int rte_pci_detach(const struct rte_pci_addr *addr);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Find the name of a PCI device.
|
* Find the name of a PCI device.
|
||||||
*/
|
*/
|
||||||
|
@ -331,25 +331,6 @@ int rte_eal_compare_pci_addr(const struct rte_pci_addr *addr,
|
|||||||
*/
|
*/
|
||||||
int rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr);
|
int rte_pci_addr_parse(const char *str, struct rte_pci_addr *addr);
|
||||||
|
|
||||||
/**
|
|
||||||
* Scan the content of the PCI bus, and the devices in the devices
|
|
||||||
* list
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* 0 on success, negative on error
|
|
||||||
*/
|
|
||||||
int rte_pci_scan(void);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Probe the PCI bus
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
* - 0 on success.
|
|
||||||
* - !0 on error.
|
|
||||||
*/
|
|
||||||
int
|
|
||||||
rte_pci_probe(void);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Match the PCI Driver and Device using the ID Table
|
* Match the PCI Driver and Device using the ID Table
|
||||||
*
|
*
|
||||||
@ -434,36 +415,6 @@ void *pci_map_resource(void *requested_addr, int fd, off_t offset,
|
|||||||
*/
|
*/
|
||||||
void pci_unmap_resource(void *requested_addr, size_t size);
|
void pci_unmap_resource(void *requested_addr, size_t size);
|
||||||
|
|
||||||
/**
|
|
||||||
* Probe the single PCI device.
|
|
||||||
*
|
|
||||||
* Scan the content of the PCI bus, and find the pci device specified by pci
|
|
||||||
* address, then call the probe() function for registered driver that has a
|
|
||||||
* matching entry in its id_table for discovered device.
|
|
||||||
*
|
|
||||||
* @param addr
|
|
||||||
* The PCI Bus-Device-Function address to probe.
|
|
||||||
* @return
|
|
||||||
* - 0 on success.
|
|
||||||
* - Negative on error.
|
|
||||||
*/
|
|
||||||
int rte_pci_probe_one(const struct rte_pci_addr *addr);
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Close the single PCI device.
|
|
||||||
*
|
|
||||||
* Scan the content of the PCI bus, and find the pci device specified by pci
|
|
||||||
* address, then call the remove() function for registered driver that has a
|
|
||||||
* matching entry in its id_table for discovered device.
|
|
||||||
*
|
|
||||||
* @param addr
|
|
||||||
* The PCI Bus-Device-Function address to close.
|
|
||||||
* @return
|
|
||||||
* - 0 on success.
|
|
||||||
* - Negative on error.
|
|
||||||
*/
|
|
||||||
int rte_pci_detach(const struct rte_pci_addr *addr);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dump the content of the PCI bus.
|
* Dump the content of the PCI bus.
|
||||||
*
|
*
|
||||||
|
@ -166,18 +166,14 @@ DPDK_17.05 {
|
|||||||
rte_log_set_global_level;
|
rte_log_set_global_level;
|
||||||
rte_log_set_level;
|
rte_log_set_level;
|
||||||
rte_log_set_level_regexp;
|
rte_log_set_level_regexp;
|
||||||
rte_pci_detach;
|
|
||||||
rte_pci_dump;
|
rte_pci_dump;
|
||||||
rte_pci_ioport_map;
|
rte_pci_ioport_map;
|
||||||
rte_pci_ioport_read;
|
rte_pci_ioport_read;
|
||||||
rte_pci_ioport_unmap;
|
rte_pci_ioport_unmap;
|
||||||
rte_pci_ioport_write;
|
rte_pci_ioport_write;
|
||||||
rte_pci_map_device;
|
rte_pci_map_device;
|
||||||
rte_pci_probe;
|
|
||||||
rte_pci_probe_one;
|
|
||||||
rte_pci_read_config;
|
rte_pci_read_config;
|
||||||
rte_pci_register;
|
rte_pci_register;
|
||||||
rte_pci_scan;
|
|
||||||
rte_pci_unmap_device;
|
rte_pci_unmap_device;
|
||||||
rte_pci_unregister;
|
rte_pci_unregister;
|
||||||
rte_pci_write_config;
|
rte_pci_write_config;
|
||||||
|
Loading…
Reference in New Issue
Block a user