diff options
Diffstat (limited to 'include/linux/iscsi_ibft.h')
| -rw-r--r-- | include/linux/iscsi_ibft.h | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/include/linux/iscsi_ibft.h b/include/linux/iscsi_ibft.h index 6092487e2950..8ba7e5b9d62c 100644 --- a/include/linux/iscsi_ibft.h +++ b/include/linux/iscsi_ibft.h | |||
| @@ -21,30 +21,26 @@ | |||
| 21 | #ifndef ISCSI_IBFT_H | 21 | #ifndef ISCSI_IBFT_H |
| 22 | #define ISCSI_IBFT_H | 22 | #define ISCSI_IBFT_H |
| 23 | 23 | ||
| 24 | struct ibft_table_header { | 24 | #include <acpi/acpi.h> |
| 25 | char signature[4]; | ||
| 26 | u32 length; | ||
| 27 | u8 revision; | ||
| 28 | u8 checksum; | ||
| 29 | char oem_id[6]; | ||
| 30 | char oem_table_id[8]; | ||
| 31 | char reserved[24]; | ||
| 32 | } __attribute__((__packed__)); | ||
| 33 | 25 | ||
| 34 | /* | 26 | /* |
| 35 | * Logical location of iSCSI Boot Format Table. | 27 | * Logical location of iSCSI Boot Format Table. |
| 36 | * If the value is NULL there is no iBFT on the machine. | 28 | * If the value is NULL there is no iBFT on the machine. |
| 37 | */ | 29 | */ |
| 38 | extern struct ibft_table_header *ibft_addr; | 30 | extern struct acpi_table_ibft *ibft_addr; |
| 39 | 31 | ||
| 40 | /* | 32 | /* |
| 41 | * Routine used to find and reserve the iSCSI Boot Format Table. The | 33 | * Routine used to find and reserve the iSCSI Boot Format Table. The |
| 42 | * mapped address is set in the ibft_addr variable. | 34 | * mapped address is set in the ibft_addr variable. |
| 43 | */ | 35 | */ |
| 44 | #ifdef CONFIG_ISCSI_IBFT_FIND | 36 | #ifdef CONFIG_ISCSI_IBFT_FIND |
| 45 | extern void __init reserve_ibft_region(void); | 37 | unsigned long find_ibft_region(unsigned long *sizep); |
| 46 | #else | 38 | #else |
| 47 | static inline void reserve_ibft_region(void) { } | 39 | static inline unsigned long find_ibft_region(unsigned long *sizep) |
| 40 | { | ||
| 41 | *sizep = 0; | ||
| 42 | return 0; | ||
| 43 | } | ||
| 48 | #endif | 44 | #endif |
| 49 | 45 | ||
| 50 | #endif /* ISCSI_IBFT_H */ | 46 | #endif /* ISCSI_IBFT_H */ |
