cpqphp_nvram.h 812 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * Compaq Hot Plug Controller Driver
  4. *
  5. * Copyright (C) 1995,2001 Compaq Computer Corporation
  6. * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
  7. *
  8. * All rights reserved.
  9. *
  10. * Send feedback to <greg@kroah.com>
  11. *
  12. */
  13. #ifndef _CPQPHP_NVRAM_H
  14. #define _CPQPHP_NVRAM_H
  15. #ifndef CONFIG_HOTPLUG_PCI_COMPAQ_NVRAM
  16. static inline void compaq_nvram_init(void __iomem *rom_start)
  17. {
  18. return;
  19. }
  20. static inline int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl)
  21. {
  22. return 0;
  23. }
  24. static inline int compaq_nvram_store(void __iomem *rom_start)
  25. {
  26. return 0;
  27. }
  28. #else
  29. void compaq_nvram_init(void __iomem *rom_start);
  30. int compaq_nvram_load(void __iomem *rom_start, struct controller *ctrl);
  31. int compaq_nvram_store(void __iomem *rom_start);
  32. #endif
  33. #endif