pci add register drivers
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
This commit is contained in:
parent
c25f839b06
commit
9dc9500aaf
@ -36,6 +36,7 @@
|
||||
#include <nuttx/net/tun.h>
|
||||
#include <nuttx/net/telnet.h>
|
||||
#include <nuttx/note/note_driver.h>
|
||||
#include <nuttx/pci/pci.h>
|
||||
#include <nuttx/power/pm.h>
|
||||
#include <nuttx/power/regulator.h>
|
||||
#include <nuttx/segger/rtt.h>
|
||||
@ -253,6 +254,10 @@ void drivers_initialize(void)
|
||||
mtd_loop_register();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PCI
|
||||
pci_register_drivers();
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_DRIVERS_VIRTIO
|
||||
virtio_register_drivers();
|
||||
#endif
|
||||
|
@ -742,4 +742,14 @@ int pci_bus_write_config_word(FAR struct pci_bus_s *bus, unsigned int devfn,
|
||||
int pci_bus_write_config_dword(FAR struct pci_bus_s *bus, unsigned int devfn,
|
||||
int where, uint32_t val);
|
||||
|
||||
/****************************************************************************
|
||||
* Name: pci_register_drivers
|
||||
*
|
||||
* Description:
|
||||
* Register all the pci drivers to pci bus
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
int pci_register_drivers(void);
|
||||
|
||||
#endif /* __INCLUDE_NUTTX_PCI_PCI_H */
|
||||
|
Loading…
Reference in New Issue
Block a user