summaryrefslogtreecommitdiffstats
path: root/sys/dev/hme/if_hmereg.h
diff options
context:
space:
mode:
authoryongari <yongari@FreeBSD.org>2005-10-25 03:56:21 +0000
committeryongari <yongari@FreeBSD.org>2005-10-25 03:56:21 +0000
commita337a58fa75e7757df7c86182611f2cbb3466833 (patch)
treeaa9696ac9b681fd05b2b48261f90cf361ef098a3 /sys/dev/hme/if_hmereg.h
parentbc465e4070b38b1e2ea496664d1e74e49c182fd7 (diff)
downloadFreeBSD-src-a337a58fa75e7757df7c86182611f2cbb3466833.zip
FreeBSD-src-a337a58fa75e7757df7c86182611f2cbb3466833.tar.gz
- Convert hme(4) to use TX side bus_dmamap_load_mbuf_sg(9).
- Move hardware counter reading/zeroing to hme_tick(). This saves 8 register access per interrupt. [1] - Use imax macro for getting max. argument between two integers. - Invoke bus_dmamap_sync(9) first before freeing mbuf. - Check driver queue first to reduce locking operation in hme_start_locked() and interrupt handler. - Simplyfy watchdog timer setup in interrupt handler. - Don't log normal errors such as RX overrun. If we have DMA stuck condition, reinitialize the driver and log it. Reviewed by: marius Obtained from: OpenBSD [1]
Diffstat (limited to 'sys/dev/hme/if_hmereg.h')
-rw-r--r--sys/dev/hme/if_hmereg.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/hme/if_hmereg.h b/sys/dev/hme/if_hmereg.h
index c3d205b..a9e5497 100644
--- a/sys/dev/hme/if_hmereg.h
+++ b/sys/dev/hme/if_hmereg.h
@@ -117,6 +117,12 @@
HME_SEB_STAT_RXLATERR | HME_SEB_STAT_RXERR | HME_SEB_STAT_NORXD |\
HME_SEB_STAT_TFIFO_UND| HME_SEB_STAT_STSTERR | HME_SEB_STAT_RFIFOVF)
+#define HME_SEB_STAT_FATAL_ERRORS \
+ (HME_SEB_STAT_SLVPERR | HME_SEB_STAT_SLVERR | HME_SEB_STAT_TXTERR |\
+ HME_SEB_STAT_TXPERR | HME_SEB_STAT_TXLERR | HME_SEB_STAT_TXEACK |\
+ HME_SEB_STAT_RXTERR | HME_SEB_STAT_RXPERR | HME_SEB_STAT_RXLATERR |\
+ HME_SEB_STAT_RXERR)
+
/*
* HME Transmitter register offsets
*/
OpenPOWER on IntegriCloud