summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* 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)
* Fixing memory deallocationrik2004-02-141-13/+25
|
* Use standard style for cdevsw initialization.phk2004-02-141-2/+2
|
* Use standard style for cdevsw initializtionphk2004-02-141-9/+9
|
* Use same style for cdevsw as the rest of our drivers.phk2004-02-141-5/+5
|
* This is not a D_TTY driver.phk2004-02-141-1/+1
|
* Try again to get rid of makedev().phk2004-02-141-5/+9
|
* Test the return value of UART_PARAM(). Invalid line parameters did notmarcel2004-02-141-1/+2
| | | | | | | result in an error before. PR: kern/60284 Submitted by: Thomas Sandford <freebsduser@paradisegreen.co.uk>
* Fix hw.acpi.os_name by renaming it to hw.acpi.osname. The "_name" suffixnjl2004-02-141-7/+5
| | | | | | | | | | is reserved by the loader, and thus any tunable name with that suffix will be silently discarded. Document this in the header and man page so that other developers do not develop so many bumps on the head after banging it against the wall. Detective work by: Mark Santcroos, grehan
* Back out my last commit to syscons, things seem to be far more evilphk2004-02-131-9/+5
| | | | | | | | than suspected. and obviously nobody runs the patches I post to -current :-( Poul-Henning
* Don't use makedev() to hack up dev_t's early in boot, do it rightphk2004-02-121-5/+9
| | | | with make_dev() (and avoid doing it again later).
* Use the PCIR_BAR() macro rather than a magic number to specify the BARjhb2004-02-121-1/+1
| | | | for controller memory.
* Correct the cleanup of the alias dev_t for /dev/urandom: being anphk2004-02-121-3/+1
| | | | | | | alias it depends on the aliased dev_t and disappears automatically when that is removed. Submitted by: "Bjoern A. Zeeb" <bzeeb+freebsd@zabbadoz.net>
* Fix a whitespace nit.jhb2004-02-121-1/+1
|
* Add yet more bulletproofing. This is to guard against the case thatwpaul2004-02-111-2/+3
| | | | | ndis_init_nic() works one during attach, but fails later. Many things will blow up if ndis_init_nic() fails and we aren't careful.
* (atapi_cb): Reenable automatic retrieve of sense data on error, makingthomas2004-02-111-14/+21
| | | | | | | it asynchronous to avoid incorrect use of ata_atapicmd within an ATAPI callback. Tested by: harti
* Prefer buttons defined in the AML over the ones in the FADT. Somenjl2004-02-113-24/+42
| | | | | | | | | | | | | | systems define power/sleep buttons in both places but only deliver notifies to the ones defined in the AML. Also, reduce length of various function handler names. PR: Submitted by: Reviewed by: Approved by: Obtained from: MFC after:
* Only reset the phy when it is absolutely required.pdeuskar2004-02-103-59/+113
| | | | | | | This should fix the issues with long *init* times when you do ifconfig em0 alias. MFC after: 3 days
* Fall back to INTR_MPSAFE if INTR_FAST registration fails.scottl2004-02-091-2/+8
| | | | PR: kern/62276
* Remove condition variables and status associated with target modemjacob2004-02-081-246/+169
| | | | | | | | enabling. Instead, go to an interrupt/polled model. Fix get_lun_statep so we don't panic if there are no wildcard luns enabled. MFC after: 6 days
* Remove condition variables and status associated with target modemjacob2004-02-081-6/+2
| | | | | | enabling. Instead, go to an interrupt/polled model. MFC after: 6 days
* Allow amr(4) to get a dynamic major number instead of a static one.scottl2004-02-081-3/+0
| | | | Submitted by: Andre Guibert de Bruet
* Don't free ressources that haven't been allocated. This should fixle2004-02-081-2/+9
| | | | | | | | | | the "disappearing subdisks" problem when new subdisks can't be created due to some errors. This is in fact an ugly hack, but a more elegant solution would probably require a redesign of vinum in several places. Approved by: joerg (mentor)
* Don't hold NDIS_LOCK() around call to ndis_getstate_80211() since itwpaul2004-02-071-0/+2
| | | | may block on ndis_get_info().
* Remove the use of AACQ_COMPLETE here since there is no longer a completionscottl2004-02-071-3/+0
| | | | queue.
OpenPOWER on IntegriCloud