Changeset 09ab0a9a in mainline for uspace/drv/nic/rtl8139/driver.c


Ignore:
Timestamp:
2018-09-13T12:05:53Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cc74cb5
Parents:
b2aaaa0
git-author:
Jiri Svoboda <jiri@…> (2018-09-13 07:09:46)
git-committer:
Jiri Svoboda <jiri@…> (2018-09-13 12:05:53)
Message:

Fix vertical spacing with new Ccheck revision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/rtl8139/driver.c

    rb2aaaa0 r09ab0a9a  
    112112#define RxBUF_TOT_LENGTH RTL8139_RXBUF_LENGTH(RXBUF_SIZE_FLAGS)
    113113
    114 
    115114/** Default interrupt mask */
    116115#define RTL_DEFAULT_INTERRUPTS UINT16_C(0xFFFF)
     
    123122#define REG_GET_VAL(value, reg_part)\
    124123                (((value) >> reg_part##_SHIFT) & reg_part##_MASK)
    125 
    126124
    127125/** Set interrupts on controller
     
    430428}
    431429
    432 
    433430/** Reset the controller
    434431 *
     
    620617        return frames;
    621618}
    622 
    623619
    624620irq_pio_range_t rtl8139_irq_pio_ranges[] = {
     
    746742}
    747743
    748 
    749744/** Deal with poll interrupt
    750745 *
     
    767762        return receive;
    768763}
    769 
    770764
    771765/** Poll device according to isr status
     
    963957}
    964958
    965 
    966959static errno_t rtl8139_unicast_set(nic_t *nic_data, nic_unicast_mode_t mode,
    967960    const nic_address_t *, size_t);
     
    969962    const nic_address_t *addr, size_t addr_count);
    970963static errno_t rtl8139_broadcast_set(nic_t *nic_data, nic_broadcast_mode_t mode);
    971 
    972964
    973965/** Create driver data structure
     
    1004996        nic_set_poll_handlers(nic_data, rtl8139_poll_mode_change, rtl8139_poll);
    1005997
    1006 
    1007998        fibril_mutex_initialize(&rtl8139->rx_lock);
    1008999        fibril_mutex_initialize(&rtl8139->tx_lock);
     
    10971088        return ret;
    10981089}
    1099 
    11001090
    11011091/** Allocate buffers using DMA framework
     
    19781968}
    19791969
    1980 
    19811970/** Turn Wakeup On Lan method on
    19821971 *
     
    20572046}
    20582047
    2059 
    20602048/** Set polling mode
    20612049 *
     
    21432131}
    21442132
    2145 
    21462133/** Main function of RTL8139 driver
    21472134 *
Note: See TracChangeset for help on using the changeset viewer.