summaryrefslogtreecommitdiff
path: root/sys/arch/i386/isa
AgeCommit message (Collapse)Author
2008-12-11Kill the $ARCH prefix for isa_dma_cookie. With this change, the i386 andOwain Ainsworth
amd64 isa dma code is identical save for some formatting, and a slight difference in bus_dmamem_alloc. "Die x86_!" krw@.
2008-12-10both x86 platforms isa bus_dma implementations handle bus_dmamap_syncOwain Ainsworth
incorrectly. The spec (manpage) states that using two PRE or two POST ops together is entirely valid, but mixing pre and post is invalid. The way this was handled before with a switch statement meant that only individual commands actually would be recognised, so move to just checking the commands indidually using "if (op & $command)". Additionally, add a DIAGNOSTIC check and panic for the mixing of pre and post operations (this is done on several other architectures already). tested by several people; thanks! ok dlg@, kettenis@, "the diff made sense" deraadt.
2008-12-04Fix "fp_save ipi didn't" panic, and move i386/amd64 closer in the process.Tobias Weingartner
Positive test results by a handful of people. Ok kettenis@
2008-12-03Remove the x86 and i386 prefixes to the bus_dma types. It's really quiteOwain Ainsworth
pointless and just makes the code different for no reason. This moves i386 and amd64 bus_dma to being a lot closer to identical. suggestion to just remove the prefix instead of merge them from deraadt@. no objections art@, kettenis@, ok weingart@
2008-11-24die die dieTheo de Raadt
2008-11-23pccom can finally die; ok kettenis dlg drahn, tested by okanTheo de Raadt
2008-09-10Convert timeout_add() calls using multiples of hz to timeout_add_sec()Bret Lambert
Really just the low-hanging fruit of (hopefully) forthcoming timeout conversions. ok art@, krw@
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-05-21Switch i386 from pccom to com. Welcomed by many.Mark Kettenis
ok dlg@, jsing@, deraadt@
2008-05-07Move i386 to __HAVE_GENERIC_SOFT_INTERRUPTSMark Kettenis
ok dlg@, tested by dlg@, oga@, jsg@, deraadt@
2008-04-26Remove softast; it's no longer used.Mark Kettenis
ok krw@
2008-04-25Make ipending per-cpu. Should fix PR 5788.Mark Kettenis
ok weingart@
2008-04-12Initialize comconsiot in comcninit().Mark Kettenis
ok deraadt@
2008-03-29Fix amd64 and i386 serial console handling for non-default speeds. BringKenneth R Westerback
i386 pccom into line with com. Problem reported and first diff by Markus Hennecke, who also tested and corrected subsequent diffs. Boot messages and console now work with his 57K serial connections. Suggestions and ok miod@
2008-01-23Cleanup cn_pri. Change constants to more meaningful names, rather thanJoel Sing
the hp300 related ones currently in use. CN_NORMAL becomes CN_LOWPRI, CN_INTERNAL becomes CN_MIDPRI and CN_REMOTE becomes CN_HIGHPRI. ok miod@
2007-11-29outdated commentTheo de Raadt
2007-11-28quite a bit of simplification by removing cpu classes.Ted Unangst
also assume that 386 cpus are really unknown, and promote them to 486 instead of panic.
2007-11-25spelling fixes, from Martynas Venckus;Jason McIntyre
2007-09-07Use M_ZERO in a few more places to shave bytes from the kernel.Artur Grabowski
eyeballed and ok dlg@
2007-08-01switch i386 to use the MI i8253 header file and remove the now obsolete MDMartin Reindl
timerreg.h ok miod@
2007-05-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-05-09unused variableTheo de Raadt
2007-05-08backout while the amd64 puc situation is rethoughtTheo de Raadt
2007-05-08move com_activate() to where it belongsTheo de Raadt
2007-05-08put more foo_detach() routines where they are usedTheo de Raadt
2007-04-28Remove a duplicate copyright statement.Jonathan Gray
2007-04-12Faster signal delivery on i386/MP.Artur Grabowski
We need to poke the other CPU so that it processes the AST immediately and doesn't wait for the next interrupt or syscall. Since IPIs really shouldn't process ASTs, we need to trigger a soft interrupt on the destination CPU to process the AST. But since we can't send soft interrupts to other CPUs, we send an IPI, that triggers a soft interrupt that in turn processes the AST. Also, this marks the beginning of moving to slightly better IPI mechanism of short and optimized IPIs instead of the large and complicated IPI infrastructure we're using now. tested by many, ok tholo@
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-03-22Do not define ISA_DMA_STATS by default; ok deraadtMiod Vallat
2007-03-19Move i386 to timecounters. This is more or less the same code as amd64.Artur Grabowski
The "lapic" timer is ripped out since it wasn't actually a lapic timer, but a hacked up tsc timer with some synchronization for MP. There is no tsc timer right now since they are very unreliable on MP systems, systems with apm, and systems that change the cpu clock. Which basically means every modern machine out there. We're running with the i8259 timer now. deraadt@ ok
2007-02-15break into ddb right from comintr() w/o softtty (same as com(4) does); miod@ okMichael Shalayeff
2006-12-29Avoid void * arithmetic, okay deraadt@, suggestions from millert@Pedro Martelletto
2006-12-28Support for ST16C654 chips, however these aren't detected as such, so theMiod Vallat
attachment code has to know better for now; from Alexei G. Malinin (alexei.malinin@inetcomm.ru)
2006-12-20"#ifdef is a tool of the weak!"Gordon Willem Klok
Rename pentium_mhz to cpuspeed which is consistant with amd64 making shared ACPI code less nasty. ok marco, deraadt
2006-11-11Get rid of magic isa and eisa bus numbers in mpbios code. Pave the way forMark Kettenis
alternative sources for interrupt information. ok gwk@, brad@
2006-10-18Short-circuit the detection of the FPU by checking the CPUID features,Tom Cosgrove
as done in FreeBSD. Fixes problems on AMD Geode LX-800 where our detection logic doesn't detect the FP exception. ok deraadt@ kettenis@
2006-09-19ansi/deregisterJonathan Gray
2006-07-31puc@cardbus (only added (commented out) to whom has puc@pci enabled)Michael Shalayeff
tested on puc@pci by fkr and meself on the cardbus. still needs a bit more work but generally works. deraadt@ ok and some input from miod@
2006-07-25Kill option GPL_MATH_EMULATE.Mark Kettenis
ok deraadt@ and many others.
2006-06-23In a drivers activate() entry point, if on DVACT_DEACTIVATE it doesMiod Vallat
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
2006-06-19move clock_subr.c to a better place, and now it is always in the kernelTheo de Raadt
so that things can use it; tested on all architectures; ok kettenis
2006-06-15make the clock error calculation match dev/ic/com.c so that things with,Jason Wright
say, a 10x clock work.
2006-05-28remove sc_ic member from struct com_softc as it is not used anywhereFelix Kronlage
ok miod@, martin@
2006-05-09Avoid estimating pentium_mhz too low, which has the effect of resultingOtto Moerbeek
in non-monotonic time. Now the gettimeofday regression no longer fails on my 500MHz PIII. ok toby@ mickey@
2006-04-272 lines of code in most drivers, to do the timestamping; ok miod kettenisTheo de Raadt
2006-04-19from todays freebsd advisory: fxrstor on amd cpu does not restore ↵Michael Shalayeff
fip,fdp,fop thus leaking other proc's execution history; deraadt@ ok
2006-03-15Entries in cd_devs[] may be NULL, so be sure to check for them in yourMiod Vallat
device open() function.
2006-03-13time-bind and lower power in lock spinning and a couple of other ipi loops ↵Michael Shalayeff
by using pause insn; brad@ ok tedu@ ok and feedback krw@ testing
2006-02-12Remove dead sysbeep driver and unused sysbeep() routine. No functional change.Miod Vallat