Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 19d2ce01 in mainline for uspace/drv/platform/msim/msim.c


Ignore:
Timestamp:
2017-11-16T09:51:14Z (4 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master
Children:
92232331
Parents:
ce96ec2
git-author:
Jiri Svoboda <jiri@…> (2017-11-15 21:50:05)
git-committer:
Jiri Svoboda <jiri@…> (2017-11-16 09:51:14)
Message:

Sun4v console driver can use hw_res for configuration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/msim/msim.c

    rce96ec2 r19d2ce01  
    6565static void msim_init(void);
    6666
    67 /** The root device driver's standard operations. */
     67/** Standard driver operations. */
    6868static driver_ops_t msim_ops = {
    6969        .dev_add = &msim_dev_add
    7070};
    7171
    72 /** The root device driver structure. */
     72/** Driver structure. */
    7373static driver_t msim_driver = {
    7474        .name = NAME,
     
    194194       
    195195        msim_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(msim_fun_t));
     196        if (fun == NULL)
     197                goto failure;
     198       
    196199        *fun = *fun_proto;
    197200       
     
    230233}
    231234
    232 /** Get the root device.
    233  *
    234  * @param dev           The device which is root of the whole device tree (both
    235  *                      of HW and pseudo devices).
    236  * @return              Zero on success, negative error number otherwise.
     235/** Add MSIM platform device.
     236 *
     237 * @param dev DDF device
     238 * @return Zero on success or non-zero error code.
    237239 */
    238240static int msim_dev_add(ddf_dev_t *dev)
Note: See TracChangeset for help on using the changeset viewer.