.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
---|
1 | 2 | /* |
---|
2 | 3 | * arch/arm/mach-rpc/include/mach/uncompress.h |
---|
3 | 4 | * |
---|
4 | 5 | * 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. |
---|
9 | 6 | */ |
---|
10 | 7 | #define VIDMEM ((char *)SCREEN_START) |
---|
11 | 8 | |
---|
.. | .. |
---|
118 | 115 | struct tag *t = (struct tag *)params; |
---|
119 | 116 | unsigned int nr_pages = 0, page_size = PAGE_SIZE; |
---|
120 | 117 | |
---|
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) { |
---|
127 | 121 | video_num_rows = t->u.videotext.video_lines; |
---|
128 | 122 | 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; |
---|
131 | 123 | video_x = t->u.videotext.x; |
---|
132 | 124 | 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) { |
---|
137 | 129 | page_size = PAGE_SIZE; |
---|
138 | 130 | nr_pages += (t->u.mem.size / PAGE_SIZE); |
---|
139 | 131 | } |
---|
140 | 132 | } |
---|
141 | | - } |
---|
142 | | - else |
---|
143 | | - { |
---|
| 133 | + } else { |
---|
144 | 134 | nr_pages = params->nr_pages; |
---|
145 | 135 | page_size = params->page_size; |
---|
146 | 136 | video_num_rows = params->video_num_rows; |
---|