treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / arch / x86 / boot / compressed / eboot.h
blob99f35343d443bf3d6e85f88620f55b0841ceaa59
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef BOOT_COMPRESSED_EBOOT_H
3 #define BOOT_COMPRESSED_EBOOT_H
5 #define SEG_TYPE_DATA (0 << 3)
6 #define SEG_TYPE_READ_WRITE (1 << 1)
7 #define SEG_TYPE_CODE (1 << 3)
8 #define SEG_TYPE_EXEC_READ (1 << 1)
9 #define SEG_TYPE_TSS ((1 << 3) | (1 << 0))
10 #define SEG_OP_SIZE_32BIT (1 << 0)
11 #define SEG_GRANULARITY_4KB (1 << 0)
13 #define DESC_TYPE_CODE_DATA (1 << 0)
15 typedef union efi_uga_draw_protocol efi_uga_draw_protocol_t;
17 union efi_uga_draw_protocol {
18 struct {
19 efi_status_t (__efiapi *get_mode)(efi_uga_draw_protocol_t *,
20 u32*, u32*, u32*, u32*);
21 void *set_mode;
22 void *blt;
24 struct {
25 u32 get_mode;
26 u32 set_mode;
27 u32 blt;
28 } mixed_mode;
31 #endif /* BOOT_COMPRESSED_EBOOT_H */