FreeBSD kernel IXGBE device code
ixgbe_bypass.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SEC_PER_DAY   (60 * 60 * 24)
 
#define SEC_PER_YEAR   (SEC_PER_DAY * 365)
 
#define SEC_PER_LYEAR   (SEC_PER_DAY * 366)
 
#define LEAP_YR(y)   ((y % 400 == 0) || ((y % 4 == 0) && (y % 100 != 0)))
 
#define SEC_THIS_YEAR(y)   (LEAP_YR(y) ? SEC_PER_LYEAR : SEC_PER_YEAR)
 

Functions

void ixgbe_bypass_init (struct ixgbe_softc *)
 

Macro Definition Documentation

◆ LEAP_YR

#define LEAP_YR (   y)    ((y % 400 == 0) || ((y % 4 == 0) && (y % 100 != 0)))

Definition at line 46 of file ixgbe_bypass.h.

◆ SEC_PER_DAY

#define SEC_PER_DAY   (60 * 60 * 24)

Definition at line 43 of file ixgbe_bypass.h.

◆ SEC_PER_LYEAR

#define SEC_PER_LYEAR   (SEC_PER_DAY * 366)

Definition at line 45 of file ixgbe_bypass.h.

◆ SEC_PER_YEAR

#define SEC_PER_YEAR   (SEC_PER_DAY * 365)

Definition at line 44 of file ixgbe_bypass.h.

◆ SEC_THIS_YEAR

#define SEC_THIS_YEAR (   y)    (LEAP_YR(y) ? SEC_PER_LYEAR : SEC_PER_YEAR)

Definition at line 47 of file ixgbe_bypass.h.

Function Documentation

◆ ixgbe_bypass_init()