Changes in kernel/arch/sparc64/src/drivers/scr.c [9a5abb78:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/scr.c
r9a5abb78 r9d58539 46 46 #include <align.h> 47 47 #include <print.h> 48 #include <log.h>49 48 50 49 #define FFB_REG_24BPP 7 … … 82 81 83 82 if (scr_type == SCR_UNKNOWN) { 84 log(LF_ARCH, LVL_ERROR, "Unknown screen device.");83 printf("Unknown screen device.\n"); 85 84 return; 86 85 } … … 118 117 case SCR_ATYFB: 119 118 if (prop->size / sizeof(ofw_pci_reg_t) < 2) { 120 log(LF_ARCH, LVL_ERROR, "Too few screen registers.");119 printf("Too few screen registers.\n"); 121 120 return; 122 121 } … … 125 124 126 125 if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) { 127 log(LF_ARCH, LVL_ERROR, 128 "Failed to absolutize fb register."); 126 printf("Failed to absolutize fb register.\n"); 129 127 return; 130 128 } … … 132 130 if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg, 133 131 &fb_addr)) { 134 log(LF_ARCH, LVL_ERROR, 135 "Failed to determine screen address."); 132 printf("Failed to determine screen address.\n"); 136 133 return; 137 134 } … … 155 152 break; 156 153 default: 157 log(LF_ARCH, LVL_ERROR, 158 "Unsupported bits per pixel."); 154 printf("Unsupported bits per pixel.\n"); 159 155 return; 160 156 } … … 163 159 case SCR_XVR: 164 160 if (prop->size / sizeof(ofw_pci_reg_t) < 2) { 165 log(LF_ARCH, LVL_ERROR, 166 "Too few screen registers."); 161 printf("Too few screen registers.\n"); 167 162 return; 168 163 } … … 171 166 172 167 if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) { 173 log(LF_ARCH, LVL_ERROR, 174 "Failed to absolutize fb register."); 168 printf("Failed to absolutize fb register.\n"); 175 169 return; 176 170 } … … 178 172 if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg, 179 173 &fb_addr)) { 180 log(LF_ARCH, LVL_ERROR, 181 "Failed to determine screen address."); 174 printf("Failed to determine screen address.\n"); 182 175 return; 183 176 } … … 203 196 break; 204 197 default: 205 log(LF_ARCH, LVL_ERROR, 206 "Unsupported bits per pixel."); 198 printf("Unsupported bits per pixel.\n"); 207 199 return; 208 200 } … … 215 207 upa_reg = &((ofw_upa_reg_t *) prop->value)[FFB_REG_24BPP]; 216 208 if (!ofw_upa_apply_ranges(node->parent, upa_reg, &fb_addr)) { 217 log(LF_ARCH, LVL_ERROR, 218 "Failed to determine screen address."); 209 printf("Failed to determine screen address.\n"); 219 210 return; 220 211 } … … 228 219 break; 229 220 default: 230 log(LF_ARCH, LVL_WARN, "Not implemented.");221 printf("Not implemented.\n"); 231 222 return; 232 223 } … … 234 225 sbus_reg = &((ofw_sbus_reg_t *) prop->value)[0]; 235 226 if (!ofw_sbus_apply_ranges(node->parent, sbus_reg, &fb_addr)) { 236 log(LF_ARCH, LVL_ERROR, 237 "Failed to determine screen address."); 227 printf("Failed to determine screen address.\n"); 238 228 return; 239 229 } … … 243 233 case SCR_QEMU_VGA: 244 234 if (prop->size / sizeof(ofw_pci_reg_t) < 2) { 245 log(LF_ARCH, LVL_ERROR, "Too few screen registers.");235 printf("Too few screen registers.\n"); 246 236 return; 247 237 } … … 250 240 251 241 if (!ofw_pci_reg_absolutize(node, pci_reg, &pci_abs_reg)) { 252 log(LF_ARCH, LVL_ERROR, 253 "Failed to absolutize fb register."); 242 printf("Failed to absolutize fb register.\n"); 254 243 return; 255 244 } … … 257 246 if (!ofw_pci_apply_ranges(node->parent, &pci_abs_reg, 258 247 &fb_addr)) { 259 log(LF_ARCH, LVL_ERROR, 260 "Failed to determine screen address."); 248 printf("Failed to determine screen address.\n"); 261 249 return; 262 250 } … … 280 268 break; 281 269 default: 282 log(LF_ARCH, LVL_ERROR, "Unsupported bits per pixel.");270 printf("Unsupported bits per pixel.\n"); 283 271 return; 284 272 }
Note:
See TracChangeset
for help on using the changeset viewer.