Changeset d9fae235 in mainline for uspace/srv/hw/cir
- Timestamp:
- 2010-04-17T01:28:38Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9d6bfa5
- Parents:
- 9256ad29
- Location:
- uspace/srv/hw/cir
- Files:
-
- 2 edited
-
fhc/fhc.c (modified) (2 diffs)
-
obio/obio.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/cir/fhc/fhc.c
r9256ad29 rd9fae235 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 … … 132 131 printf(NAME ": FHC UART registers at %p, %d 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 -
uspace/srv/hw/cir/obio/obio.c
r9256ad29 rd9fae235 112 112 static bool obio_init(void) 113 113 { 114 ipcarg_t phonead; 115 116 base_phys = (void *) sysinfo_value("obio.base.physical"); 114 sysarg_t paddr; 117 115 118 if ( !base_phys) {116 if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) { 119 117 printf(NAME ": no OBIO registers found\n"); 120 118 return false; 121 119 } 122 120 121 base_phys = (void *) paddr; 123 122 base_virt = as_get_mappable_page(OBIO_SIZE); 124 123 … … 133 132 134 133 printf(NAME ": OBIO registers with base at %p\n", base_phys); 135 134 136 135 async_set_client_connection(obio_connection); 136 ipcarg_t phonead; 137 137 ipc_connect_to_me(PHONE_NS, SERVICE_OBIO, 0, 0, &phonead); 138 138
Note:
See TracChangeset
for help on using the changeset viewer.
