Changes in uspace/srv/hw/irc/fhc/fhc.c [9934f7d:57d129e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/fhc/fhc.c
r9934f7d r57d129e 38 38 #include <ipc/services.h> 39 39 #include <ipc/irc.h> 40 #include < ns.h>40 #include <ipc/ns.h> 41 41 #include <sysinfo.h> 42 42 #include <as.h> … … 53 53 #define NAME "fhc" 54 54 55 #define FHC_UART_INR 0x39 55 #define FHC_UART_INR 0x39 56 56 57 57 #define FHC_UART_IMAP 0x0 … … 66 66 * @param iid Hash of the request that opened the connection. 67 67 * @param icall Call data of the request that opened the connection. 68 * @param arg Local argument.69 68 */ 70 static void fhc_connection(ipc_callid_t iid, ipc_call_t *icall , void *arg)69 static void fhc_connection(ipc_callid_t iid, ipc_call_t *icall) 71 70 { 72 71 ipc_callid_t callid; … … 129 128 130 129 if (retval < 0) { 131 printf( "%s: Error mapping FHC UART registers\n", NAME);130 printf(NAME ": Error mapping FHC UART registers\n"); 132 131 return false; 133 132 } 134 133 135 printf( "%s: FHC UART registers at %p, %zu bytes\n", NAME,136 fhc_uart_ phys, fhc_uart_size);134 printf(NAME ": FHC UART registers at %p, %zu bytes\n", fhc_uart_phys, 135 fhc_uart_size); 137 136 138 137 async_set_client_connection(fhc_connection); … … 144 143 int main(int argc, char **argv) 145 144 { 146 printf( "%s: HelenOS FHC bus controller driver\n", NAME);145 printf(NAME ": HelenOS FHC bus controller driver\n"); 147 146 148 147 if (!fhc_init()) 149 148 return -1; 150 149 151 printf("%s: Accepting connections\n", NAME); 152 task_retval(0); 150 printf(NAME ": Accepting connections\n"); 153 151 async_manager(); 154 152 155 153 /* Never reached */ 156 154 return 0; … … 159 157 /** 160 158 * @} 161 */ 159 */
Note:
See TracChangeset
for help on using the changeset viewer.