Changeset 6ff1f1e in mainline
- Timestamp:
- 2006-09-25T20:46:50Z (18 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45b26dad
- Parents:
- 5d684e4
- Location:
- kernel
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/scr.c
r5d684e4 r6ff1f1e 41 41 #include <align.h> 42 42 #include <print.h> 43 44 #define FFB_REG_24BPP 7 43 45 44 46 scr_type_t scr_type = SCR_UNKNOWN; … … 121 123 122 124 break; 123 case SCR_FFB: 125 case SCR_FFB: 126 fb_depth = 24; 127 fb_scanline = 8192; 128 129 ofw_upa_reg_t *reg = &((ofw_upa_reg_t *) prop->value)[FFB_REG_24BPP]; 130 if (!ofw_upa_apply_ranges(node->parent, reg, &fb_addr)) { 131 printf("Failed to determine screen address.\n"); 132 return; 133 } 134 135 break; 124 136 default: 125 137 panic("Unexpected type.\n"); -
kernel/genarch/Makefile.inc
r5d684e4 r6ff1f1e 99 99 genarch/src/ofw/ebus.c \ 100 100 genarch/src/ofw/fhc.c \ 101 genarch/src/ofw/pci.c 101 genarch/src/ofw/pci.c \ 102 genarch/src/ofw/upa.c 102 103 endif -
kernel/genarch/include/ofw/ofw_tree.h
r5d684e4 r6ff1f1e 118 118 typedef struct ofw_pci_range ofw_pci_range_t; 119 119 120 struct ofw_ffb_reg { 120 struct ofw_upa_reg { 121 uint64_t addr; 122 uint64_t size; 121 123 } __attribute__ ((packed)); 122 typedef struct ofw_ ffb_reg ofw_ffb_reg_t;124 typedef struct ofw_upa_reg ofw_upa_reg_t; 123 125 124 126 extern void ofw_tree_init(ofw_tree_node_t *root); … … 132 134 extern bool ofw_ebus_apply_ranges(ofw_tree_node_t *node, ofw_ebus_reg_t *reg, uintptr_t *pa); 133 135 extern bool ofw_pci_apply_ranges(ofw_tree_node_t *node, ofw_pci_reg_t *reg, uintptr_t *pa); 134 extern bool ofw_ ffb_apply_ranges(ofw_tree_node_t *node, ofw_ffb_reg_t *reg, uintptr_t *pa);136 extern bool ofw_upa_apply_ranges(ofw_tree_node_t *node, ofw_upa_reg_t *reg, uintptr_t *pa); 135 137 136 138 extern bool ofw_pci_reg_absolutize(ofw_tree_node_t *node, ofw_pci_reg_t *reg, ofw_pci_reg_t *out);
Note:
See TracChangeset
for help on using the changeset viewer.