summaryrefslogtreecommitdiffstats
path: root/sys/isa
Commit message (Collapse)AuthorAgeFilesLines
* Switch to using the TSC code in i386/i386/tsc.c.phk2003-02-111-114/+1
|
* Split the global timezone structure into two integer fields tophk2003-02-031-2/+2
| | | | | | | | | | prevent the compiler from optimizing assignments into byte-copy operations which might make access to the individual fields non-atomic. Use the individual fields throughout, and don't bother locking them with Giant: it is no longer needed. Inspired by: tjr
* Split statclock into statclock and profclock, and made the method for drivingjake2003-02-031-6/+22
| | | | | | | | | | | | | statclock based on profhz when profiling is enabled MD, since most platforms don't use this anyway. This removes the need for statclock_process, whose only purpose was to subdivide profhz, and gets the profiling clock running outside of sched_lock on platforms that implement suswintr. Also changed the interface for starting and stopping the profiling clock to do just that, instead of changing the rate of statclock, since they can now be separate. Reviewed by: jhb, tmm Tested on: i386, sparc64
* Correct error message.nyan2003-02-021-1/+1
|
* Make tsc_freq a 64bit quantity.phk2003-01-291-5/+7
| | | | Inspired by: http://www.theinquirer.net/?article=7481
* YAM: This id is found in a Sony Vaio GRX-670. When will this end?marcel2003-01-221-0/+1
| | | | Submitted by: Chuck McCrobie <mccrobie2000@yahoo.com>
* Add yet another Sony Vaio PS/2 mouse ID. This one is found on a VX88.hsu2003-01-221-2/+3
| | | | Submitted by: marcel
* Add yet another Sony Vaio PS/2 mouse ID. This one is found in a R505GL.marcel2003-01-211-0/+1
| | | | | The ACPI data for the mouse includes the compatibility ID, but we apparently don't make use of it.
* Make the SC_NO_SUSPEND_VTYSWITCH kernel option available as a loadermdodd2003-01-151-9/+19
| | | | tunable and sysctl (hw.syscons.sc_no_suspend_vtswitch).
* - GC a few more hand-rolled 'abs' macros.mdodd2003-01-151-16/+7
| | | | - GC a few hand-rolled min()/max() macros while I'm here.
* Bail out of fd_clone() if the parsed unit number doesn't match ourjoerg2003-01-111-0/+3
| | | | | | | | | | expectation. This solves the problem, where in a constellation with two (or more) drives, an attempt is made to access a device name for that device using a historic partition letter, like /dev/fd1c. This is supposed to create a symlink to the master device, but previously, the link was always created to /dev/fd0, even if the request was for fd1*.
* Remove calls to cdevsw_add(), they are dreprecated on this branch now.phk2002-12-281-6/+0
|
* Use the correct value when writing the Day Of Week byte in the CMOS.phk2002-12-041-1/+1
| | | | | | | | | | | | | | | | | The correct range is [1...7] with Sunday=1, but we have been writing [0...6] with Sunday=0. The Soekris computers flagged the zero, zapped the date, so if you rebooted your soekris on a sunday, it would come up with a wrong date. Bruce has a more extensive rework of this code, but we will stick with the minimalist fix for now. Spotted by: Soren Kristensen <soren@soekris.com> Thanks to: Michael Sierchio <kudzu@tenebras.com>. Confirmed by: bde Approved by: re
* Capitalize the first letter of device descriptionsmux2002-11-111-2/+2
| | | | for consistency with the rest of the drivers.
* Fix compile with options SC_NO_SUSPEND_VTYSWITCH.jhb2002-10-171-0/+2
|
* 1. Fix a comment. Locking _is_ needed (but not done).iwasaki2002-10-171-12/+8
| | | | | | | | | | | | | | | | | | | | | | | | | 2. Update a comment. We now restore much more than RTC updates and interrupts. 3. Order change. Stop interrupts by writing to RTC_STATUSB, restore rate bits for the interrupts by writing to RTC_STATUSA, then enable interrupts again. This seems to be done perfectly backwards in startrtclock(). Otherwise, the idea for this change was obtained from startrtclock(). 4. Don't stop the clock (RTCB_HALT). We only program some control bits and don't want to stop the clock. 5. (Not really related.) Add caveats to the comment about timer_restore(). The update is non-atomic since locking is not done. On locking: 6. rtcin() and writertc() are locked() adequately by splhigh() in RELENG_4, but this locking is null in -current. 7. Doing things in the correct order in (3) combined with (6) is probably enough locking for rtcrestore() in RELENG_4. In -current, the writertc()'s race with rtcintr() unless the BIOS disables RTC interrupts. Submitted by: bde (including commit message) MFC after: 1 week
* Add new syscons option SC_NO_SUSPEND_VTYSWITCH.iwasaki2002-10-171-0/+4
| | | | This disables vty switch during suspend/resume.
* Put an XXX: comment here to point out a couple of free() issues onphk2002-10-161-0/+4
| | | | | | pnp_read_bytes(). Spotted by: FlexeLint
* No need to declare M_ISADEV here.phk2002-10-161-2/+0
| | | | Spotted by: FlexeLint.
* Properly put macro args in ().phk2002-10-161-1/+1
| | | | Spotted by: FlexeLint.
* - Use __BUS_ACCESSOR() to define the ISA ivar accessor functions instead ofjhb2002-10-152-22/+10
| | | | | | | | homerolling our own version. - Rename the enum for memsize from ISA_IVAR_MSIZE to ISA_IVAR_MEMSIZE since using 'MSIZE' in the macro invocation of ISA_ACCESSOR() conflicts with the 'MSIZE' kernel option. The accessor function is still isa_get_msize().
* Fix a probably rare and inconsequential memory leak.phk2002-10-021-1/+3
| | | | Spotted by: FlexeLint
* Add support for DIOCGMEDIASIZE and DIOCGSECTORSIZE.phk2002-09-301-40/+9
| | | | | | Remove all traces of disklabel. Sponsored by: DARPA & NAI Labs.
* Prefix private BIO commands with "FD" so people get a hint that theyphk2002-09-301-11/+11
| | | | | | are in fact private. Sponsored by: DARPA & NAI Labs.
* Don't leak memory in case device_add_child_ordered() returns NULL.phk2002-09-301-3/+6
| | | | Found by: FlexeLint
* Added some buggy PC-98 PnP cards support.nyan2002-09-291-0/+40
|
* Be consistent about "static" functions: if the function is markedphk2002-09-281-4/+4
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Argh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead ofjhb2002-09-261-2/+2
| | | | | | | nexus(4) in the case of machines w/o equivalent bridges on a PCI bus. Reported by: winter Pointy hat to: jhb
* Fix a 3 year old oversight: Remove the #ifdef/#endif pair now that therephk2002-09-211-2/+0
| | | | | | is nothing between them anymore. Spotted by: peter.
* Make FreeBSD "struct disklabel" agnostic, step 311 of 723:phk2002-09-201-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Rename diskerr() to disk_err() for naming consistency. Drop the by now entirely useless struct disklabel argument. Add a flag argument for new-line termination. Fix a couple of printf-format-casts to %j instead of %l. Correctly print the name of all bio commands. Move the function from subr_disklabel.c to subr_disk.c, and from <sys/disklabel.h> to <sys/disk.h>. Use the new disk_err() throughout, #include <sys/disk.h> as needed. Bump __FreeBSD_version for the sake of the aac disk drivers #ifdefs. Remove unused disklabel members of softc for aac, amr and mlx, which seem to originally have been intended for diskerr() use, but which only rotted and got Copy&Pasted at least two times to many. Sponsored by: DARPA & NAI Labs.
* Restore status register A of RTC at resume time.iwasaki2002-09-181-0/+1
| | | | | | | This should fix the 'too many RTC interrupts and statclock seems broken after resume' problem. MFC after: 1 week
* Suitably shrink a comment so it applies again.phk2002-09-151-5/+2
| | | | Submitted by: bde
* Fix a bug were a struct bio was freed and certain members subsequentlyphk2002-09-131-4/+3
| | | | examined. Use biowait() instead of DIY.
* Pass the physical instead of the logical block number injoerg2002-09-121-1/+1
| | | | | bp->bio_pblkno. Otherwise, all formats not using 512 byte physical sectors got screwed.
* Add suspend/resume method to syscons. This switch the modeiwasaki2002-08-251-0/+35
| | | | | (text <-> graphics) by changing current vty during ACPI sleep/wakeup (maybe APM also).
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-3/+3
|
* Clock frequencies reported by sysctl should be unsigned values. Discoveredmp2002-06-221-2/+2
| | | | | | | | when machdep.tsc_freq returned a negative number on a 2.2GHz Xeon. Submitted by: Brian Harrison <bharrison@ironport.com> Reviewed by: phk MFC after: 1 week
* After some comments from bde, rewrite the loops to avoid turning thejoerg2002-05-141-43/+29
| | | | | | | | | | | | | | | | | previously used "micro-optimization" (count-down loop) into a pessimization. Now the loops are written in the more natural count-up form. Also, while being there, i made the logic in out_fdc() similar to the logic in in_fdc(). The old implementation was a bit bogus anyway since it first tested the DIO bit and only afterwards the RQM bit. However, according to the description of the i82077, the DIO bit is only guaranteed to be valid once the RQM bit is set. Thus, the old implementatoin would have had the chance to misbehave on a controller that is implemented in accordance with the i82077 description (but is not bug-for-bug compatible). MFC after: 3 days
* style(9) changes before further editing that region:joerg2002-05-131-6/+7
| | | | | . add unnecessary parenthesis around return values . put body of an "if" statement onto a line of its own
* Hide the fd autoselection messages behind the bootverbose case so theyjoerg2002-05-121-3/+5
| | | | stop bothering people on their consoles.
* Increase the PIO timeout to approximately the value it used to havejoerg2002-05-122-15/+38
| | | | | | | | | | | | before rev 1.229 (~ 100 ms). According to bde, some (old) broken hardware could require it. In order to make timing more accurate than what could be achieved with a loop around DELAY(1), increase loop timing after the initial ~ 1 ms. Also, move the declaration of FDSTS_TIMEOUT out from fdreg.h into fd.c where it actually belongs to. MFC after: 2 days
* Change the PIO loops from a hard counter into a loop that calls DELAY()joerg2002-05-102-8/+26
| | | | | | | | | | | | in each cycle, with a tunable max cycle count defined in fdreg.h. This is said to fix the problem on some Compaq hardware (and perhaps on other machines using the Natsemi PC87317 chip) where the fdc(4) driver failed to operate at all. PR: kern/21397 Submitted by: Jung-uk Kim <jkim@niksun.com> MFC after: 3 days
* Don't export timecounter structures under debug. with sysctl, theyphk2002-04-301-6/+0
| | | | contain no truly interesting data anymore.
* Remove the tc_update() function. Any frequency change to thephk2002-04-261-2/+0
| | | | | | timecounter will be used starting at the next second, which is good enough for sysctl purposes. If better adjustment is needed the NTP PLL should be used.
* GC various bits and pieces of USERCONFIG from all over the place.phk2002-04-091-8/+0
|
* When reading a UFS-style label from a floppy, don't attempt to use ajoerg2002-04-021-1/+1
| | | | | | | | | "raw partition" of any kind since the floppy driver doesn't support UFS-style partitions at all. Reported by: "Crist J. Clark" <crist.clark@attbi.com> Reviewed by: bde MFC after: 3 days
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-4/+4
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Compromise for critical*()/cpu_critical*() recommit. Cleanup the interruptdillon2002-03-271-0/+12
| | | | | | | | | | | | | | | | | | | disablement assumptions in kern_fork.c by adding another API call, cpu_critical_fork_exit(). Cleanup the td_savecrit field by moving it from MI to MD. Temporarily move cpu_critical*() from <arch>/include/cpufunc.h to <arch>/<arch>/critical.c (stage-2 will clean this up). Implement interrupt deferral for i386 that allows interrupts to remain enabled inside critical sections. This also fixes an IPI interlock bug, and requires uses of icu_lock to be enclosed in a true interrupt disablement. This is the stage-1 commit. Stage-2 will occur after stage-1 has stabilized, and will move cpu_critical*() into its own header file(s) + other things. This commit may break non-i386 architectures in trivial ways. This should be temporary. Reviewed by: core Approved by: core
* Push BIO_FORMAT into a local hack inside the floppy drivers wherephk2002-03-261-0/+2
| | | | it belongs.
* Restore the original copyrightnsouch2002-03-231-0/+1
|
OpenPOWER on IntegriCloud