diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-25 08:01:27 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-10-25 14:30:01 +0200 |
commit | 0323c286e32934979043d14d69660db4ba4c3181 (patch) | |
tree | 0ac6fd0613d9ecbc4f53af6ad5ed866a59cd3709 /freebsd/sys/dev/ffec/if_ffecreg.h | |
parent | ffec: Increase buffer descriptor count to 512 (diff) | |
download | rtems-libbsd-0323c286e32934979043d14d69660db4ba4c3181.tar.bz2 |
ffec: Add interrupt coalescing support
Code is an adapted from the TSEC (if_tsec) network interface driver.
Update #3090.
Diffstat (limited to 'freebsd/sys/dev/ffec/if_ffecreg.h')
-rw-r--r-- | freebsd/sys/dev/ffec/if_ffecreg.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/freebsd/sys/dev/ffec/if_ffecreg.h b/freebsd/sys/dev/ffec/if_ffecreg.h index bb1d1979..481bc303 100644 --- a/freebsd/sys/dev/ffec/if_ffecreg.h +++ b/freebsd/sys/dev/ffec/if_ffecreg.h @@ -143,6 +143,17 @@ __FBSDID("$FreeBSD$"); #define FEC_OPD_PAUSE_DUR_SHIFT 0 #define FEC_OPD_PAUSE_DUR_MASK (0xffff << FEC_OPD_PAUSE_DUR_SHIFT) +#define FEC_TXIC0_REG 0x00f0 +#define FEC_TXIC1_REG 0x00f4 +#define FEC_TXIC2_REG 0x00f8 +#define FEC_RXIC0_REG 0x0100 +#define FEC_RXIC1_REG 0x0104 +#define FEC_RXIC2_REG 0x0108 +#define FEC_IC_ICEN (1 << 31) +#define FEC_IC_ICCS (1 << 30) +#define FEC_IC_ICFT(x) (((x) & 0xff) << 20) +#define FEC_IC_ICTT(x) ((x) & 0xffff) + #define FEC_IAUR_REG 0x0118 #define FEC_IALR_REG 0x011c |