13511Srfield/* SPDX-License-Identifier: GPL-2.0-only */ 23511Srfield/* 33511Srfield * Copyright 2007 Red Hat, Inc. 43511Srfield * by Peter Jones <pjones@redhat.com> 53511Srfield * Copyright 2007 IBM, Inc. 63511Srfield * by Konrad Rzeszutek <konradr@linux.vnet.ibm.com> 73511Srfield * Copyright 2008 83511Srfield * by Konrad Rzeszutek <ketuzsezr@darnok.org> 93511Srfield * 103511Srfield * This code exposes the iSCSI Boot Format Table to userland via sysfs. 113511Srfield */ 123511Srfield 133511Srfield#ifndef ISCSI_IBFT_H 143511Srfield#define ISCSI_IBFT_H 153511Srfield 163511Srfield#include <linux/types.h> 174161Sihse 183511Srfield/* 194161Sihse * Physical location of iSCSI Boot Format Table. 203511Srfield * If the value is 0 there is no iBFT on the machine. 213511Srfield */ 223511Srfieldextern phys_addr_t ibft_phys_addr; 233511Srfield 243511Srfield#ifdef CONFIG_ISCSI_IBFT_FIND 253511Srfield 263511Srfield/* 273511Srfield * Routine used to find and reserve the iSCSI Boot Format Table. The 283511Srfield * physical address is set in the ibft_phys_addr variable. 293511Srfield */ 303511Srfieldvoid reserve_ibft_region(void); 313511Srfield 323511Srfield/* 333511Srfield * Physical bounds to search for the iSCSI Boot Format Table. 343511Srfield */ 353511Srfield#define IBFT_START 0x80000 /* 512kB */ 363511Srfield#define IBFT_END 0x100000 /* 1MB */ 373511Srfield 383511Srfield#else 393511Srfieldstatic inline void reserve_ibft_region(void) {} 403511Srfield#endif 413511Srfield 423511Srfield#endif /* ISCSI_IBFT_H */ 433511Srfield