summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2004-12-26This should fix long outstanding issues with ami(4). The reportedMarco Peereboom
symptoms that were fixed are: * Very slow throughput * ccb timeout (i.e. ami0: timeout ccb 1) * All IO to ami devices hangs * Only 1 LD (Logical Drive) can be accessed at the same time * System hangs/freezes when running IO to ami cards. Issues it doesn't fix: * Really old ULTRA-2 controllers still crash whenever more than 1 LD are accessed at the same time therefore the driver limits the maximum LDs to 1. Tested by several folks and ok beck@ mickey@
2004-12-26Make this compile and bring the last few vga fixes in.Miod Vallat
Compiles (with an ega0 at isa?; wsdisplay* at ega? couple of lines in the kernel configuration file); not tested on real hardware.
2004-12-25Do not allow loading a font in an used font slot; discussed with and ok mickey@Miod Vallat
2004-12-25Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no functional change.
2004-12-25correct indentTheo de Raadt
2004-12-25in real C, there is not , after the last enum entry; ok reykTheo de Raadt
2004-12-25much space has been regained because of ramdisk fitting exercises inTheo de Raadt
MI code. this has led to the i386 "laptop" floppy having a lot of extra space. heck, let's add minimum usb support! umass, ukbd, aue, url, and wi at usb should now work here.
2004-12-25strncmp() the correct size when looking for ki2c companion.Miod Vallat
2004-12-25- remove unneccessary breakBrad Smith
- reorder operations and a few return (0)'s to break's with MII_TICK switch case
2004-12-24brad should compile before commitingTheo de Raadt
2004-12-24init Jumbo RX ring by default.Brad Smith
ok krw@
2004-12-24{e,}intr{cnt,names} bye-bye.Miod Vallat
2004-12-24Kill bit of ahc cruft. Elminate lots of leading spaces. Other KNF. NoKenneth R Westerback
functional change.
2004-12-24Rewrite intlock/intunlock not to pass around interrupt frame directlyPeter Valchev
without copying which is against C conventions and broke GENERIC.MP with a gcc3 optimization From niklas, tested by many
2004-12-24Do not provide the KERN_EMUL, KERN_EVCOUNT, KERN_INTRCNT, KERN_PROC* andMiod Vallat
HW_SENSORS sysctl trees if option SMALL_KERNEL. ok deraadt@
2004-12-23vt100 wscons crashes restoring cursor if it had never been saved before.Miod Vallat
From NetBSD (wsemul_vt100.c 1.24, wsemul_vt100var.h 1.7)
2004-12-23Fix crash due to wrong argument in the (almost useless) DECRQUPSS escapeMiod Vallat
sequence. From NetBSD (1.13)
2004-12-23Reliability fix, from NetBSD:Miod Vallat
When moving the cursor down, only scroll up if cursor is exactly at bottom of scroll region; don't scroll if below scroll region.
2004-12-23change FXPF_UCODE to mean "firmware load attempted". if the firstTheo de Raadt
loadfirmware() fails because the file is missing, we do not want to try again when the first softclock -> fxp_stats_update -> fxp_init happens later. calling namei in that context is really bad; tested by mcbride
2004-12-23make com[123] work for console on i386, but allow override with CONADDR/CONUNITMarkus Friedl
ok mickey, deraadt
2004-12-23Allow an i386 MP kernel to build without pcibios. miod@ okAaron Campbell
-#if NPCIBIOS > 0 +#if (NPCIBIOS > 0) || (NIOAPIC > 0)
2004-12-23Use a shorter, more realistic initial memory storage for extio.Miod Vallat
2004-12-23turn padding of tx packets on since it appears it may be needed by certainDavid Gwynne
firmwares or revisions of the chip. also remove the option to turn it off.
2004-12-23From dyoung@NetBSD:Jonathan Gray
ieee80211.h r 1.9 #define the difference in microseconds between a fast and a slow preamble and PLCP header. ieee80211_output.c r 1.19 Fix a bug in ieee80211_compute_duration: the 802.11 Duration field in an 802.11 unicast data packet is equal to the duration of the SIFS and Acknowledgement. That is, the amount of time reserved *after* the packet has finished transmitting. Change the arguments to ieee80211_compute_duration: pass the entire packet length, not just the payload length. Add a 'debug' argument to ieee80211_compute_duration and its helper subroutine, ieee80211_compute_duration1. If debug != 0, ieee80211_compute_duration printfs its arguments and several local variables. In rtw(4), load the 802.11 Duration field with the result from ieee80211_compute_duration.
2004-12-23From dyoung@NetBSD:Jonathan Gray
Define for more bits in the Service field of the 802.11 PLCP Header. For use by the subroutine ieee80211_compute_duration, add struct ieee80211_duration, and #define a number of microsecond constants used for the transmit timing of 802.11 packets. Add the subroutine ieee80211_compute_duration, which computes for any packet the appropriate 802.11 Duration field, the PLCP Length field, as well as the Duration and Length fields for an RTS frame. atw(4), rtw(4), future drivers, and possibly ath(4) will share ieee80211_compute_duration. ok millert@
2004-12-23Simplify hashtable (de)allocation by moving it into the clone functions.Camiel Dobbelaar
ok mickey@ henning@, "looks good" markus@ jason@
2004-12-22- add missing braces for SIOCSIFMTU switch case.Brad Smith
- allow reception of Jumbo frames all the time on GEnesis based cards, same as Yukon based cards. ok krw@ mcbride@
2004-12-22Upon SCSI command timeout, check if we have missed a DMA completion,Miod Vallat
and if so, resume to regular phase change processing (due to the way this SCSI controller works, it is not possible to rely upon DMA completion interrupts). While there, bring back openings to 2 in all cases, and move timeout_del() to spc_done(). Tested by deraadt@, millert@ and I.
2004-12-22Bring more fixes from NetBSD:Miod Vallat
- more delay in loops (1.36) - on manual xfer via TEMP register, set PCTL_BFINT_ENAB and check bus free by INTS register (1.35)
2004-12-22Do not use DMA for odd-size transfers, as the last byte will not beMiod Vallat
transferred correctly.
2004-12-22proper DDB_DEBUGMichael Shalayeff
2004-12-22Introduce 'set skip on <ifspec>' to support a list of interfaces where noDaniel Hartmeier
packet filtering should occur (like loopback, for instance). Code from Max Laier, with minor improvements based on feedback from deraadt@. ok mcbride@, henning@
2004-12-22and something else in the futureTheo de Raadt
2004-12-22Use vfs firmware loader for fxp(4) interrupt coalescing microcode.Alexander Yurchenko
Initial work by Dmitry Bogdan <bogdan@eastonline.ru> with a help from me and Theo. ok deraadt@
2004-12-22Instead of running carp_setroute synchronously, use if_addrhooks to get aChristopher Pascoe
callback after in_ifinit has run. This lets us correct any routes that in_ifinit has incorrectly added for our interface. Also be more explicit with the routing checks/changes that we make. This makes it possible to have different prefix lengths on a CARP interface and the physical interface it is bound to. ok mcbride@
2004-12-22Do a COR reset on prism cards too in the watchdog reset. Helps recoverTodd C. Miller
things when older prism firmware gets wedged.
2004-12-21add powerhooksDamien Bergamini
OK claudio@ kevlo@ deraadt@
2004-12-21Check that if_type != IFT_CARP before using ifp->if_carp.Ryan Thomas McBride
2004-12-21Don't use crypto thread for callbacks.Marco Pfatschbacher
This primarily improves IPsec performance when using crypto accelerators. With help from markus@, tested by wvdputte@. ok deraadt@, markus@
2004-12-20In the rare case that SCSI_RESET is set, ensure that xs->stimeout isKenneth R Westerback
valid and don't call ahd_setup_data() after ahd_execute_scb() may have freed the scb.
2004-12-20Activate packetized status handling.Kenneth R Westerback
ok tdeval@.
2004-12-20Allow the setkey function of a transform to fail, eg. when an insufficientHans-Joerg Hoexer
number of key bits is supplied. Only AES and DES/3DES might fail. ok and help markus@
2004-12-20Kill \n at EOF.Alexander Yurchenko
2004-12-20more details in license filesTheo de Raadt
2004-12-20firmware loading from the filesystem. pci subsystem type thingsTheo de Raadt
are still done early, but audio subsystem setup is deferred till after root is mounted. tested by mcbride
2004-12-20lots of minor tweaking and cleanup, removal of unused junk, etc; dlg okTheo de Raadt
2004-12-20Enforce an ordering on ifnet such that CARP interfaces appear later in theChristopher Pascoe
list than physical interfaces. This makes ifa_ifwith* prefer a physical interface over a CARP one. This addresses the problem where a CARP interface in BACKUP state is selected after a route change, resulting in a loss of communications despite there being another interface available which is perfectly usable. ok mcbride@ mpf@
2004-12-20vge(4) in bsd.rd, only CD for now; ok deraadtPeter Valchev
2004-12-19#define sc_if sc_ac.ac_if, makes things a little more readable, andRyan Thomas McBride
kills a couple of ugly line wraps. From Max Laier. ok pascoe@
2004-12-19single comment in GENERIC replaces a file that gets out of date; discussed ↵Theo de Raadt
by many