Thomas Gleixner | d952367 | 2019-05-29 07:18:01 -0700 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
Konrad Rzeszutek | 138fe4e | 2008-04-09 19:50:41 -0700 | [diff] [blame] | 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. |
Konrad Rzeszutek | 138fe4e | 2008-04-09 19:50:41 -0700 | [diff] [blame] | 11 | */ |
| 12 | |
| 13 | #ifndef ISCSI_IBFT_H |
| 14 | #define ISCSI_IBFT_H |
| 15 | |
Lv Zheng | 9d24622 | 2013-12-06 16:52:19 +0800 | [diff] [blame] | 16 | #include <linux/acpi.h> |
Konrad Rzeszutek | 138fe4e | 2008-04-09 19:50:41 -0700 | [diff] [blame] | 17 | |
| 18 | /* |
| 19 | * Logical location of iSCSI Boot Format Table. |
| 20 | * If the value is NULL there is no iBFT on the machine. |
| 21 | */ |
Peter Jones | 4e639fd | 2010-02-25 15:37:17 -0500 | [diff] [blame] | 22 | extern struct acpi_table_ibft *ibft_addr; |
Konrad Rzeszutek | 138fe4e | 2008-04-09 19:50:41 -0700 | [diff] [blame] | 23 | |
| 24 | /* |
| 25 | * Routine used to find and reserve the iSCSI Boot Format Table. The |
| 26 | * mapped address is set in the ibft_addr variable. |
| 27 | */ |
| 28 | #ifdef CONFIG_ISCSI_IBFT_FIND |
Yinghai Lu | 042be38 | 2010-04-01 14:32:43 -0700 | [diff] [blame] | 29 | unsigned long find_ibft_region(unsigned long *sizep); |
Konrad Rzeszutek | 138fe4e | 2008-04-09 19:50:41 -0700 | [diff] [blame] | 30 | #else |
Yinghai Lu | 042be38 | 2010-04-01 14:32:43 -0700 | [diff] [blame] | 31 | static inline unsigned long find_ibft_region(unsigned long *sizep) |
| 32 | { |
| 33 | *sizep = 0; |
| 34 | return 0; |
| 35 | } |
Konrad Rzeszutek | 138fe4e | 2008-04-09 19:50:41 -0700 | [diff] [blame] | 36 | #endif |
| 37 | |
| 38 | #endif /* ISCSI_IBFT_H */ |