summaryrefslogtreecommitdiffstats
path: root/sys/isa
Commit message (Collapse)AuthorAgeFilesLines
* Use bioq_flush() to drain a bio queue with a specific error code.phk2003-04-011-1/+1
| | | | | | | | Retain the mistake of not updating the devstat API for now. Spell bioq_disksort() consistently with the remaining bioq_*(). #include <geom/geom_disk.h> where this is more appropriate.
* Correct an argument to bus_alloc_resource().mdodd2003-03-251-2/+2
|
* - Add vm_paddr_t, a physical address type. This is required for systemsjake2003-03-251-1/+1
| | | | | | | | | | | | | | | where physical addresses larger than virtual addresses, such as i386s with PAE. - Use this to represent physical addresses in the MI vm system and in the i386 pmap code. This also changes the paddr parameter to d_mmap_t. - Fix printf formats to handle physical addresses >4G in the i386 memory detection code, and due to kvtop returning vm_paddr_t instead of u_long. Note that this is a name change only; vm_paddr_t is still the same as vm_offset_t on all currently supported platforms. Sponsored by: DARPA, Network Associates Laboratories Discussed with: re, phk (cdevsw change)
* Use repo-copied files in sys/i386/bios.mdodd2003-03-241-1/+1
|
* Including <sys/stdint.h> is (almost?) universally only to be able to usephk2003-03-181-1/+0
| | | | | %j in printfs, so put a newsted include in <sys/systm.h> where the printf prototype lives and save everybody else the trouble.
* Fix a malloc() with no legal modeflag.phk2003-03-171-1/+1
|
* Call devstat_start_transaction_bio() instead of devstat_start_transaction()phk2003-03-151-1/+1
|
* Allocate the devstat structure with devstat_new_entry().phk2003-03-081-6/+6
|
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-033-39/+24
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* More low-hanging fruit: kill caddr_t in calls to wakeup(9) / [mt]sleep(9).des2003-03-022-6/+6
|
* Cleanup of the d_mmap_t interface.mux2003-02-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | - Get rid of the useless atop() / pmap_phys_address() detour. The device mmap handlers must now give back the physical address without atop()'ing it. - Don't borrow the physical address of the mapping in the returned int. Now we properly pass a vm_offset_t * and expect it to be filled by the mmap handler when the mapping was successful. The mmap handler must now return 0 when successful, any other value is considered as an error. Previously, returning -1 was the only way to fail. This change thus accidentally fixes some devices which were bogusly returning errno constants which would have been considered as addresses by the device pager. - Garbage collect the poorly named pmap_phys_address() now that it's no longer used. - Convert all the d_mmap_t consumers to the new API. I'm still not sure wheter we need a __FreeBSD_version bump for this, since and we didn't guarantee API/ABI stability until 5.1-RELEASE. Discussed with: alc, phk, jake Reviewed by: peter Compile-tested on: LINT (i386), GENERIC (alpha and sparc64) Runtime-tested on: i386
* 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
OpenPOWER on IntegriCloud