Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/include/nic_impl.h

    r5b0cf63 r77ad86c  
    4646 * inject some adaptation layer between the DDF call and NICF implementation */
    4747
    48 extern errno_t nic_get_address_impl(ddf_fun_t *dev_fun, nic_address_t *address);
    49 extern errno_t nic_send_frame_impl(ddf_fun_t *dev_fun, void *data, size_t size);
    50 extern errno_t nic_callback_create_impl(ddf_fun_t *dev_fun);
    51 extern errno_t nic_get_state_impl(ddf_fun_t *dev_fun, nic_device_state_t *state);
    52 extern errno_t nic_set_state_impl(ddf_fun_t *dev_fun, nic_device_state_t state);
    53 extern errno_t nic_get_stats_impl(ddf_fun_t *dev_fun, nic_device_stats_t *stats);
    54 extern errno_t nic_unicast_get_mode_impl(ddf_fun_t *dev_fun,
     48extern int nic_get_address_impl(ddf_fun_t *dev_fun, nic_address_t *address);
     49extern int nic_send_frame_impl(ddf_fun_t *dev_fun, void *data, size_t size);
     50extern int nic_callback_create_impl(ddf_fun_t *dev_fun);
     51extern int nic_get_state_impl(ddf_fun_t *dev_fun, nic_device_state_t *state);
     52extern int nic_set_state_impl(ddf_fun_t *dev_fun, nic_device_state_t state);
     53extern int nic_get_stats_impl(ddf_fun_t *dev_fun, nic_device_stats_t *stats);
     54extern int nic_unicast_get_mode_impl(ddf_fun_t *dev_fun,
    5555    nic_unicast_mode_t *, size_t, nic_address_t *, size_t *);
    56 extern errno_t nic_unicast_set_mode_impl(ddf_fun_t *dev_fun,
     56extern int nic_unicast_set_mode_impl(ddf_fun_t *dev_fun,
    5757    nic_unicast_mode_t, const nic_address_t *, size_t);
    58 extern errno_t nic_multicast_get_mode_impl(ddf_fun_t *dev_fun,
     58extern int nic_multicast_get_mode_impl(ddf_fun_t *dev_fun,
    5959    nic_multicast_mode_t *, size_t, nic_address_t *, size_t *);
    60 extern errno_t nic_multicast_set_mode_impl(ddf_fun_t *dev_fun,
     60extern int nic_multicast_set_mode_impl(ddf_fun_t *dev_fun,
    6161    nic_multicast_mode_t, const nic_address_t *, size_t);
    62 extern errno_t nic_broadcast_get_mode_impl(ddf_fun_t *, nic_broadcast_mode_t *);
    63 extern errno_t nic_broadcast_set_mode_impl(ddf_fun_t *, nic_broadcast_mode_t);
    64 extern errno_t nic_blocked_sources_get_impl(ddf_fun_t *,
     62extern int nic_broadcast_get_mode_impl(ddf_fun_t *, nic_broadcast_mode_t *);
     63extern int nic_broadcast_set_mode_impl(ddf_fun_t *, nic_broadcast_mode_t);
     64extern int nic_blocked_sources_get_impl(ddf_fun_t *,
    6565    size_t, nic_address_t *, size_t *);
    66 extern errno_t nic_blocked_sources_set_impl(ddf_fun_t *, const nic_address_t *, size_t);
    67 extern errno_t nic_vlan_get_mask_impl(ddf_fun_t *, nic_vlan_mask_t *);
    68 extern errno_t nic_vlan_set_mask_impl(ddf_fun_t *, const nic_vlan_mask_t *);
    69 extern errno_t nic_wol_virtue_add_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,
     66extern int nic_blocked_sources_set_impl(ddf_fun_t *, const nic_address_t *, size_t);
     67extern int nic_vlan_get_mask_impl(ddf_fun_t *, nic_vlan_mask_t *);
     68extern int nic_vlan_set_mask_impl(ddf_fun_t *, const nic_vlan_mask_t *);
     69extern int nic_wol_virtue_add_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,
    7070    const void *data, size_t length, nic_wv_id_t *new_id);
    71 extern errno_t nic_wol_virtue_remove_impl(ddf_fun_t *dev_fun, nic_wv_id_t id);
    72 extern errno_t nic_wol_virtue_probe_impl(ddf_fun_t *dev_fun, nic_wv_id_t id,
     71extern int nic_wol_virtue_remove_impl(ddf_fun_t *dev_fun, nic_wv_id_t id);
     72extern int nic_wol_virtue_probe_impl(ddf_fun_t *dev_fun, nic_wv_id_t id,
    7373    nic_wv_type_t *type, size_t max_length, void *data, size_t *length);
    74 extern errno_t nic_wol_virtue_list_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,
     74extern int nic_wol_virtue_list_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,
    7575    size_t max_count, nic_wv_id_t *id_list, size_t *id_count);
    76 extern errno_t nic_wol_virtue_get_caps_impl(ddf_fun_t *, nic_wv_type_t, int *);
    77 extern errno_t nic_poll_get_mode_impl(ddf_fun_t *,
     76extern int nic_wol_virtue_get_caps_impl(ddf_fun_t *, nic_wv_type_t, int *);
     77extern int nic_poll_get_mode_impl(ddf_fun_t *,
    7878    nic_poll_mode_t *, struct timeval *);
    79 extern errno_t nic_poll_set_mode_impl(ddf_fun_t *,
     79extern int nic_poll_set_mode_impl(ddf_fun_t *,
    8080    nic_poll_mode_t, const struct timeval *);
    81 extern errno_t nic_poll_now_impl(ddf_fun_t *);
     81extern int nic_poll_now_impl(ddf_fun_t *);
    8282
    8383extern void nic_default_handler_impl(ddf_fun_t *dev_fun,
    84     ipc_callid_t callid, ipc_call_t *call);
    85 extern errno_t nic_open_impl(ddf_fun_t *fun);
     84        ipc_callid_t callid, ipc_call_t *call);
     85extern int nic_open_impl(ddf_fun_t *fun);
    8686extern void nic_close_impl(ddf_fun_t *fun);
    8787
Note: See TracChangeset for help on using the changeset viewer.