firmware-map.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * include/linux/firmware-map.h:
  3. * Copyright (C) 2008 SUSE LINUX Products GmbH
  4. * by Bernhard Walle <bernhard.walle@gmx.de>
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License v2.0 as published by
  8. * the Free Software Foundation
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. */
  16. #ifndef _LINUX_FIRMWARE_MAP_H
  17. #define _LINUX_FIRMWARE_MAP_H
  18. #include <linux/list.h>
  19. /*
  20. * provide a dummy interface if CONFIG_FIRMWARE_MEMMAP is disabled
  21. */
  22. #ifdef CONFIG_FIRMWARE_MEMMAP
  23. int firmware_map_add_early(u64 start, u64 end, const char *type);
  24. int firmware_map_add_hotplug(u64 start, u64 end, const char *type);
  25. int firmware_map_remove(u64 start, u64 end, const char *type);
  26. #else /* CONFIG_FIRMWARE_MEMMAP */
  27. static inline int firmware_map_add_early(u64 start, u64 end, const char *type)
  28. {
  29. return 0;
  30. }
  31. static inline int firmware_map_add_hotplug(u64 start, u64 end, const char *type)
  32. {
  33. return 0;
  34. }
  35. static inline int firmware_map_remove(u64 start, u64 end, const char *type)
  36. {
  37. return 0;
  38. }
  39. #endif /* CONFIG_FIRMWARE_MEMMAP */
  40. #endif /* _LINUX_FIRMWARE_MAP_H */