pSeries_reconfig.h 755 B

12345678910111213141516171819202122232425
  1. #ifndef _PPC64_PSERIES_RECONFIG_H
  2. #define _PPC64_PSERIES_RECONFIG_H
  3. #include <linux/notifier.h>
  4. /*
  5. * Use this API if your code needs to know about OF device nodes being
  6. * added or removed on pSeries systems.
  7. */
  8. #define PSERIES_RECONFIG_ADD 0x0001
  9. #define PSERIES_RECONFIG_REMOVE 0x0002
  10. #ifdef CONFIG_PPC_PSERIES
  11. extern int pSeries_reconfig_notifier_register(struct notifier_block *);
  12. extern void pSeries_reconfig_notifier_unregister(struct notifier_block *);
  13. #else /* !CONFIG_PPC_PSERIES */
  14. static inline int pSeries_reconfig_notifier_register(struct notifier_block *nb)
  15. {
  16. return 0;
  17. }
  18. static inline void pSeries_reconfig_notifier_unregister(struct notifier_block *nb) { }
  19. #endif /* CONFIG_PPC_PSERIES */
  20. #endif /* _PPC64_PSERIES_RECONFIG_H */