hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/arch/arm/mach-rpc/include/mach/uncompress.h
....@@ -1,11 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * arch/arm/mach-rpc/include/mach/uncompress.h
34 *
45 * Copyright (C) 1996 Russell King
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
96 */
107 #define VIDMEM ((char *)SCREEN_START)
118
....@@ -118,29 +115,22 @@
118115 struct tag *t = (struct tag *)params;
119116 unsigned int nr_pages = 0, page_size = PAGE_SIZE;
120117
121
- if (t->hdr.tag == ATAG_CORE)
122
- {
123
- for (; t->hdr.size; t = tag_next(t))
124
- {
125
- if (t->hdr.tag == ATAG_VIDEOTEXT)
126
- {
118
+ if (t->hdr.tag == ATAG_CORE) {
119
+ for (; t->hdr.size; t = tag_next(t)) {
120
+ if (t->hdr.tag == ATAG_VIDEOTEXT) {
127121 video_num_rows = t->u.videotext.video_lines;
128122 video_num_cols = t->u.videotext.video_cols;
129
- bytes_per_char_h = t->u.videotext.video_points;
130
- bytes_per_char_v = t->u.videotext.video_points;
131123 video_x = t->u.videotext.x;
132124 video_y = t->u.videotext.y;
133
- }
134
-
135
- if (t->hdr.tag == ATAG_MEM)
136
- {
125
+ } else if (t->hdr.tag == ATAG_VIDEOLFB) {
126
+ bytes_per_char_h = t->u.videolfb.lfb_depth;
127
+ bytes_per_char_v = 8;
128
+ } else if (t->hdr.tag == ATAG_MEM) {
137129 page_size = PAGE_SIZE;
138130 nr_pages += (t->u.mem.size / PAGE_SIZE);
139131 }
140132 }
141
- }
142
- else
143
- {
133
+ } else {
144134 nr_pages = params->nr_pages;
145135 page_size = params->page_size;
146136 video_num_rows = params->video_num_rows;