blob: 605cc5c333d968f7ff2074cd9ab6d21d6b9bbc7e [file] [log] [blame]
Konrad Rzeszutek138fe4e2008-04-09 19:50:41 -07001/*
2 * Copyright 2007 Red Hat, Inc.
3 * by Peter Jones <pjones@redhat.com>
4 * Copyright 2007 IBM, Inc.
5 * by Konrad Rzeszutek <konradr@linux.vnet.ibm.com>
6 * Copyright 2008
7 * by Konrad Rzeszutek <ketuzsezr@darnok.org>
8 *
9 * This code exposes the iSCSI Boot Format Table to userland via sysfs.
10 *
11 * This program is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License v2.0 as published by
13 * the Free Software Foundation
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 */
20
21#ifndef ISCSI_IBFT_H
22#define ISCSI_IBFT_H
23
Lv Zheng9d246222013-12-06 16:52:19 +080024#include <linux/acpi.h>
Konrad Rzeszutek138fe4e2008-04-09 19:50:41 -070025
26/*
27 * Logical location of iSCSI Boot Format Table.
28 * If the value is NULL there is no iBFT on the machine.
29 */
Peter Jones4e639fd2010-02-25 15:37:17 -050030extern struct acpi_table_ibft *ibft_addr;
Konrad Rzeszutek138fe4e2008-04-09 19:50:41 -070031
32/*
33 * Routine used to find and reserve the iSCSI Boot Format Table. The
34 * mapped address is set in the ibft_addr variable.
35 */
36#ifdef CONFIG_ISCSI_IBFT_FIND
Yinghai Lu042be382010-04-01 14:32:43 -070037unsigned long find_ibft_region(unsigned long *sizep);
Konrad Rzeszutek138fe4e2008-04-09 19:50:41 -070038#else
Yinghai Lu042be382010-04-01 14:32:43 -070039static inline unsigned long find_ibft_region(unsigned long *sizep)
40{
41 *sizep = 0;
42 return 0;
43}
Konrad Rzeszutek138fe4e2008-04-09 19:50:41 -070044#endif
45
46#endif /* ISCSI_IBFT_H */