Changeset 1bc35b5 in mainline for uspace/lib/nic/include


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

Remove most use of packet_t from NIC drivers.

Location:
uspace/lib/nic/include
Files:
2 edited

Legend:

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

    r3ea725e r1bc35b5  
    6161
    6262/**
    63  * Simple structure for sending the allocated frames (packets) in a list.
     63 * Simple structure for sending lists of frames.
    6464 */
    6565typedef struct {
    6666        link_t link;
    67         packet_t *packet;
     67        void *data;
     68        size_t size;
    6869} nic_frame_t;
    6970
     
    233234extern int nic_report_poll_mode(nic_t *, nic_poll_mode_t, struct timeval *);
    234235extern void nic_query_address(nic_t *, nic_address_t *);
    235 extern void nic_received_packet(nic_t *, packet_t *);
    236236extern void nic_received_noneth_packet(nic_t *, packet_t *);
    237237extern void nic_received_frame(nic_t *, nic_frame_t *);
  • uspace/lib/nic/include/nic_rx_control.h

    r3ea725e r1bc35b5  
    120120        const nic_address_t *prev_addr, const nic_address_t *curr_addr);
    121121extern int nic_rxc_check(const nic_rxc_t *rxc,
    122         const packet_t *packet, nic_frame_type_t *frame_type);
     122        const void *data, size_t size, nic_frame_type_t *frame_type);
    123123extern void nic_rxc_hw_filtering(nic_rxc_t *rxc,
    124124        int unicast_exact, int multicast_exact, int vlan_exact);
Note: See TracChangeset for help on using the changeset viewer.