freebsd-dev/sys/pci
Pyun YongHyeon 0534aae0ce Add simple MAC statistics counter reading support. Unfortunately
useful counters like rl_missed_pkts is 16 bits quantity which is
too small to hold meaningful information happened in a second. This
means driver should frequently read these counters in order not to
lose accuracy and that approach is too inefficient in driver's
view. Moreover it seems there is no way to trigger an interrupt to
detect counter near-full or wraparound event as well as lacking
clearing the MAC counters. Another limitation of reading the
counters from RealTek controllers is lack of interrupt firing at
the end of DMA cycle of MAC counter read request such that driver
have to poll the end of the DMA which is a time consuming process
as well as inefficient. The more severe issue of the MAC counter
read request is it takes too long to complete the DMA. All these
limitation made maintaining MAC counters in driver impractical. For
now, just provide simple sysctl interface to trigger reading the
MAC counters. These counters could be used to track down driver
issues. Users can read MAC counters maintained in controller with
the following command.
#sysctl dev.re.0.stats=1

While I'm here add check for validity of dma map and allocated
memory before unloading/freeing them.

Tested by:	rmacklem
2010-11-05 19:28:00 +00:00
..
alpm.c Various updates to most of the smbus(4) drivers: 2007-01-11 19:56:24 +00:00
amdpm.c - Use bus_foo() rather than bus_space_foo() and remove bus space tag/handle 2008-06-06 18:29:56 +00:00
amdsmb.c - Use bus_foo() rather than bus_space_foo() and remove bus space tag/handle 2008-06-06 18:29:56 +00:00
if_rl.c Convert the PHY drivers to honor the mii_flags passed down and convert 2010-10-15 14:52:11 +00:00
if_rlreg.h Add simple MAC statistics counter reading support. Unfortunately 2010-11-05 19:28:00 +00:00
intpm.c intpm/sb700: force polling mode if configured interrupt is SMI 2009-09-19 08:56:28 +00:00
intpmreg.h intpm: add support for smbus controller found in AMD SB700 2009-09-12 18:24:31 +00:00
locate.pl
ncr.c Remove extraneous semicolons, no functional changes. 2010-01-07 21:01:37 +00:00
ncrreg.h
nfsmb.c Add support for four more nfsmb controllers, shipping on at least the 2010-01-24 14:57:54 +00:00
viapm.c The callback takes a void *, not a caddr_t * (sic). 2009-03-03 18:54:57 +00:00