Changes in uspace/lib/nic/include/nic.h [77a69ea:062d900] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/include/nic.h
r77a69ea r062d900 40 40 41 41 #include <adt/list.h> 42 #include <adt/hash_table.h> 42 43 #include <ddf/driver.h> 43 44 #include <device/hw_res_parsed.h> … … 53 54 */ 54 55 typedef struct nic_wol_virtue { 55 link_t item;56 ht_link_t item; 56 57 nic_wv_id_t id; 57 58 nic_wv_type_t type; … … 83 84 */ 84 85 typedef void (*send_frame_handler)(nic_t *, void *, size_t); 86 85 87 /** 86 88 * The handler for transitions between driver states. … … 94 96 */ 95 97 typedef int (*state_change_handler)(nic_t *); 98 96 99 /** 97 100 * Handler for unicast filtering mode change. … … 106 109 */ 107 110 typedef int (*unicast_mode_change_handler)(nic_t *, 108 nic_unicast_mode_t, const nic_address_t *, size_t); 111 nic_unicast_mode_t, const nic_address_t *, size_t); 112 109 113 /** 110 114 * Handler for multicast filtering mode change. … … 119 123 */ 120 124 typedef int (*multicast_mode_change_handler)(nic_t *, 121 nic_multicast_mode_t, const nic_address_t *, size_t); 125 nic_multicast_mode_t, const nic_address_t *, size_t); 126 122 127 /** 123 128 * Handler for broadcast filtering mode change. … … 130 135 */ 131 136 typedef int (*broadcast_mode_change_handler)(nic_t *, nic_broadcast_mode_t); 137 132 138 /** 133 139 * Handler for blocked sources list change. … … 138 144 */ 139 145 typedef void (*blocked_sources_change_handler)(nic_t *, 140 const nic_address_t *, size_t); 146 const nic_address_t *, size_t); 147 141 148 /** 142 149 * Handler for VLAN filtering mask change. … … 145 152 */ 146 153 typedef void (*vlan_mask_change_handler)(nic_t *, const nic_vlan_mask_t *); 154 147 155 /** 148 156 * Handler called when a WOL virtue is added. … … 165 173 */ 166 174 typedef int (*wol_virtue_add_handler)(nic_t *, const nic_wol_virtue_t *); 175 167 176 /** 168 177 * Handler called when a WOL virtue is removed. … … 174 183 */ 175 184 typedef void (*wol_virtue_remove_handler)(nic_t *, const nic_wol_virtue_t *); 185 176 186 /** 177 187 * Handler for poll mode change. … … 186 196 */ 187 197 typedef int (*poll_mode_change_handler)(nic_t *, 188 nic_poll_mode_t, const struct timeval *); 198 nic_poll_mode_t, const struct timeval *); 199 189 200 /** 190 201 * Event handler called when the NIC should poll its buffers for a new frame … … 202 213 extern int nic_driver_init(const char *); 203 214 extern void nic_driver_implement(driver_ops_t *, ddf_dev_ops_t *, 204 215 nic_iface_t *); 205 216 206 217 /* Functions called in add_device */ … … 210 221 extern void nic_set_send_frame_handler(nic_t *, send_frame_handler); 211 222 extern void nic_set_state_change_handlers(nic_t *, 212 223 state_change_handler, state_change_handler, state_change_handler); 213 224 extern void nic_set_filtering_change_handlers(nic_t *, 214 215 216 225 unicast_mode_change_handler, multicast_mode_change_handler, 226 broadcast_mode_change_handler, blocked_sources_change_handler, 227 vlan_mask_change_handler); 217 228 extern void nic_set_wol_virtue_change_handlers(nic_t *, 218 229 wol_virtue_add_handler, wol_virtue_remove_handler); 219 230 extern void nic_set_poll_handlers(nic_t *, 220 231 poll_mode_change_handler, poll_request_handler); 221 232 222 233 /* General driver functions */ … … 232 243 extern int nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *); 233 244 extern void nic_query_address(nic_t *, nic_address_t *); 234 extern void nic_received_noneth_frame(nic_t *, void *, size_t);235 245 extern void nic_received_frame(nic_t *, nic_frame_t *); 236 246 extern void nic_received_frame_list(nic_t *, nic_frame_list_t *); … … 255 265 extern void nic_report_hw_filtering(nic_t *, int, int, int); 256 266 extern void nic_query_unicast(const nic_t *, 257 267 nic_unicast_mode_t *, size_t, nic_address_t *, size_t *); 258 268 extern void nic_query_multicast(const nic_t *, 259 269 nic_multicast_mode_t *, size_t, nic_address_t *, size_t *); 260 270 extern void nic_query_broadcast(const nic_t *, nic_broadcast_mode_t *); 261 271 extern void nic_query_blocked_sources(const nic_t *, 262 272 size_t, nic_address_t *, size_t *); 263 273 extern int nic_query_vlan_mask(const nic_t *, nic_vlan_mask_t *); 264 274 extern int nic_query_wol_max_caps(const nic_t *, nic_wv_type_t);
Note:
See TracChangeset
for help on using the changeset viewer.