Linux Audio

Check our new training course

Loading...
v5.9
 1/* SPDX-License-Identifier: GPL-2.0-only */
 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.
 
 
 
 
 
 
 
 
 
11 */
12
13#ifndef ISCSI_IBFT_H
14#define ISCSI_IBFT_H
15
16#include <linux/acpi.h>
17
18/*
19 * Logical location of iSCSI Boot Format Table.
20 * If the value is NULL there is no iBFT on the machine.
21 */
22extern struct acpi_table_ibft *ibft_addr;
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
29unsigned long find_ibft_region(unsigned long *sizep);
30#else
31static inline unsigned long find_ibft_region(unsigned long *sizep)
32{
33	*sizep = 0;
34	return 0;
35}
36#endif
37
38#endif /* ISCSI_IBFT_H */
v3.5.6
 
 1/*
 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
24#include <acpi/acpi.h>
25
26/*
27 * Logical location of iSCSI Boot Format Table.
28 * If the value is NULL there is no iBFT on the machine.
29 */
30extern struct acpi_table_ibft *ibft_addr;
31
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
37unsigned long find_ibft_region(unsigned long *sizep);
38#else
39static inline unsigned long find_ibft_region(unsigned long *sizep)
40{
41	*sizep = 0;
42	return 0;
43}
44#endif
45
46#endif /* ISCSI_IBFT_H */