Changes in uspace/srv/hw/cir/fhc/fhc.c [d9fae235:b3d513f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/cir/fhc/fhc.c
rd9fae235 rb3d513f 109 109 static bool fhc_init(void) 110 110 { 111 sysarg_t paddr;111 ipcarg_t phonead; 112 112 113 if ((sysinfo_get_value("fhc.uart.physical", &paddr) != EOK) 114 || (sysinfo_get_value("fhc.uart.size", &fhc_uart_size) != EOK)) { 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) { 115 117 printf(NAME ": no FHC UART registers found\n"); 116 118 return false; 117 119 } 118 119 fhc_uart_phys = (void *) paddr; 120 120 121 fhc_uart_virt = as_get_mappable_page(fhc_uart_size); 121 122 … … 131 132 printf(NAME ": FHC UART registers at %p, %d bytes\n", fhc_uart_phys, 132 133 fhc_uart_size); 133 134 134 135 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.