Changeset b72efe8 in mainline for uspace/srv/hw/netif/ne2000/dp8390.c


Ignore:
Timestamp:
2011-06-19T14:38:59Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
74464e8
Parents:
1d1bb0f
Message:

Separate list_t typedef from link_t (user-space part).

  • list_t represents lists
  • Use list_first(), list_last(), list_empty() where appropriate
  • Use list_foreach() where possible
  • assert_link_not_used()
  • usb_hid_report_path_free() shall not unlink the path, caller must do it
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/netif/ne2000/dp8390.c

    r1d1bb0f rb72efe8  
    483483}
    484484
    485 static link_t *ne2k_receive(ne2k_t *ne2k)
     485static list_t *ne2k_receive(ne2k_t *ne2k)
    486486{
    487487        /*
     
    490490         * frames from the network, but they will be lost.
    491491         */
    492         link_t *frames = (link_t *) malloc(sizeof(link_t));
     492        list_t *frames = (list_t *) malloc(sizeof(list_t));
    493493        if (frames != NULL)
    494494                list_initialize(frames);
     
    567567}
    568568
    569 link_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr)
     569list_t *ne2k_interrupt(ne2k_t *ne2k, uint8_t isr, uint8_t tsr)
    570570{
    571571        /* List of received frames */
    572         link_t *frames = NULL;
     572        list_t *frames = NULL;
    573573       
    574574        if (isr & (ISR_PTX | ISR_TXE)) {
Note: See TracChangeset for help on using the changeset viewer.