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