xref: /linux-6.15/include/linux/iscsi_ibft.h (revision 342f43af)
1d9523678SThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-only */
2138fe4e0SKonrad Rzeszutek /*
3138fe4e0SKonrad Rzeszutek  *  Copyright 2007 Red Hat, Inc.
4138fe4e0SKonrad Rzeszutek  *  by Peter Jones <[email protected]>
5138fe4e0SKonrad Rzeszutek  *  Copyright 2007 IBM, Inc.
6138fe4e0SKonrad Rzeszutek  *  by Konrad Rzeszutek <[email protected]>
7138fe4e0SKonrad Rzeszutek  *  Copyright 2008
8138fe4e0SKonrad Rzeszutek  *  by Konrad Rzeszutek <[email protected]>
9138fe4e0SKonrad Rzeszutek  *
10138fe4e0SKonrad Rzeszutek  * This code exposes the iSCSI Boot Format Table to userland via sysfs.
11138fe4e0SKonrad Rzeszutek  */
12138fe4e0SKonrad Rzeszutek 
13138fe4e0SKonrad Rzeszutek #ifndef ISCSI_IBFT_H
14138fe4e0SKonrad Rzeszutek #define ISCSI_IBFT_H
15138fe4e0SKonrad Rzeszutek 
16*342f43afSMaurizio Lombardi #include <linux/types.h>
17138fe4e0SKonrad Rzeszutek 
18138fe4e0SKonrad Rzeszutek /*
19*342f43afSMaurizio Lombardi  * Physical location of iSCSI Boot Format Table.
20*342f43afSMaurizio Lombardi  * If the value is 0 there is no iBFT on the machine.
21138fe4e0SKonrad Rzeszutek  */
22*342f43afSMaurizio Lombardi extern phys_addr_t ibft_phys_addr;
23138fe4e0SKonrad Rzeszutek 
24138fe4e0SKonrad Rzeszutek /*
25138fe4e0SKonrad Rzeszutek  * Routine used to find and reserve the iSCSI Boot Format Table. The
26*342f43afSMaurizio Lombardi  * physical address is set in the ibft_phys_addr variable.
27138fe4e0SKonrad Rzeszutek  */
28138fe4e0SKonrad Rzeszutek #ifdef CONFIG_ISCSI_IBFT_FIND
29*342f43afSMaurizio Lombardi void reserve_ibft_region(void);
30138fe4e0SKonrad Rzeszutek #else
31*342f43afSMaurizio Lombardi static inline void reserve_ibft_region(void) {}
32138fe4e0SKonrad Rzeszutek #endif
33138fe4e0SKonrad Rzeszutek 
34138fe4e0SKonrad Rzeszutek #endif /* ISCSI_IBFT_H */
35