Changes in uspace/lib/nic/include/nic.h [cde999a:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/include/nic.h
rcde999a rb7fd2a0 95 95 * @return error code on error. 96 96 */ 97 typedef int (*state_change_handler)(nic_t *);97 typedef errno_t (*state_change_handler)(nic_t *); 98 98 99 99 /** … … 108 108 * @return ENOTSUP If this mode is not supported 109 109 */ 110 typedef int (*unicast_mode_change_handler)(nic_t *,110 typedef errno_t (*unicast_mode_change_handler)(nic_t *, 111 111 nic_unicast_mode_t, const nic_address_t *, size_t); 112 112 … … 122 122 * @return ENOTSUP If this mode is not supported 123 123 */ 124 typedef int (*multicast_mode_change_handler)(nic_t *,124 typedef errno_t (*multicast_mode_change_handler)(nic_t *, 125 125 nic_multicast_mode_t, const nic_address_t *, size_t); 126 126 … … 134 134 * @return ENOTSUP If this mode is not supported 135 135 */ 136 typedef int (*broadcast_mode_change_handler)(nic_t *, nic_broadcast_mode_t);136 typedef errno_t (*broadcast_mode_change_handler)(nic_t *, nic_broadcast_mode_t); 137 137 138 138 /** … … 172 172 * limit of these HW filters was reached. 173 173 */ 174 typedef int (*wol_virtue_add_handler)(nic_t *, const nic_wol_virtue_t *);174 typedef errno_t (*wol_virtue_add_handler)(nic_t *, const nic_wol_virtue_t *); 175 175 176 176 /** … … 195 195 * @return EINVAL If this mode cannot be set up under no circumstances 196 196 */ 197 typedef int (*poll_mode_change_handler)(nic_t *,197 typedef errno_t (*poll_mode_change_handler)(nic_t *, 198 198 nic_poll_mode_t, const struct timeval *); 199 199 … … 211 211 212 212 /* Functions called in the main function */ 213 extern int nic_driver_init(const char *);213 extern errno_t nic_driver_init(const char *); 214 214 extern void nic_driver_implement(driver_ops_t *, ddf_dev_ops_t *, 215 215 nic_iface_t *); 216 216 217 217 /* Functions called in add_device */ 218 extern int nic_get_resources(nic_t *, hw_res_list_parsed_t *);218 extern errno_t nic_get_resources(nic_t *, hw_res_list_parsed_t *); 219 219 extern void nic_set_specific(nic_t *, void *); 220 220 extern void nic_set_send_frame_handler(nic_t *, send_frame_handler); … … 239 239 extern nic_device_state_t nic_query_state(nic_t *); 240 240 extern void nic_set_tx_busy(nic_t *, int); 241 extern int nic_report_address(nic_t *, const nic_address_t *);242 extern int nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *);241 extern errno_t nic_report_address(nic_t *, const nic_address_t *); 242 extern errno_t nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *); 243 243 extern void nic_query_address(nic_t *, nic_address_t *); 244 244 extern void nic_received_frame(nic_t *, nic_frame_t *); … … 268 268 extern void nic_query_blocked_sources(const nic_t *, 269 269 size_t, nic_address_t *, size_t *); 270 extern int nic_query_vlan_mask(const nic_t *, nic_vlan_mask_t *);270 extern errno_t nic_query_vlan_mask(const nic_t *, nic_vlan_mask_t *); 271 271 extern int nic_query_wol_max_caps(const nic_t *, nic_wv_type_t); 272 272 extern void nic_set_wol_max_caps(nic_t *, nic_wv_type_t, int);
Note:
See TracChangeset
for help on using the changeset viewer.