diff options
Diffstat (limited to 'include/linux/sfi.h')
-rw-r--r-- | include/linux/sfi.h | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/include/linux/sfi.h b/include/linux/sfi.h index 0299b4ce63db..fe817918b30e 100644 --- a/include/linux/sfi.h +++ b/include/linux/sfi.h | |||
@@ -70,9 +70,6 @@ | |||
70 | #define SFI_SIG_APIC "APIC" | 70 | #define SFI_SIG_APIC "APIC" |
71 | #define SFI_SIG_XSDT "XSDT" | 71 | #define SFI_SIG_XSDT "XSDT" |
72 | #define SFI_SIG_WAKE "WAKE" | 72 | #define SFI_SIG_WAKE "WAKE" |
73 | #define SFI_SIG_SPIB "SPIB" | ||
74 | #define SFI_SIG_I2CB "I2CB" | ||
75 | #define SFI_SIG_GPEM "GPEM" | ||
76 | #define SFI_SIG_DEVS "DEVS" | 73 | #define SFI_SIG_DEVS "DEVS" |
77 | #define SFI_SIG_GPIO "GPIO" | 74 | #define SFI_SIG_GPIO "GPIO" |
78 | 75 | ||
@@ -80,6 +77,8 @@ | |||
80 | #define SFI_OEM_ID_SIZE 6 | 77 | #define SFI_OEM_ID_SIZE 6 |
81 | #define SFI_OEM_TABLE_ID_SIZE 8 | 78 | #define SFI_OEM_TABLE_ID_SIZE 8 |
82 | 79 | ||
80 | #define SFI_NAME_LEN 16 | ||
81 | |||
83 | #define SFI_SYST_SEARCH_BEGIN 0x000E0000 | 82 | #define SFI_SYST_SEARCH_BEGIN 0x000E0000 |
84 | #define SFI_SYST_SEARCH_END 0x000FFFFF | 83 | #define SFI_SYST_SEARCH_END 0x000FFFFF |
85 | 84 | ||
@@ -159,34 +158,13 @@ struct sfi_device_table_entry { | |||
159 | u16 addr; | 158 | u16 addr; |
160 | u8 irq; | 159 | u8 irq; |
161 | u32 max_freq; | 160 | u32 max_freq; |
162 | char name[16]; | 161 | char name[SFI_NAME_LEN]; |
163 | } __packed; | 162 | } __packed; |
164 | 163 | ||
165 | struct sfi_gpio_table_entry { | 164 | struct sfi_gpio_table_entry { |
166 | char controller_name[16]; | 165 | char controller_name[SFI_NAME_LEN]; |
167 | u16 pin_no; | 166 | u16 pin_no; |
168 | char pin_name[16]; | 167 | char pin_name[SFI_NAME_LEN]; |
169 | } __packed; | ||
170 | |||
171 | struct sfi_spi_table_entry { | ||
172 | u16 host_num; /* attached to host 0, 1...*/ | ||
173 | u16 cs; /* chip select */ | ||
174 | u16 irq_info; | ||
175 | char name[16]; | ||
176 | u8 dev_info[10]; | ||
177 | } __packed; | ||
178 | |||
179 | struct sfi_i2c_table_entry { | ||
180 | u16 host_num; | ||
181 | u16 addr; /* slave addr */ | ||
182 | u16 irq_info; | ||
183 | char name[16]; | ||
184 | u8 dev_info[10]; | ||
185 | } __packed; | ||
186 | |||
187 | struct sfi_gpe_table_entry { | ||
188 | u16 logical_id; /* logical id */ | ||
189 | u16 phys_id; /* physical GPE id */ | ||
190 | } __packed; | 168 | } __packed; |
191 | 169 | ||
192 | typedef int (*sfi_table_handler) (struct sfi_table_header *table); | 170 | typedef int (*sfi_table_handler) (struct sfi_table_header *table); |