Changeset 7943c43 in mainline for uspace/lib/nic/src/nic_driver.c
- Timestamp:
- 2012-01-16T22:45:38Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 32817cc, 3fe58d3c
- Parents:
- 9117ef9b (diff), 3ea725e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/nic/src/nic_driver.c
r9117ef9b r7943c43 114 114 if (!iface->set_state) 115 115 iface->set_state = nic_set_state_impl; 116 if (!iface->send_ message)117 iface->send_ message = nic_send_message_impl;116 if (!iface->send_frame) 117 iface->send_frame = nic_send_frame_impl; 118 118 if (!iface->connect_to_nil) 119 119 iface->connect_to_nil = nic_connect_to_nil_impl; … … 168 168 * 169 169 * @param nic_data 170 * @param wpfunc Function handling the write_packetrequest171 */ 172 void nic_set_ write_packet_handler(nic_t *nic_data, write_packet_handler wpfunc)173 { 174 nic_data-> write_packet = wpfunc;170 * @param sffunc Function handling the send_frame request 171 */ 172 void nic_set_send_frame_handler(nic_t *nic_data, send_frame_handler sffunc) 173 { 174 nic_data->send_frame = sffunc; 175 175 } 176 176 … … 765 765 nic_data->poll_mode = NIC_POLL_IMMEDIATE; 766 766 nic_data->default_poll_mode = NIC_POLL_IMMEDIATE; 767 nic_data-> write_packet= NULL;767 nic_data->send_frame = NULL; 768 768 nic_data->on_activating = NULL; 769 769 nic_data->on_going_down = NULL; … … 1345 1345 int nic_dma_unlock_packet(packet_t *packet, size_t size) 1346 1346 { 1347 return dmamem_unmap(packet, size , 0);1347 return dmamem_unmap(packet, size); 1348 1348 } 1349 1349
Note:
See TracChangeset
for help on using the changeset viewer.