summaryrefslogtreecommitdiffstats
path: root/sys/arch/i386/pci/ichpcib.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* timecounting: use C99-style initialization for all timecounter structscheloha2021-02-231-9/+9
| | | | | | | | | | | | | | | | | | The timecounter struct is large and I think it may change in the future. Changing it later will be easier if we use C99-style initialization for all timecounter structs. It also makes reading the code a bit easier. For reasons I cannot explain, switching to C99-style initialization sometimes changes the hash of the resulting object file, even though the resulting struct should be the same. So there is a binary change here, but only sometimes. No behavior should change in either case. I can't compile-test this everywhere but I have been staring at the diff for days now and I'm relatively confident this will not break compilation. Fingers crossed. ok gnezdo@
* Add support for timeconting in userland.pirofti2020-07-061-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | This diff exposes parts of clock_gettime(2) and gettimeofday(2) to userland via libc eliberating processes from the need for a context switch everytime they want to count the passage of time. If a timecounter clock can be exposed to userland than it needs to set its tc_user member to a non-zero value. Tested with one or multiple counters per architecture. The timing data is shared through a pointer found in the new ELF auxiliary vector AUX_openbsd_timekeep containing timehands information that is frequently updated by the kernel. Timing differences between the last kernel update and the current time are adjusted in userland by the tc_get_timecount() function inside the MD usertc.c file. This permits a much more responsive environment, quite visible in browsers, office programs and gaming (apparently one is are able to fly in Minecraft now). Tested by robert@, sthen@, naddy@, kmos@, phessler@, and many others! OK from at least kettenis@, cheloha@, naddy@, sthen@
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* Enforce ca_activate tree-walks over the entire heirarchy for all events,deraadt2013-05-301-6/+2
| | | | | | cleaning up some shutdown-hook related code on the way. (A few drivers related to sparc are still skipped at kettenis' request) ok kettenis mlarkin, tested by many others too
* we are past the point where timecounters may disappeartedu2012-08-161-9/+1
| | | | ok miod
* use config_activate_children to get down to the isa bus activation codederaadt2010-07-081-2/+4
|
* remove proc.h include from uvm_map.h. This has far reaching effects, astedu2010-04-201-1/+2
| | | | | | sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
* Clean up Intel host bridge PCI IDs.kettenis2008-01-041-2/+2
| | | | ok deraadt@
* quite a bit of simplification by removing cpu classes.tedu2007-11-281-3/+1
| | | | | also assume that 386 cpus are really unknown, and promote them to 486 instead of panic.
* Add the Intel ICH9 chipset.brad2007-10-171-2/+6
| | | | | | Tested by damien@ ok dlg@
* Modify the heuristic for detection of speedstep to recognize a compatiblegwk2007-09-071-32/+47
| | | | | | mobile Intel Pentium 3 as found in Dell c610 fixes pr5565. ok beck, toby
* Match on ICH8M.jsg2007-06-021-2/+3
| | | | Tested by Daniel Dickman <didickman@gmail.com>
* Fix compilation of kernels without I686_CPU: piixpcib is alwaystom2007-05-291-1/+3
| | | | | | | needed (not just for I686_CPU), but it and ichpcib only call the update_cpuspeed functions for I686_CPU. ok tedu@ deraadt@
* ichss_cookie is a bad name, and should not be a void pointer.gwk2007-03-261-5/+5
| | | | | | Spotted by Stefan Sperling <stsp AT tsp.in-berlin.de> when reviewing his piix speedstep diff. ok tedu@
* Complete gwk's previous patch to stop setperf methods from returningdim2006-12-121-6/+4
| | | | | | errors to userland: make all cpu_setperf functions return void. Tested by many, ok gwk@
* Remove all the extern cpu_{id,model,whatever} declarations from mostdim2006-11-291-2/+1
| | | | | | | stuff in arch/i386/i386. This should prevent more screwups like the one I did before in ichpcib.c... ok dlg@ kettenis@
* Fix cpu_model string screwup.dim2006-11-291-2/+2
|
* acpi may steal the timer and speedstep functionality, in which case wederaadt2006-11-281-4/+2
| | | | | | cannot io map the device. rest of the attach() functionality is still safely intact. we simply do not have to warn about mapping failing. ok kettenis
* Only use the ichpcib speedstep feature if we're running on a (Mobile) Pentium 4,dim2006-11-271-3/+31
| | | | | | since Celerons don't support it. prodded by gwk@
* add 82801GHM and 82801Hbrad2006-09-191-1/+3
|
* add the Intel 6321ESB LPCbrad2006-08-061-1/+2
|
* add a few Intel PCI-ISA bridges.brad2005-12-111-2/+7
|
* ichpcib(4) support for 82801FB (ICH6) as found in marco@'s Dell d810.jsg2005-07-251-1/+2
| | | | Tested by and ok marco@, ok brad@
* Support for 6300ESB (timecounter, not SpeedStep of course).grange2004-10-051-2/+3
|
* - check if pm space is enabledgrange2004-10-051-26/+30
| | | | | - switch to pci_matchbyid() - minor nits
* Minor tweaks to unify with other timecounters.grange2004-09-261-3/+3
|
* Timecounter support for Intel ICH chips, not enabledgrange2004-09-251-4/+47
| | | | on any platform yet.
* Don't touch any hardware registers while fetching hw.cpuspeed andgrange2004-06-061-1/+4
| | | | | | | | | | | | just return current pentium_mhz value. Update this value in all hw.setperf hoos either via its own private methods or using global update_cpuspeed hook, if registered. Also implement update_cpuspeed hook for Pentium 3. Tested by millert@, Gabriel Kihlman <gk@stacken.kth.se> and me on various i386 machines. ok tedu@
* This chunk was not supposed to be commited now.grange2004-05-071-4/+1
|
* Move speedstep code to a separate ichpcib(4) driver.grange2004-05-061-0/+222
It attaches instead of pcib(4) and provides its usual functionality (attaching isa bus) by calling pcibattach() in the attach routine. ok miod deraadt