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