Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/nic/rtl8139/general.h

    r5cd3d67 rbf84871  
    2929/** @file
    3030 *
    31  * General functions and structures used in rtl8139 driver
     31 *  General functions and structures used in rtl8139 driver
    3232 */
    3333
     
    3737#include <unistd.h>
    3838
    39 /** Number of microseconds in second */
    40 #define RTL8139_USEC_IN_SEC  1000000
     39extern void* rtl8139_memcpy_wrapped(void *dest, const void *src_buf,
     40    size_t src_offset, size_t src_size, size_t data_size);
     41
    4142
    4243/** Structure for HW timer control */
    43 typedef struct {
     44typedef struct rtl8139_timer_act {
    4445        /** Register value set in the last timer period */
    4546        uint32_t last_val;
    46        
    4747        /** Register value set in the common timer period */
    4848        uint32_t full_val;
    49        
     49
    5050        /** Amount of full register periods in timer period */
    5151        size_t full_skips;
    52        
    5352        /** Remaining full register periods to the next period end */
    5453        size_t full_skips_remains;
    55        
    5654        /** Mark if there is a last run */
    5755        int last_run;
    5856} rtl8139_timer_act_t;
    5957
    60 extern void *rtl8139_memcpy_wrapped(void *, const void *, size_t, size_t,
    61     size_t);
    62 extern int rtl8139_timer_act_init(rtl8139_timer_act_t *, uint32_t,
    63     const struct timeval *);
    64 extern int rtl8139_timer_act_step(rtl8139_timer_act_t *, uint32_t *);
     58/** Count of microseconds in second */
     59#define RTL8139_USEC_IN_SEC 1000000
     60
     61extern int rtl8139_timer_act_init(rtl8139_timer_act_t *ta, uint32_t timer_freq,
     62    const struct timeval *time);
     63extern int rtl8139_timer_act_step(rtl8139_timer_act_t *ta, uint32_t *new_reg);
     64
    6565
    6666#endif
Note: See TracChangeset for help on using the changeset viewer.