| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
verbose mode on at boot time.
|
|
|
|
|
|
| |
not defined.
To make previous default behavior (ACPI_MAX_THREADS undefined), define
option ACPI_MAX_THREADS as 0.
|
| |
|
|
|
|
| |
of slots (10).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Reported by: Michael G. Petry <petry@NetMasters.Com>
|
|
|
|
|
| |
Submitted by: marius@alchemy.franken.de
MFC after: 1 week
|
|
|
|
| |
Spotted-by: bde
|
|
|
|
| |
Document same.
|
|
|
|
| |
CISS_DEBUG case by appropriately using %z and %j.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
o replace EPIC_MGETCLUSER with m_getcl
MFC after: 1 week
|
|
|
|
|
| |
Tested on: alpha
Reported by: marcel (on an ia64)
|
|
|
|
|
|
| |
EcWaitEventIntr()'s behavior.
Some EC controllers require this for working properly (including
sleep/wakeup).
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
compilant. Split two pieces if code into separate functions to do not
exceed line length due to indentation.
|
|
|
|
| |
Sponsored by: DARPA & NAI Labs
|
|
|
|
| |
- Improve warning message.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 %jd rather than %lld.
|
|
|
|
| |
Spotted by: FlexeLint
|
|
|
|
| |
to wrong location in RxBuf and written from wrong location in TxBuf.
|
|
|
|
| |
Approved by: scottl
|
|
|
|
| |
Spotted by: FlexeLint
|
|
|
|
|
|
| |
world. This should be considered highly experimental.
Approved-by: re
|
|
|
|
| |
Approved by: obrien
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
via ioctl()s. This was ported from NetBSD and adapted a bit to better
match our OpenFirmware support code.
|
|
|
|
| |
userland (to get the typedefs).
|
|
|
|
|
| |
Submitted by: SAWADA Hodaka <hoda@tail.gr.jp>
MFC after: 1 day
|
|
|
|
|
| |
PR: 40486
Submitted by: Jilles Tjoelker <jilles+fbsd-bugs@stack.nl>
|
|
|
|
|
| |
the previous commit by initializing i and j. These initializations
will normally be eliminated by the compiler.
|
| |
|
|
|
|
|
|
| |
4-stable systems.
Sponsored by: The Weather Channel
|