Changeset b7fd2a0 in mainline for uspace/lib/nic/include/nic_impl.h
- 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/lib/nic/include/nic_impl.h
r36f0738 rb7fd2a0 46 46 * inject some adaptation layer between the DDF call and NICF implementation */ 47 47 48 extern int nic_get_address_impl(ddf_fun_t *dev_fun, nic_address_t *address);49 extern int nic_send_frame_impl(ddf_fun_t *dev_fun, void *data, size_t size);50 extern int nic_callback_create_impl(ddf_fun_t *dev_fun);51 extern int nic_get_state_impl(ddf_fun_t *dev_fun, nic_device_state_t *state);52 extern int nic_set_state_impl(ddf_fun_t *dev_fun, nic_device_state_t state);53 extern int nic_get_stats_impl(ddf_fun_t *dev_fun, nic_device_stats_t *stats);54 extern int nic_unicast_get_mode_impl(ddf_fun_t *dev_fun,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, 55 55 nic_unicast_mode_t *, size_t, nic_address_t *, size_t *); 56 extern int nic_unicast_set_mode_impl(ddf_fun_t *dev_fun,56 extern errno_t nic_unicast_set_mode_impl(ddf_fun_t *dev_fun, 57 57 nic_unicast_mode_t, const nic_address_t *, size_t); 58 extern int nic_multicast_get_mode_impl(ddf_fun_t *dev_fun,58 extern errno_t nic_multicast_get_mode_impl(ddf_fun_t *dev_fun, 59 59 nic_multicast_mode_t *, size_t, nic_address_t *, size_t *); 60 extern int nic_multicast_set_mode_impl(ddf_fun_t *dev_fun,60 extern errno_t nic_multicast_set_mode_impl(ddf_fun_t *dev_fun, 61 61 nic_multicast_mode_t, const nic_address_t *, size_t); 62 extern int nic_broadcast_get_mode_impl(ddf_fun_t *, nic_broadcast_mode_t *);63 extern int nic_broadcast_set_mode_impl(ddf_fun_t *, nic_broadcast_mode_t);64 extern int nic_blocked_sources_get_impl(ddf_fun_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 *, 65 65 size_t, nic_address_t *, size_t *); 66 extern int nic_blocked_sources_set_impl(ddf_fun_t *, const nic_address_t *, size_t);67 extern int nic_vlan_get_mask_impl(ddf_fun_t *, nic_vlan_mask_t *);68 extern int nic_vlan_set_mask_impl(ddf_fun_t *, const nic_vlan_mask_t *);69 extern int nic_wol_virtue_add_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,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, 70 70 const void *data, size_t length, nic_wv_id_t *new_id); 71 extern int nic_wol_virtue_remove_impl(ddf_fun_t *dev_fun, nic_wv_id_t id);72 extern int nic_wol_virtue_probe_impl(ddf_fun_t *dev_fun, nic_wv_id_t 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, 73 73 nic_wv_type_t *type, size_t max_length, void *data, size_t *length); 74 extern int nic_wol_virtue_list_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,74 extern errno_t nic_wol_virtue_list_impl(ddf_fun_t *dev_fun, nic_wv_type_t type, 75 75 size_t max_count, nic_wv_id_t *id_list, size_t *id_count); 76 extern int nic_wol_virtue_get_caps_impl(ddf_fun_t *, nic_wv_type_t, int *);77 extern int nic_poll_get_mode_impl(ddf_fun_t *,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 *, 78 78 nic_poll_mode_t *, struct timeval *); 79 extern int nic_poll_set_mode_impl(ddf_fun_t *,79 extern errno_t nic_poll_set_mode_impl(ddf_fun_t *, 80 80 nic_poll_mode_t, const struct timeval *); 81 extern int nic_poll_now_impl(ddf_fun_t *);81 extern errno_t nic_poll_now_impl(ddf_fun_t *); 82 82 83 83 extern void nic_default_handler_impl(ddf_fun_t *dev_fun, 84 84 ipc_callid_t callid, ipc_call_t *call); 85 extern int nic_open_impl(ddf_fun_t *fun);85 extern errno_t nic_open_impl(ddf_fun_t *fun); 86 86 extern void nic_close_impl(ddf_fun_t *fun); 87 87
Note:
See TracChangeset
for help on using the changeset viewer.