HelenOS sources
#ifndef NIC_IMPL_H__
#define NIC_IMPL_H__
#include <assert.h>
#include <nic/nic.h>
#include <ddf/driver.h>
extern errno_t nic_get_address_impl(ddf_fun_t *dev_fun, nic_address_t *address);
extern errno_t nic_send_frame_impl(ddf_fun_t *dev_fun, void *data, size_t size);
extern errno_t nic_callback_create_impl(ddf_fun_t *dev_fun);
extern errno_t nic_get_state_impl(ddf_fun_t *dev_fun, nic_device_state_t *state);
extern errno_t nic_set_state_impl(ddf_fun_t *dev_fun, nic_device_state_t state);
extern errno_t nic_get_stats_impl(ddf_fun_t *dev_fun, nic_device_stats_t *stats);
extern errno_t nic_unicast_get_mode_impl(ddf_fun_t *dev_fun,
nic_unicast_mode_t *, size_t, nic_address_t *, size_t *);
extern errno_t nic_unicast_set_mode_impl(ddf_fun_t *dev_fun,
nic_unicast_mode_t, const nic_address_t *, size_t);
extern errno_t nic_multicast_get_mode_impl(ddf_fun_t *dev_fun,
nic_multicast_mode_t *, size_t, nic_address_t *, size_t *);
extern errno_t nic_multicast_set_mode_impl(ddf_fun_t *dev_fun,
nic_multicast_mode_t, const nic_address_t *, size_t);
extern errno_t nic_broadcast_get_mode_impl(ddf_fun_t *, nic_broadcast_mode_t *);
extern errno_t nic_broadcast_set_mode_impl(ddf_fun_t *, nic_broadcast_mode_t);
extern errno_t nic_blocked_sources_get_impl(ddf_fun_t *,
size_t, nic_address_t *, size_t *);
extern errno_t nic_blocked_sources_set_impl(ddf_fun_t *, const nic_address_t *, size_t);
extern errno_t nic_vlan_get_mask_impl(ddf_fun_t *, nic_vlan_mask_t *);
extern errno_t nic_vlan_set_mask_impl(ddf_fun_t *, const nic_vlan_mask_t *);
extern errno_t nic_wol_virtue_add_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,
const void *data, size_t length, nic_wv_id_t *new_id);
extern errno_t nic_wol_virtue_remove_impl(ddf_fun_t *dev_fun, nic_wv_id_t id);
extern errno_t nic_wol_virtue_probe_impl(ddf_fun_t *dev_fun, nic_wv_id_t id,
nic_wv_type_t *type, size_t max_length, void *data, size_t *length);
extern errno_t nic_wol_virtue_list_impl(ddf_fun_t *dev_fun, nic_wv_type_t type,
size_t max_count, nic_wv_id_t *id_list, size_t *id_count);
extern errno_t nic_wol_virtue_get_caps_impl(ddf_fun_t *, nic_wv_type_t, int *);
extern errno_t nic_poll_get_mode_impl(ddf_fun_t *,
nic_poll_mode_t *, struct timespec *);
extern errno_t nic_poll_set_mode_impl(ddf_fun_t *,
nic_poll_mode_t, const struct timespec *);
extern errno_t nic_poll_now_impl(ddf_fun_t *);
extern void nic_default_handler_impl(ddf_fun_t *dev_fun, ipc_call_t *call);
extern errno_t nic_open_impl(ddf_fun_t *fun);
extern void nic_close_impl(ddf_fun_t *fun);
extern void nic_device_added_impl(ddf_dev_t *dev);
#endif
HelenOS homepage, sources at GitHub