Changeset 9b35499 in mainline
- Timestamp:
- 2007-09-05T20:01:36Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c785296
- Parents:
- 267ab56
- Location:
- kernel
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/include/drivers/scr.h
r267ab56 r9b35499 42 42 SCR_UNKNOWN, 43 43 SCR_ATYFB, 44 SCR_FFB 44 SCR_FFB, 45 SCR_CGSIX 45 46 } scr_type_t; 46 47 -
kernel/arch/sparc64/src/drivers/scr.c
r267ab56 r9b35499 64 64 else if (strcmp(name, "SUNW,ffb") == 0) 65 65 scr_type = SCR_FFB; 66 else if (strcmp(name, "cgsix") == 0) 67 scr_type = SCR_CGSIX; 66 68 67 69 if (scr_type == SCR_UNKNOWN) { … … 152 154 153 155 break; 156 case SCR_CGSIX: 157 switch (fb_depth) { 158 case 8: 159 fb_scanline = fb_linebytes; 160 visual = VISUAL_INDIRECT_8; 161 break; 162 default: 163 printf("Not implemented.\n"); 164 return; 165 } 166 167 ofw_sbus_reg_t *cg6_reg = &((ofw_sbus_reg_t *) prop->value)[0]; 168 if (!ofw_sbus_apply_ranges(node->parent, cg6_reg, &fb_addr)) { 169 printf("Failed to determine screen address.\n"); 170 return; 171 } 172 173 break; 154 174 default: 155 175 panic("Unexpected type.\n"); -
kernel/genarch/Makefile.inc
r267ab56 r9b35499 100 100 genarch/src/ofw/fhc.c \ 101 101 genarch/src/ofw/pci.c \ 102 genarch/src/ofw/sbus.c \ 102 103 genarch/src/ofw/upa.c 103 104 endif -
kernel/genarch/include/ofw/ofw_tree.h
r267ab56 r9b35499 141 141 typedef struct ofw_pci_range ofw_pci_range_t; 142 142 143 struct ofw_sbus_reg { 144 uint64_t addr; 145 uint32_t size; 146 } __attribute__ ((packed)); 147 typedef struct ofw_sbus_reg ofw_sbus_reg_t; 148 149 struct ofw_sbus_range { 150 uint64_t child_base; 151 uint64_t parent_base; 152 uint32_t size; 153 } __attribute__ ((packed)); 154 typedef struct ofw_sbus_range ofw_sbus_range_t; 155 143 156 struct ofw_upa_reg { 144 157 uint64_t addr; … … 161 174 extern bool ofw_ebus_apply_ranges(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uintptr_t *pa); 162 175 extern bool ofw_pci_apply_ranges(ofw_tree_node_t *node, ofw_pci_reg_t *reg, uintptr_t *pa); 176 extern bool ofw_sbus_apply_ranges(ofw_tree_node_t *node, ofw_sbus_reg_t *reg, uintptr_t *pa); 163 177 extern bool ofw_upa_apply_ranges(ofw_tree_node_t *node, ofw_upa_reg_t *reg, uintptr_t *pa); 164 178
Note:
See TracChangeset
for help on using the changeset viewer.