procfs.h 634 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2024-07-07 GuEe-GUI first version
  9. */
  10. #ifndef __PCI_PROCFS_H__
  11. #define __PCI_PROCFS_H__
  12. #include <drivers/pci.h>
  13. #ifdef RT_USING_DFS_PROCFS
  14. #include <proc.h>
  15. void pci_procfs_attach(struct rt_pci_device *pdev);
  16. void pci_procfs_detach(struct rt_pci_device *pdev);
  17. #else
  18. rt_inline void pci_procfs_attach(struct rt_pci_device *pdev)
  19. {
  20. }
  21. rt_inline void pci_procfs_detach(struct rt_pci_device *pdev)
  22. {
  23. }
  24. #endif /* RT_USING_DFS_PROCFS */
  25. #endif /* __PCI_PROCFS_H__ */