Changes in uspace/drv/platform/sun4v/sun4v.c [b7fd2a0:f4cfd271] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/sun4v/sun4v.c
rb7fd2a0 rf4cfd271 41 41 #include <ddf/log.h> 42 42 #include <errno.h> 43 #include <str_error.h>44 43 #include <ops/hw_res.h> 45 44 #include <ops/pio_window.h> … … 55 54 } sun4v_fun_t; 56 55 57 static errno_t sun4v_dev_add(ddf_dev_t *dev);56 static int sun4v_dev_add(ddf_dev_t *dev); 58 57 59 58 static driver_ops_t sun4v_ops = { … … 114 113 } 115 114 116 static errno_t sun4v_enable_interrupt(ddf_fun_t *fun, int irq)117 { 118 return EOK;115 static int sun4v_enable_interrupt(ddf_fun_t *fun, int irq) 116 { 117 return true; 119 118 } 120 119 … … 138 137 static ddf_dev_ops_t sun4v_fun_ops; 139 138 140 static errno_t sun4v_add_fun(ddf_dev_t *dev, const char *name,139 static int sun4v_add_fun(ddf_dev_t *dev, const char *name, 141 140 const char *str_match_id, sun4v_fun_t *fun_proto) 142 141 { … … 144 143 145 144 ddf_fun_t *fnode = NULL; 146 errno_t rc;145 int rc; 147 146 148 147 /* Create new device. */ … … 188 187 } 189 188 190 static errno_t sun4v_add_functions(ddf_dev_t *dev)191 { 192 errno_t rc;189 static int sun4v_add_functions(ddf_dev_t *dev) 190 { 191 int rc; 193 192 194 193 rc = sun4v_add_fun(dev, "console", "sun4v/console", &console_data); … … 200 199 201 200 /** Add device. */ 202 static errno_t sun4v_dev_add(ddf_dev_t *dev)201 static int sun4v_dev_add(ddf_dev_t *dev) 203 202 { 204 203 ddf_msg(LVL_DEBUG, "sun4v_dev_add, device handle = %d", … … 213 212 } 214 213 215 static errno_t sun4v_init(void)216 { 217 errno_t rc;214 static int sun4v_init(void) 215 { 216 int rc; 218 217 sysarg_t paddr; 219 218 … … 229 228 rc = sysinfo_get_value("niagara.inbuf.address", &paddr); 230 229 if (rc != EOK) { 231 ddf_msg(LVL_ERROR, "niagara.inbuf.address not set : %s", str_error(rc));230 ddf_msg(LVL_ERROR, "niagara.inbuf.address not set (%d)", rc); 232 231 return rc; 233 232 } … … 237 236 rc = sysinfo_get_value("niagara.outbuf.address", &paddr); 238 237 if (rc != EOK) { 239 ddf_msg(LVL_ERROR, "niagara.outbuf.address not set : %s", str_error(rc));238 ddf_msg(LVL_ERROR, "niagara.outbuf.address not set (%d)", rc); 240 239 return rc; 241 240 } … … 247 246 int main(int argc, char *argv[]) 248 247 { 249 errno_t rc;248 int rc; 250 249 251 250 printf(NAME ": Sun4v platform driver\n");
Note:
See TracChangeset
for help on using the changeset viewer.