iscsi_ibft.h 917 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright 2007 Red Hat, Inc.
  4. * by Peter Jones <pjones@redhat.com>
  5. * Copyright 2007 IBM, Inc.
  6. * by Konrad Rzeszutek <konradr@linux.vnet.ibm.com>
  7. * Copyright 2008
  8. * by Konrad Rzeszutek <ketuzsezr@darnok.org>
  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/acpi.h>
  15. /*
  16. * Logical location of iSCSI Boot Format Table.
  17. * If the value is NULL there is no iBFT on the machine.
  18. */
  19. extern struct acpi_table_ibft *ibft_addr;
  20. /*
  21. * Routine used to find and reserve the iSCSI Boot Format Table. The
  22. * mapped address is set in the ibft_addr variable.
  23. */
  24. #ifdef CONFIG_ISCSI_IBFT_FIND
  25. unsigned long find_ibft_region(unsigned long *sizep);
  26. #else
  27. static inline unsigned long find_ibft_region(unsigned long *sizep)
  28. {
  29. *sizep = 0;
  30. return 0;
  31. }
  32. #endif
  33. #endif /* ISCSI_IBFT_H */