diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/console_struct.h | 1 | ||||
| -rw-r--r-- | include/linux/fb.h | 11 | ||||
| -rw-r--r-- | include/linux/list.h | 23 | ||||
| -rw-r--r-- | include/linux/platform_data/shmob_drm.h | 6 | ||||
| -rw-r--r-- | include/linux/vt_kern.h | 7 |
5 files changed, 32 insertions, 16 deletions
diff --git a/include/linux/console_struct.h b/include/linux/console_struct.h index fea64f2692a0..ab137f97ecbd 100644 --- a/include/linux/console_struct.h +++ b/include/linux/console_struct.h | |||
| @@ -141,7 +141,6 @@ struct vc_data { | |||
| 141 | struct uni_pagedir *vc_uni_pagedir; | 141 | struct uni_pagedir *vc_uni_pagedir; |
| 142 | struct uni_pagedir **vc_uni_pagedir_loc; /* [!] Location of uni_pagedir variable for this console */ | 142 | struct uni_pagedir **vc_uni_pagedir_loc; /* [!] Location of uni_pagedir variable for this console */ |
| 143 | struct uni_screen *vc_uni_screen; /* unicode screen content */ | 143 | struct uni_screen *vc_uni_screen; /* unicode screen content */ |
| 144 | bool vc_panic_force_write; /* when oops/panic this VC can accept forced output/blanking */ | ||
| 145 | /* additional information is in vt_kern.h */ | 144 | /* additional information is in vt_kern.h */ |
| 146 | }; | 145 | }; |
| 147 | 146 | ||
diff --git a/include/linux/fb.h b/include/linux/fb.h index 3e7e75383d32..a3cab6dc9b44 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h | |||
| @@ -456,10 +456,13 @@ struct fb_tile_ops { | |||
| 456 | * and host endianness. Drivers should not use this flag. | 456 | * and host endianness. Drivers should not use this flag. |
| 457 | */ | 457 | */ |
| 458 | #define FBINFO_BE_MATH 0x100000 | 458 | #define FBINFO_BE_MATH 0x100000 |
| 459 | /* | ||
| 460 | * Hide smem_start in the FBIOGET_FSCREENINFO IOCTL. This is used by modern DRM | ||
| 461 | * drivers to stop userspace from trying to share buffers behind the kernel's | ||
| 462 | * back. Instead dma-buf based buffer sharing should be used. | ||
| 463 | */ | ||
| 464 | #define FBINFO_HIDE_SMEM_START 0x200000 | ||
| 459 | 465 | ||
| 460 | /* report to the VT layer that this fb driver can accept forced console | ||
| 461 | output like oopses */ | ||
| 462 | #define FBINFO_CAN_FORCE_OUTPUT 0x200000 | ||
| 463 | 466 | ||
| 464 | struct fb_info { | 467 | struct fb_info { |
| 465 | atomic_t count; | 468 | atomic_t count; |
| @@ -632,6 +635,8 @@ extern ssize_t fb_sys_write(struct fb_info *info, const char __user *buf, | |||
| 632 | extern int register_framebuffer(struct fb_info *fb_info); | 635 | extern int register_framebuffer(struct fb_info *fb_info); |
| 633 | extern int unregister_framebuffer(struct fb_info *fb_info); | 636 | extern int unregister_framebuffer(struct fb_info *fb_info); |
| 634 | extern int unlink_framebuffer(struct fb_info *fb_info); | 637 | extern int unlink_framebuffer(struct fb_info *fb_info); |
| 638 | extern int remove_conflicting_pci_framebuffers(struct pci_dev *pdev, int res_id, | ||
| 639 | const char *name); | ||
| 635 | extern int remove_conflicting_framebuffers(struct apertures_struct *a, | 640 | extern int remove_conflicting_framebuffers(struct apertures_struct *a, |
| 636 | const char *name, bool primary); | 641 | const char *name, bool primary); |
| 637 | extern int fb_prepare_logo(struct fb_info *fb_info, int rotate); | 642 | extern int fb_prepare_logo(struct fb_info *fb_info, int rotate); |
diff --git a/include/linux/list.h b/include/linux/list.h index de04cc5ed536..edb7628e46ed 100644 --- a/include/linux/list.h +++ b/include/linux/list.h | |||
| @@ -184,6 +184,29 @@ static inline void list_move_tail(struct list_head *list, | |||
| 184 | } | 184 | } |
| 185 | 185 | ||
| 186 | /** | 186 | /** |
| 187 | * list_bulk_move_tail - move a subsection of a list to its tail | ||
| 188 | * @head: the head that will follow our entry | ||
| 189 | * @first: first entry to move | ||
| 190 | * @last: last entry to move, can be the same as first | ||
| 191 | * | ||
| 192 | * Move all entries between @first and including @last before @head. | ||
| 193 | * All three entries must belong to the same linked list. | ||
| 194 | */ | ||
| 195 | static inline void list_bulk_move_tail(struct list_head *head, | ||
| 196 | struct list_head *first, | ||
| 197 | struct list_head *last) | ||
| 198 | { | ||
| 199 | first->prev->next = last->next; | ||
| 200 | last->next->prev = first->prev; | ||
| 201 | |||
| 202 | head->prev->next = first; | ||
| 203 | first->prev = head->prev; | ||
| 204 | |||
| 205 | last->next = head; | ||
| 206 | head->prev = last; | ||
| 207 | } | ||
| 208 | |||
| 209 | /** | ||
| 187 | * list_is_last - tests whether @list is the last entry in list @head | 210 | * list_is_last - tests whether @list is the last entry in list @head |
| 188 | * @list: the entry to test | 211 | * @list: the entry to test |
| 189 | * @head: the head of the list | 212 | * @head: the head of the list |
diff --git a/include/linux/platform_data/shmob_drm.h b/include/linux/platform_data/shmob_drm.h index ee495d707f17..fe815d7d9f58 100644 --- a/include/linux/platform_data/shmob_drm.h +++ b/include/linux/platform_data/shmob_drm.h | |||
| @@ -1,14 +1,10 @@ | |||
| 1 | /* SPDX-License-Identifier: GPL-2.0+ */ | ||
| 1 | /* | 2 | /* |
| 2 | * shmob_drm.h -- SH Mobile DRM driver | 3 | * shmob_drm.h -- SH Mobile DRM driver |
| 3 | * | 4 | * |
| 4 | * Copyright (C) 2012 Renesas Corporation | 5 | * Copyright (C) 2012 Renesas Corporation |
| 5 | * | 6 | * |
| 6 | * Laurent Pinchart (laurent.pinchart@ideasonboard.com) | 7 | * Laurent Pinchart (laurent.pinchart@ideasonboard.com) |
| 7 | * | ||
| 8 | * This program is free software; you can redistribute it and/or modify | ||
| 9 | * it under the terms of the GNU General Public License as published by | ||
| 10 | * the Free Software Foundation; either version 2 of the License, or | ||
| 11 | * (at your option) any later version. | ||
| 12 | */ | 8 | */ |
| 13 | 9 | ||
| 14 | #ifndef __SHMOB_DRM_H__ | 10 | #ifndef __SHMOB_DRM_H__ |
diff --git a/include/linux/vt_kern.h b/include/linux/vt_kern.h index 3fd07912909c..8dc77e40bc03 100644 --- a/include/linux/vt_kern.h +++ b/include/linux/vt_kern.h | |||
| @@ -135,13 +135,6 @@ extern int do_unbind_con_driver(const struct consw *csw, int first, int last, | |||
| 135 | int deflt); | 135 | int deflt); |
| 136 | int vty_init(const struct file_operations *console_fops); | 136 | int vty_init(const struct file_operations *console_fops); |
| 137 | 137 | ||
| 138 | static inline bool vt_force_oops_output(struct vc_data *vc) | ||
| 139 | { | ||
| 140 | if (oops_in_progress && vc->vc_panic_force_write && panic_timeout >= 0) | ||
| 141 | return true; | ||
| 142 | return false; | ||
| 143 | } | ||
| 144 | |||
| 145 | extern char vt_dont_switch; | 138 | extern char vt_dont_switch; |
| 146 | extern int default_utf8; | 139 | extern int default_utf8; |
| 147 | extern int global_cursor_default; | 140 | extern int global_cursor_default; |
