Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified uspace/drv/nic/e1k/e1k.c

    r205f1add r5f97ef44  
    327327}
    328328
    329 static uint16_t e1000_calculate_itr_interval_from_usecs(usec_t useconds)
     329static uint16_t e1000_calculate_itr_interval_from_usecs(suseconds_t useconds)
    330330{
    331331        return useconds * 4;
     
    12991299}
    13001300
    1301 /** Calculates ITR register interrupt from timespec structure
     1301/** Calculates ITR register interrupt from timeval structure
    13021302 *
    13031303 * @param period Period
    13041304 *
    13051305 */
    1306 static uint16_t e1000_calculate_itr_interval(const struct timespec *period)
     1306static uint16_t e1000_calculate_itr_interval(const struct timeval *period)
    13071307{
    13081308        // TODO: use also tv_sec
    1309         return e1000_calculate_itr_interval_from_usecs(NSEC2USEC(period->tv_nsec));
     1309        return e1000_calculate_itr_interval_from_usecs(period->tv_usec);
    13101310}
    13111311
     
    13211321 */
    13221322static errno_t e1000_poll_mode_change(nic_t *nic, nic_poll_mode_t mode,
    1323     const struct timespec *period)
     1323    const struct timeval *period)
    13241324{
    13251325        assert(nic);
     
    21822182                goto err_rx_structure;
    21832183
    2184         struct timespec period;
     2184        struct timeval period;
    21852185        period.tv_sec = 0;
    2186         period.tv_nsec = USEC2NSEC(E1000_DEFAULT_INTERRUPT_INTERVAL_USEC);
     2186        period.tv_usec = E1000_DEFAULT_INTERRUPT_INTERVAL_USEC;
    21872187        rc = nic_report_poll_mode(nic, NIC_POLL_PERIODIC, &period);
    21882188        if (rc != EOK)
Note: See TracChangeset for help on using the changeset viewer.