Changeset b7fd2a0 in mainline for uspace/drv/platform/sun4v/sun4v.c
- Timestamp:
- 2018-01-13T03:10:29Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/platform/sun4v/sun4v.c
r36f0738 rb7fd2a0 55 55 } sun4v_fun_t; 56 56 57 static int sun4v_dev_add(ddf_dev_t *dev);57 static errno_t sun4v_dev_add(ddf_dev_t *dev); 58 58 59 59 static driver_ops_t sun4v_ops = { … … 114 114 } 115 115 116 static int sun4v_enable_interrupt(ddf_fun_t *fun, int irq)116 static errno_t sun4v_enable_interrupt(ddf_fun_t *fun, int irq) 117 117 { 118 118 return EOK; … … 138 138 static ddf_dev_ops_t sun4v_fun_ops; 139 139 140 static int sun4v_add_fun(ddf_dev_t *dev, const char *name,140 static errno_t sun4v_add_fun(ddf_dev_t *dev, const char *name, 141 141 const char *str_match_id, sun4v_fun_t *fun_proto) 142 142 { … … 144 144 145 145 ddf_fun_t *fnode = NULL; 146 int rc;146 errno_t rc; 147 147 148 148 /* Create new device. */ … … 188 188 } 189 189 190 static int sun4v_add_functions(ddf_dev_t *dev)191 { 192 int rc;190 static errno_t sun4v_add_functions(ddf_dev_t *dev) 191 { 192 errno_t rc; 193 193 194 194 rc = sun4v_add_fun(dev, "console", "sun4v/console", &console_data); … … 200 200 201 201 /** Add device. */ 202 static int sun4v_dev_add(ddf_dev_t *dev)202 static errno_t sun4v_dev_add(ddf_dev_t *dev) 203 203 { 204 204 ddf_msg(LVL_DEBUG, "sun4v_dev_add, device handle = %d", … … 213 213 } 214 214 215 static int sun4v_init(void)216 { 217 int rc;215 static errno_t sun4v_init(void) 216 { 217 errno_t rc; 218 218 sysarg_t paddr; 219 219 … … 247 247 int main(int argc, char *argv[]) 248 248 { 249 int rc;249 errno_t rc; 250 250 251 251 printf(NAME ": Sun4v platform driver\n");
Note:
See TracChangeset
for help on using the changeset viewer.