Changeset ea788701 in mainline for uspace/lib/nic/include/nic.h


Ignore:
Timestamp:
2012-01-19T18:14:48Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
321052f7
Parents:
d8da56b
Message:

Remove use of packet_t in NIC framework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/include/nic.h

    rd8da56b rea788701  
    4242#include <ddf/driver.h>
    4343#include <device/hw_res_parsed.h>
    44 #include <net/packet.h>
    4544#include <ops/nic.h>
    4645
     
    7271
    7372/**
    74  * Handler for writing packet data to the NIC device.
    75  * The function is responsible for releasing the packet.
     73 * Handler for writing frame data to the NIC device.
     74 * The function is responsible for releasing the frame.
    7675 * It does not return anything, if some error is detected the function just
    7776 * silently fails (logging on debug level is suggested).
     
    159158 * @return ENOTSUP      If this filter cannot work on this NIC (e.g. the NIC
    160159 *                                      cannot run in promiscuous node or the limit of WOL
    161  *                                      packets' specifications was reached).
     160 *                                      frames' specifications was reached).
    162161 * @return ELIMIT       If this filter must implemented in HW but currently the
    163162 *                                      limit of these HW filters was reached.
     
    234233extern int nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *);
    235234extern void nic_query_address(nic_t *, nic_address_t *);
    236 extern void nic_received_noneth_packet(nic_t *, packet_t *);
     235extern void nic_received_noneth_frame(nic_t *, void *, size_t);
    237236extern void nic_received_frame(nic_t *, nic_frame_t *);
    238237extern void nic_received_frame_list(nic_t *, nic_frame_list_t *);
     
    248247extern void nic_report_collisions(nic_t *, unsigned);
    249248
    250 /* Packet / frame / frame list allocation and deallocation */
    251 extern packet_t *nic_alloc_packet(nic_t *, size_t);
    252 extern void nic_release_packet(nic_t *, packet_t *);
     249/* Frame / frame list allocation and deallocation */
    253250extern nic_frame_t *nic_alloc_frame(nic_t *, size_t);
    254251extern nic_frame_list_t *nic_alloc_frame_list(void);
     
    275272extern void nic_sw_period_stop(nic_t *);
    276273
    277 /* Packet DMA lock */
    278 extern int nic_dma_lock_packet(packet_t *, size_t, void **);
    279 extern int nic_dma_unlock_packet(packet_t *, size_t);
    280 
    281274#endif // __NIC_H__
    282275
Note: See TracChangeset for help on using the changeset viewer.