Changeset 46c20c8 in mainline for uspace/srv/hw/cir/fhc/fhc.c
- Timestamp:
- 2010-11-26T20:08:10Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 45df59a
- Parents:
- fb150d78 (diff), ffdd2b9 (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
-
uspace/srv/hw/cir/fhc/fhc.c
rfb150d78 r46c20c8 109 109 static bool fhc_init(void) 110 110 { 111 ipcarg_t phonead;111 sysarg_t paddr; 112 112 113 fhc_uart_size = sysinfo_value("fhc.uart.size"); 114 fhc_uart_phys = (void *) sysinfo_value("fhc.uart.physical"); 115 116 if (!fhc_uart_size) { 113 if ((sysinfo_get_value("fhc.uart.physical", &paddr) != EOK) 114 || (sysinfo_get_value("fhc.uart.size", &fhc_uart_size) != EOK)) { 117 115 printf(NAME ": no FHC UART registers found\n"); 118 116 return false; 119 117 } 120 118 119 fhc_uart_phys = (void *) paddr; 121 120 fhc_uart_virt = as_get_mappable_page(fhc_uart_size); 122 121 … … 130 129 } 131 130 132 printf(NAME ": FHC UART registers at %p, % dbytes\n", fhc_uart_phys,131 printf(NAME ": FHC UART registers at %p, %zu bytes\n", fhc_uart_phys, 133 132 fhc_uart_size); 134 133 135 134 async_set_client_connection(fhc_connection); 135 ipcarg_t phonead; 136 136 ipc_connect_to_me(PHONE_NS, SERVICE_FHC, 0, 0, &phonead); 137 137
Note:
See TracChangeset
for help on using the changeset viewer.