Changeset 1433ecda in mainline for uspace/drv/nic/rtl8139


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/drv/nic/rtl8139
Files:
2 edited

Legend:

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

    r47b2d7e3 r1433ecda  
    2929#include "defs.h"
    3030
    31 const char* model_names[RTL8139_VER_COUNT] = {
     31const char *model_names[RTL8139_VER_COUNT] = {
    3232        "RTL8139",
    3333        "RTL8139A",
     
    4646
    4747const struct rtl8139_hwver_map rtl8139_versions[RTL8139_VER_COUNT + 1] = {
    48         { HWVER(1,1,0,0,0,0,0), RTL8139 },
    49         { HWVER(1,1,1,0,0,0,0), RTL8139A },
    50         { HWVER(1,1,1,0,0,1,0), RTL8139A_G },
    51         { HWVER(1,1,1,1,0,0,0), RTL8139B },
    52         { HWVER(1,1,1,1,1,0,0), RTL8130 },
    53         { HWVER(1,1,1,0,1,0,0), RTL8139C },
    54         { HWVER(1,1,1,1,0,1,0), RTL8100 },
    55         { HWVER(1,1,1,0,1,0,1), RTL8139D },
    56         { HWVER(1,1,1,0,1,1,0), RTL8139Cp },
    57         { HWVER(1,1,1,0,1,1,1), RTL8101 },
     48        { HWVER(1, 1, 0, 0, 0, 0, 0), RTL8139 },
     49        { HWVER(1, 1, 1, 0, 0, 0, 0), RTL8139A },
     50        { HWVER(1, 1, 1, 0, 0, 1, 0), RTL8139A_G },
     51        { HWVER(1, 1, 1, 1, 0, 0, 0), RTL8139B },
     52        { HWVER(1, 1, 1, 1, 1, 0, 0), RTL8130 },
     53        { HWVER(1, 1, 1, 0, 1, 0, 0), RTL8139C },
     54        { HWVER(1, 1, 1, 1, 0, 1, 0), RTL8100 },
     55        { HWVER(1, 1, 1, 0, 1, 0, 1), RTL8139D },
     56        { HWVER(1, 1, 1, 0, 1, 1, 0), RTL8139Cp },
     57        { HWVER(1, 1, 1, 0, 1, 1, 1), RTL8101 },
    5858        /* End value */
    59         { 0, RTL8139_VER_COUNT}
     59        { 0, RTL8139_VER_COUNT }
    6060};
    6161
  • uspace/drv/nic/rtl8139/general.c

    r47b2d7e3 r1433ecda  
    5151 * @return NULL if the error occures, dest if succeed
    5252 */
    53 void* rtl8139_memcpy_wrapped(void *dest, const void *src, size_t src_offset,
     53void *rtl8139_memcpy_wrapped(void *dest, const void *src, size_t src_offset,
    5454    size_t src_size, size_t data_size)
    5555{
     
    8383 *  @return EOK if succeed, error code otherwise
    8484 */
    85 errno_t rtl8139_timer_act_init(rtl8139_timer_act_t * ta, uint32_t timer_freq,
     85errno_t rtl8139_timer_act_init(rtl8139_timer_act_t *ta, uint32_t timer_freq,
    8686    const struct timeval *time)
    8787{
     
    124124 *  @return Nonzero if whole period expired, zero if part of period expired
    125125 */
    126 int rtl8139_timer_act_step(rtl8139_timer_act_t * ta, uint32_t *new_reg)
     126int rtl8139_timer_act_step(rtl8139_timer_act_t *ta, uint32_t *new_reg)
    127127{
    128128        uint32_t next_val = 0;
Note: See TracChangeset for help on using the changeset viewer.