firmware-map.h 959 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * include/linux/firmware-map.h:
  4. * Copyright (C) 2008 SUSE LINUX Products GmbH
  5. * by Bernhard Walle <bernhard.walle@gmx.de>
  6. */
  7. #ifndef _LINUX_FIRMWARE_MAP_H
  8. #define _LINUX_FIRMWARE_MAP_H
  9. #include <linux/list.h>
  10. /*
  11. * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
  12. */
  13. #ifdef CONFIG_FIRMWARE_MEMMAP
  14. int firmware_map_add_early(u64 start, u64 end, const char *type);
  15. int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
  16. int firmware_map_remove(u64 start, u64 end, const char *type);
  17. #else /* CONFIG_FIRMWARE_MEMMAP */
  18. static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
  19. {
  20. return 0;
  21. }
  22. static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
  23. {
  24. return 0;
  25. }
  26. static inline int firmware_map_remove(u64 start, u64 end, const char *type)
  27. {
  28. return 0;
  29. }
  30. #endif /* CONFIG_FIRMWARE_MEMMAP */
  31. #endif /* _LINUX_FIRMWARE_MAP_H */