Changes in uspace/srv/hw/irc/obio/obio.c [15f3c3f:57d129e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/irc/obio/obio.c
r15f3c3f r57d129e 44 44 #include <ipc/services.h> 45 45 #include <ipc/irc.h> 46 #include < ns.h>46 #include <ipc/ns.h> 47 47 #include <sysinfo.h> 48 48 #include <as.h> … … 55 55 #include <async.h> 56 56 #include <stdio.h> 57 #include <ipc/ loc.h>57 #include <ipc/devmap.h> 58 58 59 59 #define NAME "obio" … … 76 76 * @param iid Hash of the request that opened the connection. 77 77 * @param icall Call data of the request that opened the connection. 78 * @param arg Local argument.79 78 */ 80 static void obio_connection(ipc_callid_t iid, ipc_call_t *icall , void *arg)79 static void obio_connection(ipc_callid_t iid, ipc_call_t *icall) 81 80 { 82 81 ipc_callid_t callid; … … 119 118 120 119 if (sysinfo_get_value("obio.base.physical", &paddr) != EOK) { 121 printf( "%s: No OBIO registers found\n", NAME);120 printf(NAME ": no OBIO registers found\n"); 122 121 return false; 123 122 } … … 131 130 132 131 if (retval < 0) { 133 printf( "%s: Error mapping OBIO registers\n", NAME);132 printf(NAME ": Error mapping OBIO registers\n"); 134 133 return false; 135 134 } 136 135 137 printf( "%s: OBIO registers with base at %p\n", NAME, base_phys);136 printf(NAME ": OBIO registers with base at %p\n", base_phys); 138 137 139 138 async_set_client_connection(obio_connection); … … 145 144 int main(int argc, char **argv) 146 145 { 147 printf( "%s: HelenOS OBIO driver\n", NAME);146 printf(NAME ": HelenOS OBIO driver\n"); 148 147 149 148 if (!obio_init()) 150 149 return -1; 151 150 152 printf("%s: Accepting connections\n", NAME); 153 task_retval(0); 151 printf(NAME ": Accepting connections\n"); 154 152 async_manager(); 155 153 156 154 /* Never reached */ 157 155 return 0; … … 160 158 /** 161 159 * @} 162 */ 160 */
Note:
See TracChangeset
for help on using the changeset viewer.