Changeset fd07e57b in mainline for kernel/arch/sparc64/src/drivers/kbd.c
- Timestamp:
- 2014-01-05T21:25:41Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4aa2a27
- Parents:
- aacdb8e (diff), ca05e9b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/arch/sparc64/src/drivers/kbd.c
raacdb8e rfd07e57b 44 44 #include <align.h> 45 45 #include <str.h> 46 #include < print.h>46 #include <log.h> 47 47 #include <sysinfo/sysinfo.h> 48 48 … … 71 71 ofw_tree_property_t *prop = ofw_tree_getprop(node, "interrupts"); 72 72 if ((!prop) || (!prop->value)) { 73 printf("ns16550: Unable to find interrupts property\n"); 73 log(LF_ARCH, LVL_ERROR, 74 "ns16550: Unable to find interrupts property"); 74 75 return false; 75 76 } … … 82 83 prop = ofw_tree_getprop(node, "reg"); 83 84 if ((!prop) || (!prop->value)) { 84 printf("ns16550: Unable to find reg property\n"); 85 log(LF_ARCH, LVL_ERROR, 86 "ns16550: Unable to find reg property"); 85 87 return false; 86 88 } … … 91 93 if (!ofw_ebus_apply_ranges(node->parent, 92 94 ((ofw_ebus_reg_t *) prop->value), &pa)) { 93 printf("ns16550: Failed to determine address\n"); 95 log(LF_ARCH, LVL_ERROR, 96 "ns16550: Failed to determine address"); 94 97 return false; 95 98 } … … 101 104 ((ofw_ebus_reg_t *) prop->value), interrupts, &inr, &cir, 102 105 &cir_arg)) { 103 printf("ns16550: Failed to determine interrupt\n"); 106 log(LF_ARCH, LVL_ERROR, 107 "ns16550: Failed to determine interrupt"); 104 108 return false; 105 109 } … … 117 121 PAGE_WRITE | PAGE_NOT_CACHEABLE) + offset); 118 122 119 ns16550_instance_t *ns16550_instance = ns16550_init(ns16550, inr, cir, cir_arg); 123 ns16550_instance_t *ns16550_instance = ns16550_init(ns16550, inr, cir, 124 cir_arg, NULL); 120 125 if (ns16550_instance) { 121 126 kbrd_instance_t *kbrd_instance = kbrd_init();
Note:
See TracChangeset
for help on using the changeset viewer.