iscsi_ibft.h 847 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright 2007 Red Hat, Inc.
  4. * by Peter Jones <[email protected]>
  5. * Copyright 2007 IBM, Inc.
  6. * by Konrad Rzeszutek <[email protected]>
  7. * Copyright 2008
  8. * by Konrad Rzeszutek <[email protected]>
  9. *
  10. * This code exposes the iSCSI Boot Format Table to userland via sysfs.
  11. */
  12. #ifndef ISCSI_IBFT_H
  13. #define ISCSI_IBFT_H
  14. #include <linux/types.h>
  15. /*
  16. * Physical location of iSCSI Boot Format Table.
  17. * If the value is 0 there is no iBFT on the machine.
  18. */
  19. extern phys_addr_t ibft_phys_addr;
  20. /*
  21. * Routine used to find and reserve the iSCSI Boot Format Table. The
  22. * physical address is set in the ibft_phys_addr variable.
  23. */
  24. #ifdef CONFIG_ISCSI_IBFT_FIND
  25. void reserve_ibft_region(void);
  26. #else
  27. static inline void reserve_ibft_region(void) {}
  28. #endif
  29. #endif /* ISCSI_IBFT_H */