Rev 4337 | Rev 4345 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 4337 | Rev 4339 | ||
|---|---|---|---|
| Line 102... | Line 102... | ||
| 102 | if (prop && prop->value) |
102 | if (prop && prop->value) |
| 103 | fb_linebytes = *((uint32_t *) prop->value); |
103 | fb_linebytes = *((uint32_t *) prop->value); |
| 104 | 104 | ||
| 105 | prop = ofw_tree_getprop(node, "reg"); |
105 | prop = ofw_tree_getprop(node, "reg"); |
| 106 | if (!prop) |
106 | if (!prop) |
| 107 | panic("Can't find \"reg\" property.\n"); |
107 | panic("Cannot find 'reg' property."); |
| 108 | 108 | ||
| 109 | switch (scr_type) { |
109 | switch (scr_type) { |
| 110 | case SCR_ATYFB: |
110 | case SCR_ATYFB: |
| 111 | if (prop->size / sizeof(ofw_pci_reg_t) < 2) { |
111 | if (prop->size / sizeof(ofw_pci_reg_t) < 2) { |
| 112 | printf("Too few screen registers.\n"); |
112 | printf("Too few screen registers.\n"); |
| Line 221... | Line 221... | ||
| 221 | return; |
221 | return; |
| 222 | } |
222 | } |
| 223 | 223 | ||
| 224 | break; |
224 | break; |
| 225 | default: |
225 | default: |
| 226 | panic("Unexpected type.\n"); |
226 | panic("Unexpected type."); |
| 227 | } |
227 | } |
| 228 | 228 | ||
| 229 | fb_properties_t props = { |
229 | fb_properties_t props = { |
| 230 | .addr = fb_addr, |
230 | .addr = fb_addr, |
| 231 | .offset = fb_offset, |
231 | .offset = fb_offset, |