Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  Copyright 2007 Red Hat, Inc.
0004  *  by Peter Jones <pjones@redhat.com>
0005  *  Copyright 2007 IBM, Inc.
0006  *  by Konrad Rzeszutek <konradr@linux.vnet.ibm.com>
0007  *  Copyright 2008
0008  *  by Konrad Rzeszutek <ketuzsezr@darnok.org>
0009  *
0010  * This code exposes the iSCSI Boot Format Table to userland via sysfs.
0011  */
0012 
0013 #ifndef ISCSI_IBFT_H
0014 #define ISCSI_IBFT_H
0015 
0016 #include <linux/types.h>
0017 
0018 /*
0019  * Physical location of iSCSI Boot Format Table.
0020  * If the value is 0 there is no iBFT on the machine.
0021  */
0022 extern phys_addr_t ibft_phys_addr;
0023 
0024 /*
0025  * Routine used to find and reserve the iSCSI Boot Format Table. The
0026  * physical address is set in the ibft_phys_addr variable.
0027  */
0028 #ifdef CONFIG_ISCSI_IBFT_FIND
0029 void reserve_ibft_region(void);
0030 #else
0031 static inline void reserve_ibft_region(void) {}
0032 #endif
0033 
0034 #endif /* ISCSI_IBFT_H */