freebsd-dev/sys/dev
gibbs 960f010083 Improve sync recovery algorithm:
o Remove PSM_SYNCERR_THRESHOLD1.  This value specified how many sync
   errors were required before the mouse is re-initialised.
   Re-initialisation is now done after (packetsize * 2) sync errors as
   things aren't likely to improve after that.

 o Reset lastinputerror when re-initialisation occurs.  We don't want
   to continue to drop data after re-initialisation.

 o Count the number of failed packets independently of the syncerrors
   statistic.  syncerrors is useful for recovering sync within a single
   packet.  pkterrors allows us to detect when the mouse changes its
   packet mode due to some external event (e.g. KVM switch).

 o Reinitialize the mouse if we see more than psmpkterrthresh errors
   during the validation period.  The validation period begins as soon
   as a sync error is detected and continues until psmerrsecs/msecs
   time has elapsed.  The defaults for these two values force a reset
   if we see two packet errors in a 2 second period.  This allows rapid
   detection of packet framing errors caused by the mouse changing packet
   modes.

 o Export psmpkterrthresh as a sysctl

 o Export psmloglevel as a sysctl.

 o Enable more debugging code to be enabled at runtime via psmloglevel.

 o Simplify verbose conditioned loging by using a VLOG macro.

 o Add several comments describing the sync recovery algorithm of
   this driver.

Large Portions by: Brian Somers <brian@Awfulhak.org>
Inspired and Frustrated by: Belkin KVMs
Reviewed by: njl, philip
2004-08-27 21:25:16 +00:00
..
aac Add support for the Adaptec RAID-On-Chip architecture. This in turn 2004-08-13 01:44:09 +00:00
acpi_support Be sure to always unlock the sx lock when exiting the sysctl function. 2004-08-24 17:53:25 +00:00
acpica Always set the status and move a printf under bootverbose. 2004-08-27 00:53:11 +00:00
adlink Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
advansys Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
agp Add support for Intel E7205 AGP. 2004-08-22 03:55:04 +00:00
aha Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
ahb Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
aic Fix disordering of pccarddevs.h noticed by bde. Also remove a few 2004-05-27 03:49:45 +00:00
aic7xxx In the PCI error interrupt handler, specify the width of the PCI configuration 2004-08-22 14:02:43 +00:00
amd Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
amr Allow i386 binaries to do amr ioctls such as LSI's megamgr on amd64 and 2004-08-16 17:23:09 +00:00
an Second part of ALTQ driver modifications, covering: 2004-08-01 23:58:04 +00:00
ar As the if_ar driver doesn't contain locking or run its interrupt 2004-08-13 22:52:11 +00:00
arl Since if_arl doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 22:54:19 +00:00
asr - Set the CAM status to CAM_SCSI_STATUS_ERROR rather than CAM_REQ_CMP 2004-08-02 23:32:23 +00:00
ata Fix the handling of "inflight" requests when doing reinit's. 2004-08-27 14:48:32 +00:00
ath Add missing bit of last if_start workaround: mark scan callout 2004-08-08 17:10:54 +00:00
atkbdc Improve sync recovery algorithm: 2004-08-27 21:25:16 +00:00
awi Since if_awi doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 22:55:25 +00:00
bfe The whitespace crusader strikes! 2004-08-07 20:55:53 +00:00
bge Bring the advertised interface capabilities into line with the reality 2004-07-24 13:45:38 +00:00
bktr Add support AOpen VA1000 video capture card 2004-08-08 01:23:39 +00:00
buslogic Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
cardbus MFp4: 2004-06-27 13:07:02 +00:00
ciss ciss's interrupt handler was missing the INTR_ENTROPY flag. 2004-08-16 23:13:16 +00:00
cm Since if_cm doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 22:57:44 +00:00
cnw We don't need to initialize if_output, ether_ifattach() does it 2004-05-23 16:11:53 +00:00
cp Fix low level code for Tau-PCI/2E1 and Tau-PCI/4E1 that was broken by previous 2004-08-16 17:28:04 +00:00
cs Since if_cs doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:03:11 +00:00
ct Update for the KDB framework: 2004-07-10 20:57:43 +00:00
ctau Fix resource check while autodetection. 2004-08-13 12:35:52 +00:00
cx Fix resource check while autodetection. 2004-08-13 12:35:52 +00:00
cy Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
dc if_dc includes locking, but that locking is disabled by a #ifdef 2004-08-25 03:37:25 +00:00
dcons Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
de Since the if_de driver doesn't contain locking, mark it as 2004-08-13 22:48:05 +00:00
dec Use __FBSDID(). 2003-08-24 17:55:58 +00:00
digi Remove buggy (root filesystems may not have cdev) and pointless 2004-07-28 21:06:13 +00:00
dpt Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
drm Now that mem(4) is a kernel module, we need to add a dependency on 2004-08-05 07:20:24 +00:00
ed Since if_ed doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:04:23 +00:00
eisa Remove outb to "prime" the EISA ID registers of each slot. This was 2004-08-16 22:05:53 +00:00
em Bring in the first chunk of altq driver modifications. This covers the 2004-07-02 12:16:02 +00:00
en * Add a "how" argument to uma_zone constructors and initialization functions 2004-08-02 00:18:36 +00:00
ep Remove duplicate $FreeBSD$ 2004-07-22 07:11:15 +00:00
esp - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +00:00
ex Since if_ex doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:06:55 +00:00
exca Didn't intend to commit debugging code enabled 2004-08-16 01:57:06 +00:00
fatm Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
fb While we're revisiting old sins, try to clean up the code a little and 2004-08-06 21:35:51 +00:00
fdc Hide a printf under bootverbose. 2004-08-27 17:08:24 +00:00
fe Since if_fe doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:08:08 +00:00
firewire Assert Giant in fwe_start(), as it is not yet MPSAFE. 2004-08-18 04:54:54 +00:00
fxp Deorbit the fxp tuning hint (hint.fxp.UNIT_NUMBER.ipcbxmit_disable) 2004-08-11 21:41:25 +00:00
gem Since if_gem doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:11:24 +00:00
gfb Update for the KDB framework. Sanitize the alpha console code now that 2004-07-10 22:29:41 +00:00
gx Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
harp Do a pass over all modules in the kernel and make them return EOPNOTSUPP 2004-07-15 08:26:07 +00:00
hatm Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
hfa Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
hifn Consistently use __inline instead of __inline__ as the former is an empty macro 2004-07-04 16:11:03 +00:00
hme Make hme(4), i.e. the PCI-variant, MI by reading the MAC address on sytems 2004-08-14 22:38:20 +00:00
ic Remove advertising clause from University of California Regent's 2004-04-07 20:46:16 +00:00
ichsmb Add PCI Device ID for 6300ESB ICH. If allocating 16 bytes fails then try 32. 2004-06-24 18:21:28 +00:00
ichwd make code less broken, only try to create unit 0 since there can only 2004-06-13 05:00:19 +00:00
ida Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
idt Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
ie Since if_ie doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:15:44 +00:00
if_ndis Make the Texas Instruments 802.11g chipset work with the NDISulator. 2004-08-16 18:50:20 +00:00
iicbus Since if_ic doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:16:44 +00:00
iir Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
io Add module versions. 2004-08-02 20:42:28 +00:00
ips Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
isp Until I can get a clearer architecture from PHK about why he wants 2004-08-23 19:04:19 +00:00
ispfw Do a pass over all modules in the kernel and make them return EOPNOTSUPP 2004-07-15 08:26:07 +00:00
ixgb Since if_ixgb doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-14 00:17:04 +00:00
joy Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
kbd Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
led Remove a pointless check. 2004-07-10 15:38:27 +00:00
lge Since if_lge doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:18:01 +00:00
lnc Pass a correct lowaddr to bus_dma_tag_create(), lnc(4) cards can only 2004-08-22 23:01:13 +00:00
matcd Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
mc146818
mca Use __FBSDID(). 2003-08-24 17:55:58 +00:00
mcd Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
md When creating a new md, wait for geom's event queue to become empty 2004-08-22 19:44:24 +00:00
mem Fix module builds for i386 and amd64. 2004-08-04 18:30:31 +00:00
mii Add locking to the kqueue subsystem. This also makes the kqueue subsystem 2004-08-15 06:24:42 +00:00
mk48txx Use __FBSDID(). 2003-08-24 17:55:58 +00:00
mlx Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
mly Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
mpt Correct style nit in rev 1.17. 2004-08-25 17:54:19 +00:00
mse Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
musycc Switch to using C99 sparse initialisers for the type methods array. 2004-05-29 00:51:19 +00:00
my Replace handrolled CRC calculation with ether_crc32_[lb]e(). 2004-06-09 14:34:04 +00:00
ncv Update for the KDB framework: 2004-07-10 21:05:14 +00:00
nge Since if_nge doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:22:53 +00:00
nmdm Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
nsp Update for the KDB framework: 2004-07-10 21:06:08 +00:00
null Go back to the historical minor numbers. Add a module version while 2004-08-02 19:59:41 +00:00
ofw Instead of "OpenFirmware", "openfirmware", etc. use the official spelling 2004-08-16 15:45:27 +00:00
owi Move to generating pccarddevs.h on the fly, both for the kernel and 2004-05-26 00:53:10 +00:00
patm Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
pccard Some cards don't have the info entries in the CIS, so vendorstr and/or 2004-08-16 15:57:18 +00:00
pccbb Don't need to declare cbb module. don't know why I never saw 2004-08-16 06:33:58 +00:00
pcf - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +00:00
pci Disable native ata support for now, too much breaks 2004-07-02 13:42:36 +00:00
pdq Link ALTQ to the build and break with ABI for struct ifnet. Please recompile 2004-06-13 17:29:10 +00:00
ppbus Apply error and success logic consistently to the function netisr_queue() and 2004-08-27 18:33:08 +00:00
ppc Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
pst Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
puc - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +00:00
random Perform a lockless read to test whether an entropy havesting fifo is 2004-08-11 03:33:32 +00:00
ray Since if_ray doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:39:07 +00:00
rc Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
re Eliminate unneeded return keywords. 2004-07-06 02:48:29 +00:00
rndtest Use __FBSDID(). 2003-08-24 17:55:58 +00:00
rp Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
sab - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +00:00
safe Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
sbni Since if_sbni doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:41:00 +00:00
sbsh Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
scd Avoid casts as lvalues. 2004-07-28 06:21:53 +00:00
sf Whitespace nit 2004-07-05 22:52:01 +00:00
si Avoid casts as lvalues. 2004-07-28 06:21:53 +00:00
sio If you insert a pccard modem and then eject it, you get a panic. This 2004-07-22 23:16:12 +00:00
sk fix LOR's in sk. Original patch from dwhite. This moves the memory 2004-08-20 06:22:04 +00:00
smbus Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
sn Replace handrolled CRC calculation with ether_crc32_[lb]e(). 2004-06-09 14:34:04 +00:00
snc Since if_snc doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:47:01 +00:00
snp Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
sound The new contigmalloc code is exposing a lot of misuses of busdma memory 2004-08-22 18:57:40 +00:00
speaker Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
sr Since if_sr doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:49:48 +00:00
stg Update for the KDB framework: 2004-07-10 21:14:20 +00:00
streams Do a pass over all modules in the kernel and make them return EOPNOTSUPP 2004-07-15 08:26:07 +00:00
sx Preparation commit for the tty cleanups that will follow in the near 2004-07-15 20:47:41 +00:00
sym Convert callers to the new bus_alloc_resource_any(9) API. 2004-03-17 17:50:55 +00:00
syscons Just because we have a serial console attached does not mean we don't 2004-08-05 23:54:04 +00:00
tdfx Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
tga Add missing <sys/module.h> includes currently relying on nested include 2004-06-03 06:10:02 +00:00
ti Whitespace pass. 2004-07-05 22:46:28 +00:00
trm Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
twa Changes to make twa work on amd64. 2004-08-18 16:14:44 +00:00
twe Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
tx Since if_tx doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:52:33 +00:00
txp Since if_txp doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-13 23:53:36 +00:00
uart Don't call uart_bus_probe() for non-matching PnP-devices. Trying to probe 2004-08-25 22:15:33 +00:00
ubsec Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
usb Correct capitalization of DeLorme Publishing. 2004-08-26 16:59:50 +00:00
utopia Do a pass over all modules in the kernel and make them return EOPNOTSUPP 2004-07-15 08:26:07 +00:00
vinum Do a pass over all modules in the kernel and make them return EOPNOTSUPP 2004-07-15 08:26:07 +00:00
vr Revert rev 1.93 and replace it by grabbing the vr lock before calling 2004-08-11 04:30:49 +00:00
vx ss if_vx through indent, and use ANSI function definitions, prior to adding 2004-08-18 16:56:54 +00:00
watchdog Do the dreaded s/dev_t/struct cdev */ 2004-06-16 09:47:26 +00:00
wds Use __FBSDID(). 2003-08-24 17:55:58 +00:00
wi Second part of ALTQ driver modifications, covering: 2004-08-01 23:58:04 +00:00
wl Add missing <sys/module.h> includes 2004-05-30 20:08:47 +00:00
xe Since if_xe doesn't contain locking or run with INTR_MPSAFE, mark 2004-08-14 00:15:26 +00:00
zs - Introduce an ofw_bus kobj-interface for retrieving the OFW node and a 2004-08-12 17:41:33 +00:00