summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Add status initialization code for acpi_cmbat and acpi_acad,iwasaki2002-11-032-7/+120
| | | | | | | | acpi_cmbat_init_battery() and acpi_cmbat_init_acline() respectively. Call acpi_cmbat_init_battery() from acpi_cmbat_resume() too just in case. This is a workaround for embedded controller operations which is unstable for about a minute (typically 30 or 40 sec.) at boot time.
* MFp4:imp2002-11-024-49/+38
| | | | | | | | | | | | | | | o Always release the resources on device detach. o Attach resources the same with driver added as we do we do in the insert case (maybe this should be a routine). o signal the wakeup of the thread on resume instead of trying to force an interrupt. o Minor debug hacks. o use 0xffffffff instead of -1 for uint32_t items. o Don't complain when we're asked to detach no cards. This is normal. o Eliminate the now worthless second parameter to card_detach_card. o minor style(9)isms Some of these patches may be from: iwasaki-san, jhb, iadowse
* Merge PC98 changes.mdodd2002-11-021-30/+60
|
* Specify the correct protocol for the Olympus C-1 camera. It appearsiedowse2002-11-011-1/+1
| | | | | | | | that this entry was accidentally given the wrong protocol in revision 1.61. PR: kern/42417 Submitted by: "Moriki, Toshiomi" <toshiomi@whi.m-net.ne.jp>
* Don't examine ACPI_STA_ENABLE bit of device's_STA object on initialiwasaki2002-10-311-5/+4
| | | | | | | | | | state. Instead, use ACPI_STA_PRESENT and ACPI_STA_FUNCTIONAL for it. In some ACPI BIOS implementations, boot disabled devices don't have ACPI_STA_ENABLE bit in _STA object. Also it is not fatal if getting current IRQ of boot disabled devices is failed in initial state. And minor fixes.
* Interpret new loader tunable "hw.acpi.verbose" to turniwasaki2002-10-311-2/+6
| | | | verbose mode on at boot time.
* Invoke 3 ACPI task threads as default if option ACPI_MAX_THREADS isiwasaki2002-10-313-6/+9
| | | | | | not defined. To make previous default behavior (ACPI_MAX_THREADS undefined), define option ACPI_MAX_THREADS as 0.
* Incorrect typecast.emoore2002-10-311-1/+1
|
* Add tunable "hw.eisa_slots" to allow overriding the default numberpeter2002-10-311-0/+1
| | | | of slots (10).
* amr.c,emoore2002-10-309-72/+473
| | | | | | | | | | | | | | | | | | | amr_cam.c, amrreg.h, amrvar.h: - added support for 12/16 byte cdb's, effecting CAM branch only ( non-disk support ) amrreg.h: - increased number of scatter gather elements from 16 to 26. amr_pci.c: - amr_pci_free(), incorrect bus tag meant for 'amr_mailbox_dmat' was being freed all: - copyright change requested by scottl Reviewed by: ps,scottl MFC after: 1 week
* Save and restore the interrupt Edge/Level Control Registers (ELCR)iedowse2002-10-301-5/+88
| | | | | | | | | | | across system suspends on the Intel 82371AB PCI-ISA bridge. On a Sony Vaio C1XD that I have, these registers are not set correctly after an ACPI resume. The result is that after resuming, a shared IRQ is left in edge-triggered mode so the interrupt can later become jammed in a state where the line remains asserted, but the handler is never called. Reviewed by: jhb
* Revision 1.136 introduced two features that may cause undefinediedowse2002-10-301-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | behaviour of the hardware: a possibly reserved bit of the receive descriptor (RFA) `status' field is borrowed to record no-resource (RNR) events, and the same status field is read and written to at a time that may clash with the hardware updating this field. There is no hardware documentation available to determine if these things are safe to do; the second issue almost certainly isn't, and the first is only safe if there is documentation saying that this bit is free to be used by the driver. The PR referenced below provides extremely convincing evidence that the changes cause random crashes on some (unusual) hardware. Since these features are only required by the DEVICE_POLLING case, this commit makes their use conditional on that option. It does not change the DEVICE_POLLING case, but at least people with the rare hardware on which this code causes problems can now avoid the crashes by not enabling DEVICE_POLLING. PR: kern/42260 Reviewed by: luigi Problem revision found by: Pawel Malachowski <pawmal@unia.3lo.lublin.pl> Tested by: Pawel Malachowski <pawmal@unia.3lo.lublin.pl> MFC after: 1 week
* Check for errors and zero-length transfers in the ulpt_input() inputiedowse2002-10-301-0/+6
| | | | | | | pipe callback function, and just return if these cases are detected. Without these checks, the ulpt driver may cause an infinite loop of failing USB transfers that can hang the whole machine. This makes printing work for me on a HP DJ950C printer.
* Add a missing newline to the end of a device_printf().jhb2002-10-291-1/+1
| | | | Reported by: Michael G. Petry <petry@NetMasters.Com>
* Remove unnecessary <sys/malloc.h> include.semenu2002-10-298-8/+0
| | | | | Submitted by: marius@alchemy.franken.de MFC after: 1 week
* Reduce namespace pollution to userland.scottl2002-10-281-0/+2
| | | | Spotted-by: bde
* Handle hints for the atspeaker device.mdodd2002-10-281-1/+25
| | | | Document same.
* Fix a bunch of warnings on 64 bit platforms in themux2002-10-272-4/+5
| | | | CISS_DEBUG case by appropriately using %z and %j.
* Fix a warning when CISS_DEBUG is defined.mux2002-10-271-1/+1
|
* Add a missing destroy_dev().mux2002-10-261-0/+2
|
* Call bpf_mtap() on outgoing packets.tmm2002-10-261-3/+6
|
* o m_adj rx buffer so IP header is 32-bit alignedsam2002-10-252-18/+21
| | | | | | o replace EPIC_MGETCLUSER with m_getcl MFC after: 1 week
* Cast si_drv2 to intptr_t instead of int to quiet warnings.jhb2002-10-251-1/+1
| | | | | Tested on: alpha Reported by: marcel (on an ia64)
* Add new loader tunable hw.acpi.ec.event_driven so that we controliwasaki2002-10-241-1/+4
| | | | | | EcWaitEventIntr()'s behavior. Some EC controllers require this for working properly (including sleep/wakeup).
* - New-bussify the rc(4) device driver.jhb2002-10-232-481/+610
| | | | | | | | | | | | - Add detach support to the driver so that you can kldunload the module. Note that currently rc_detach() fails to detach a unit if any of its child devices are open, thus a kldunload will fail if any of the tty devices are currently open. - sys/i386/isa/ic/cd180.h was moved to sys/dev/ic/cd180.h as part of this change. Requested by: rwatson Tested by: rwatson
* - Dequeue OCBs more safely in sbp_abort_all_ocbs().simokawa2002-10-231-15/+24
|
* Very minor whitespace/style nit.markm2002-10-231-2/+1
|
* Fill in missing parts of the ATAPI/CAM XPT: implement XPT_RESET_BUSthomas2002-10-223-26/+52
| | | | | | | | | | | | | | and XPT_RESET_DEV. In order to properly handle reset requests whether they originate in the ATA layer (atacontrol reinit) or from the CAM layer (camcontrol reset) ata_reinit does not cause the SIM to be deallocated anymore. The SIM is now unconditionnally created for each ATAPI bus. This change may cause existing bus ids to change on some setups. Reviewed by: roberto Approved by: sos
* Remove the OpenBSD comatibility stuff. Many changes to be more style(9)semenu2002-10-223-621/+355
| | | | | compilant. Split two pieces if code into separate functions to do not exceed line length due to indentation.
* We want /dev/md0 for ramdisk roots, not /dev/md0c.phk2002-10-211-1/+1
| | | | Sponsored by: DARPA & NAI Labs
* - Abort all OCBs for timeout.simokawa2002-10-211-5/+14
| | | | - Improve warning message.
* fix prototype of asyreqq().simokawa2002-10-211-2/+3
|
* These (userland) files shouldn't be here.simokawa2002-10-212-675/+0
|
* Do not try to work around ``poor (un)sign extension code''robert2002-10-201-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | creation by GCC-2.6.3. Casting pointers to unsigned char to volatile pointers to unsigned char seemed to produce better results on the ia32 architecture with old versions of GCC. The current FreeBSD system compiler GCC-3.2.1 emits better sign extension code for non-volatile variables: volatile char c; int i = c; is compiled to: ... movb -1(%ebp), %al movbsl %al, %eax movl %eax, -8(%ebp) ... char c; int i = c; is compiled to: ... movbsl -1(%ebp), %eax movl %eax, -8(%ebp) ... The same holds for zero-extension of dereferenced pointers to volatile unsigned char. When compiled on alpha or sparc64, the code produced for the two examples above does not differ.
* Use ENOSPC error return, not ENOMEM.phk2002-10-201-3/+5
| | | | Use %jd rather than %lld.
* '&' is not needed to pointerize functions.phk2002-10-201-2/+2
| | | | Spotted by: FlexeLint
* Fix data corruption caused by last byte in oddly sized transfers being readtegge2002-10-201-2/+3
| | | | to wrong location in RxBuf and written from wrong location in TxBuf.
* Fix mis-indentation.phk2002-10-201-15/+15
| | | | Approved by: scottl
* Fix mis-indentation.phk2002-10-201-1/+1
| | | | Spotted by: FlexeLint
* After much delay and anticipation, welcome RAIDFrame into the FreeBSDscottl2002-10-20134-0/+42340
| | | | | | world. This should be considered highly experimental. Approved-by: re
* Whitespace fixes per style(9)kan2002-10-191-11/+10
| | | | Approved by: obrien
* * Add CDRIOC{READ,WRITE}SPEED ioctls to cd(4). Units are in KB/sec.njl2002-10-181-2/+2
| | | | | | | | | | | | | | | * Change atapi-cd ioctls to use the same units. * Change burncd, cdcontrol to convert CDROM speed to KB/sec before calling the ioctl. Add a "max" speed option for their command lines. This change does not break ABI but does change the units passed through the ioctl so 3rd party software that uses cdrio.h will have to convert (most likely by multiplying CDROM speed by 177 to get KB/s). PR: kern/36845 Submitted by: Philipp Mergenthaler <p@i609a.hadiko.de> (CAM ioctls) Reviewed by: sos, ken MFC after: 1 month
* (1) added LSI Logic copyright, and legal line 3 in license, and stringemoore2002-10-189-71/+214
| | | | | | | | | | | | | | | | | | | | | changes for "LSILogic" (2) enabled non-disk support through CAM interface (3) HA_INQ (a) enabled tagged queuing (b) disable reset during driver loading (b) renamed BSDi string to LSI (4) disabled detecting disk devices during SCSI INQUIRY (5) changed dcdb single element sglist to send one entire buffer chunk (6) nsgelem not set in sglist (7) ap_data_transfer_length not set for dcdb (8) changed "struct thread" to "d_thread_t" for compatibliity { xxx_open, xxx_close, xxx_ioctl } (9) miscellaneous compatiblity fixes (10) bug fix for 0x0409/0x1000 card (11) added compiling amr_cam.c in sys/conf/files (12) added compiling amr_cam.c in sys/modules/amr/Makefile Reviewed by:ps MFC after:1 week 1 week
* Add a pseudo device which allows to access the OpenFirmware device treetmm2002-10-182-0/+389
| | | | | via ioctl()s. This was ported from NetBSD and adapted a bit to better match our OpenFirmware support code.
* Add an #ifdef _KERNEL to make it possible to include this file fromtmm2002-10-181-5/+7
| | | | userland (to get the typedefs).
* typo.nyan2002-10-181-4/+4
| | | | | Submitted by: SAWADA Hodaka <hoda@tail.gr.jp> MFC after: 1 day
* Make kqueue(2) work for virtual terminals.kbyanc2002-10-171-1/+2
| | | | | PR: 40486 Submitted by: Jilles Tjoelker <jilles+fbsd-bugs@stack.nl>
* Suppress the uninitialized variable warning on ia64 introduced bymarcel2002-10-171-0/+4
| | | | | the previous commit by initializing i and j. These initializations will normally be eliminated by the compiler.
* Whitespace.jhb2002-10-161-2/+2
|
* Catch up to changes in acpivar.h to add support for using ACPI onjhb2002-10-168-12/+23
| | | | | | 4-stable systems. Sponsored by: The Weather Channel
OpenPOWER on IntegriCloud