summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Make mode setting with fdcontrol(8) stick.phk2004-02-251-182/+61
| | | | Recognize when configured for "auto".
* Fix style bug in last commit,johan2004-02-251-5/+5
| | | | | | | | add a tab after WARNS?=. While I'm here fix other style bugs. Submitted by: bde (libbdf/Makefile)
* Add support for the sii3512 SATA chip.sos2004-02-252-0/+3
|
* Revert the last commit. I don't know what I was thinking, but this changescottl2004-02-251-1/+0
| | | | definitely doesn't help any thing.
* style.Makefile(5):johan2004-02-241-4/+2
| | | | | | | | Use WARNS?= instead of WARNS=. While I'm here, use INTERNALPROG, instead if overriding install remove emty lines
* Don't set d_flags twice. The second setting clobbered D_NOGIANT.bde2004-02-241-2/+1
|
* Add support for Cronyx-Tau. For now I added only Tau-ISA files, system filesrik2004-02-2314-0/+13023
| | | | | | would be changed in next patches, after extra verifications. Approved by: imp (mentor)
* Fix a problem with the USB keyboard driver not properly handling keyjhb2004-02-231-5/+5
| | | | | | | | | | rollover resulting in duplicate keypress events. PR: 57273 PR: 63171 Submitted by: plasma <plasma at freebsd.sinica.edu.tw> Submitted by: Brian Candler <B.Candler at pobox.com> MFC after: 1 week
* Fix vinums cdevsw{} to initialize d_version.phk2004-02-232-13/+10
| | | | | | | | The nonstandard formatting made my mega-patch scripts miss it. Retire the static major number while we're here anyway. Reported by: Niels Chr. Bank-Pedersen <ncbp@bank-pedersen.dk>
* Limit the amount of memory userspace processes can cause the kernel torwatson2004-02-231-0/+17
| | | | | | | allocate via DRI on r128 devices. Obtained from: Thomas Biege <thomas@suse.de> Reviewed by: scottl
* Unbreak after the change to use vm_paddr_t. Since vm_paddr_t ismux2004-02-224-8/+8
| | | | | | | an integer type and the a cast to (void *) was added in the definition of NULL for the kernel, we need to use 0 here instead. Partly submitted by: cperciva
* Check that amrd_sc is non-NULL before dereferencing it, not after.cperciva2004-02-221-2/+2
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Check that twed_sc is non-NULL before dereferencing it, not after.cperciva2004-02-221-2/+2
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Don't free k_cfg until we're finished using it -- reverse the order ofcperciva2004-02-221-1/+1
| | | | | | | two free commands. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* Don't free meo until we're finished using it.cperciva2004-02-221-1/+1
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* Check that xfer != NULL before dereferencing it, not after.cperciva2004-02-221-2/+2
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* If we're going to assert that logData != NULL, do it before wecperciva2004-02-221-1/+1
| | | | | | | try to dereference logData. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* We want to allocate and zero sizeof(struct foo) bytes, notcperciva2004-02-221-2/+2
| | | | | | | sizeof(struct foo *) bytes. Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor), scottl
* Fix off-by-one error: sc->twe_drive is an array of TWE_MAX_UNITS elements.cperciva2004-02-221-1/+1
| | | | | Reported by: "Ted Unangst" <tedu@coverity.com> Approved by: rwatson (mentor)
* Device megapatch 5/6:phk2004-02-214-5/+5
| | | | | | | | | | | | Remove the unused second argument from udev2dev(). Convert all remaining users of makedev() to use udev2dev(). The semantic difference is that udev2dev() will only locate a pre-existing dev_t, it will not line makedev() create a new one. Apart from the tiny well controlled windown in D_PSEUDO drivers, there should no longer be any "anonymous" dev_t's in the system now, only dev_t's created with make_dev() and make_dev_alias()
* Device megapatch 4/6:phk2004-02-2179-37/+161
| | | | | | | | Introduce d_version field in struct cdevsw, this must always be initialized to D_VERSION. Flip sense of D_NOGIANT flag to D_NEEDGIANT, this involves removing four D_NOGIANT flags and adding 145 D_NEEDGIANT flags.
* Device megapatch 3/6:phk2004-02-2117-46/+2
| | | | | | | | | | | | Add missing D_TTY flags to various drivers. Complete asserts that dev_t's passed to ttyread(), ttywrite(), ttypoll() and ttykqwrite() have (d_flags & D_TTY) and a struct tty pointer. Make ttyread(), ttywrite(), ttypoll() and ttykqwrite() the default cdevsw methods for D_TTY drivers and remove the explicit initializations in various drivers cdevsw structures.
* Device megapatch 2/6:phk2004-02-212-102/+97
| | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a couple of functions for pseudodrivers to use for implementing cloning in a manner we will be able to lock down (shortly). Basically what happens is that pseudo drivers get a way to ask for "give me the dev_t with this unit number" or alternatively "give me a dev_t with the lowest guaranteed free unit number" (there is unfortunately a lot of non-POLA in the exact numeric value of this number, just live with it for now) Managing the unit number space this way removes the need to use rman(9) to do so in the drivers this greatly simplifies the code in the drivers because even using rman(9) they still needed to manage their dev_t's anyway. I have taken the if_tun, if_tap, snp and nmdm drivers through the mill, partly because they (ab)used makedev(), but mostly because together they represent three different problems for device-cloning: if_tun and snp is the plain case: just give me a device. if_tap has two kinds of devices, with a flag for device type. nmdm has paired devices (ala pty) can you can clone either of them.
* Device megapatch 1/6:phk2004-02-2152-104/+2
| | | | | | | Free approx 86 major numbers with a mostly automatically generated patch. A number of strategic drivers have been left behind by caution, and a few because they still (ab)use their major number.
* Use the more appropriate vm_paddr_t in places where a physicalharti2004-02-218-61/+74
| | | | | | address for DMA is handled instead of pointers. Submitted by: Joerg Sonneberger <joerg@britannica.bec.de>
* Dont alloc size 0 buffers.sos2004-02-211-3/+5
|
* Check both PORTEN and MEMEN for enabled HW.sos2004-02-211-1/+1
|
* Only register interrupt as seen if it was a real HW interrupt.sos2004-02-211-1/+3
|
* Make sure that the first mbuf in the chain passed to atm_intrharti2004-02-211-4/+8
| | | | always contains a packet header.
* The token for atm_intr is actually a void *, not an int. Clarifyharti2004-02-211-2/+4
| | | | | what atm_intr expects in a comment and de-obfuscate the code a little bit by replacing the portability macros with the native BSD names.
* Fix a major brain-o. If the command needs to be put on the deferred queue,scottl2004-02-211-0/+1
| | | | | take it off of the busy queue first. This should fix the 'command is on another queue' panic that showed up recently.
* Do not test if pDCB is not NULL, we dereference it before anyway, and itcognet2004-02-201-3/+2
| | | | | | | should not happen. Add a KASSERT instead. Reported by: Ted Unangst <tedu@coverity.com> Spotted out by: cperciva
* Fix a glitch in my last commit and revert to using selwakeupprimatk2004-02-201-1/+1
| | | | | Noticed by: tanimura Noticed by: truckman
* Make uscanner recognise EPSON Perfection 3200. Tested with xsane.wilko2004-02-191-0/+1
| | | | | PR: kern/63041 MFC after: 3 days
* Add EPSON Perfection 3200 scanner.wilko2004-02-192-2/+9
|
* Add EPSON Perfection 3200 scannerwilko2004-02-191-0/+1
|
* Use ACPI_NEXT_RESOURCE instead of defining our own copy. The one providednjl2004-02-192-5/+3
| | | | with ACPI-CA is identical now.
* Do not remove the fixed handlers. Several systems (e.g., ASUS) onlynjl2004-02-191-11/+5
| | | | | | return events on the fixed handler even after defining a duplicate in the AML. While this violates the spec, hopefully we can get by with leaving both installed.
* Fix problem caused by previous commit where some users' buttonsnjl2004-02-192-11/+2
| | | | | | | stopped returning events. Don't disable the event when removing the handler because it still needs to be enabled for the other handler. Also, remove duplicate AcpiEnableEvent calls since the install function now does this for us.
* Fix a long-standing bug where select on vchans doesn't workmatk2004-02-191-3/+13
| | | | | | (never wake up) by iterating over them when they exist. Approved by: tanimura (mentor)
* Change the disk(9) API in order to make device removal more robust.phk2004-02-1821-171/+206
| | | | | | | | | | | | | | | | | | | | | | | | Previously the "struct disk" were owned by the device driver and this gave us problems when the device disappared and the users of that device were not immediately disappearing. Now the struct disk is allocate with a new call, disk_alloc() and owned by geom_disk and just abandonned by the device driver when disk_create() is called. Unfortunately, this results in a ton of "s/\./->/" changes to device drivers. Since I'm doing the sweep anyway, a couple of other API improvements have been carried out at the same time: The Giant awareness flag has been flipped from DISKFLAG_NOGIANT to DISKFLAG_NEEDSGIANT A version number have been added to disk_create() so that we can detect, report and ignore binary drivers with old ABI in the future. Manual page update to follow shortly.
* Dont use the bio_taskqueue if we are in timeout.sos2004-02-171-2/+2
| | | | | Use taskqueue_thread rather than taskqueue_swi (maybe we should have a taskqueue_ata).
* Remove some more 'makedev' related macros.le2004-02-161-10/+0
| | | | Approved by: grog (mentor)
* We aren't D_TAPE. We aren't anything. The reasons why this was ever setmjacob2004-02-161-1/+0
| | | | at all is lost in the mists of time.
* - Clean up global data.simokawa2004-02-163-38/+58
| | | | | | - Force dcons to be the high-level console after dcons_crom has been attached. - Add a tunable to be the high-level console.
* Workaround some ACPI BIOSen which break the IO port into multiplenjl2004-02-151-1/+35
| | | | | | | | | | | | | resources. (Note that the correct range is 0x3f7,0x3f0-0x3f5.) Such devices will be detected as follows: fdc0: <Enhanced floppy controller (i82077, NE72065 or clone)> port 0x3f7,0x3f4-0x3f5,0x3f2-0x3f3,0x3f0-0x3f1 irq 6 drq 2 on acpi0 To do this, we find the minimum and maximum start addresses for the resources and use them as the base for the IO and control ports. Help from: jhb
* This is not a D_TTY driver.phk2004-02-151-1/+0
|
* Remove the static major assignment for iir(4).scottl2004-02-142-6/+1
| | | | Submitted by: phk (partially)
* Remove the static major assignment for ips(4).scottl2004-02-141-2/+0
| | | | Submitted by: phk, inspired by others.
* Fixing copyright and adding vendor cvs id.rik2004-02-141-1/+2
| | | | Approved by: imp (mentor)
OpenPOWER on IntegriCloud