Commit Graph

25902 Commits

Author SHA1 Message Date
cegger
550de75c2f regen. 2009-10-13 10:46:05 +00:00
cegger
b7ebbeb62f AMD SB900 renamed to AMD HUDSON-2 2009-10-13 10:45:14 +00:00
wiz
2dfcea5de5 Add quirk for Meizu M6, which doesn't like synchronize cache;
addresses PR 40442.

Idea for quirk from FreeBSD/hps.
2009-10-12 23:43:05 +00:00
wiz
9ed0c95351 regen 2009-10-12 22:29:16 +00:00
wiz
79a9d356f7 Fix typo in comment. 2009-10-12 22:28:47 +00:00
wiz
b00fb4bb91 Add vendor and product ID for Meizu M6. 2009-10-12 22:28:15 +00:00
sborrill
6c11da0940 Add ioctls required by hdaudioctl. This involves some refactoring of the
hdaudio_afg ioctl code.
2009-10-11 08:50:11 +00:00
cegger
446b6b0dd3 Use m_pullup to handle defragmentation.
Reinject mbuf into TX queue when it couldn't be loaded.

diff for age(4) reviewed/discussed with plunky@ several weeks ago.
2009-10-08 08:57:19 +00:00
sborrill
88bbf990c2 Commit patch from PR#41926. Confirmed to work by PR submitter on two
controllers as well myself and another on viaide.

Stops errors such as the following when probing SATA drives through
controllers that offer the legacy pciide interface:
viaide1 channel 0: reset failed for drive 0

OK bouyer@
2009-10-06 13:45:01 +00:00
dyoung
0fabd75b6e It's a big job to write detachment hooks for pciide(4) and all of
its derivatives, and I haven't the time myself.  In struct
pciide_product_desc, provide a tiny bit of commented-out code to
guide an enterprising developer who takes on the immense task.
2009-10-05 20:03:47 +00:00
cegger
c4c0ae224e regen. 2009-10-05 12:53:37 +00:00
cegger
7ce1696dc4 add SB900 IDE/SATA ids 2009-10-05 12:52:03 +00:00
christos
28b2719313 Don't call usl_sync_check_sig from an interrupt context. Call it only if waitok.
Stack trace:	mutex_vector_enter <- usl_sync_check_sig <- usl_detachproc <-
		wsdisplay_switch <- wskbd_translate <- wskbd_input <-
		pckbd_input <- pckbcintr <- intr_biglock_wrapper <-
		Xintr_ioapic_edge1
Reported by Anon Ymous
2009-10-04 22:24:15 +00:00
jmcneill
92ddd35b74 from Jukka Ruohonen:
- Remove redundant assertions.
 - Properly check for NULL pointers.
 - No real need to keep track whether the internal event handler is installed.
 - Add a missing function to pass possible extra information associated with
   an event. Mentioned in the specification.
2009-10-03 15:49:21 +00:00
elad
0dd621a02d Move clockctl policy exception back to the subsystem. 2009-10-03 02:01:12 +00:00
jmcneill
23e8227b7c PR# kern/42139: ACPI WMI: new driver
Import acpiwmi(4) from Jukka Ruohonen. From the PR:

Attached is a driver that implements ACPI WMI API:

http://www.microsoft.com/whdc/system/pnppwr/wmi/wmi-acpi.mspx

The WMI is used to provide a generic interface for OEMs to use certain
platform/laptop-specific additions to the standard ACPI in a somewhat
portable way. These can be hotkeys for additional buttons, different event
handlers (wireless kill switch, lid switch, etc.), and so on. At least HP
and Acer use it by default nowadays.

The benefit of this interface would be portability. For an example, instead
of hpqlb(4) that works only with certain HP models, we could have a generic
HP WMI-driver that should work in theory across all HP laptops. On many new
laptops WMI may also be the only way to access laptop/manufacturer-specific
features.
2009-10-02 16:47:52 +00:00
nakayama
7028dabf59 Add lom(4) for sparc64. 2009-10-02 15:15:21 +00:00
pooka
2a1f8823f5 add another vid for fujitsu 2009-10-02 14:40:36 +00:00
uebayasi
411f51be75 Pass not (struct sdhc_pci_softc *) but (struct sdhc_softc *) to sdhc_intr().
No functional change because struct sdhc_pci_softc has struct sdhc_softc as
the 1st member.
2009-10-02 04:38:47 +00:00
uebayasi
384f20ea46 Typo in comment. 2009-10-02 04:33:58 +00:00
jmmv
b478d8712d Recognize PCI_PRODUCT_ATI_RAGEGLPCI. Works on a PowerMac G3 B&W running
NetBSD/macppc.
2009-10-01 19:02:27 +00:00
jmcneill
6c62f91733 Initial import of an SD/MMC driver for the Winbond W83L518D (and probably
W83L519D) Integrated Media Reader with PNP bus attachment glue.
2009-09-30 20:44:49 +00:00
njoly
33042a7b04 Be robust against an invalid timer period value. 2009-09-30 15:22:11 +00:00
jmcneill
5be9fd621d If the driver thinks a battery is not present, poll for present status.
Workaround for firmware that doesn't report battery present status
immediately at boot and doesn't issue a subsequent notify when the
information becomes available.
2009-09-29 21:41:38 +00:00
sborrill
21e3c4b6e7 Add support for playback- or capture-only devices by adding
AUDIO_PROP_PLAYBACK and AUDIO_PROP_CAPTURE properties.

From jmcneill@.

Fixes PR#42050
2009-09-29 15:58:54 +00:00
cegger
24b93ceb8b use aprint_* in attach routines 2009-09-29 11:01:39 +00:00
pooka
7c544ae12a Attach DWA-111.
XXX: Adapter seems to be generally functional, but at least on -nb5
WPA didn't work very well (managed to get authenticated and sometimes
an address via dhcp, but that's it).  I can't currently test non-wpa
networks, so don't know if it's an issue only with wpa or with the
connectivity in general.
2009-09-28 10:22:07 +00:00
pooka
e7c7b79434 regen 2009-09-28 10:18:04 +00:00
pooka
2b68978a91 +DWA-111 2009-09-28 10:16:30 +00:00
jakllsch
bd5cb77445 gpio(4) support for Intel ICH southbridges.
Tested on Intel SS4200-E (ICH7), and Acorp 6A815EPD (ICH2) motherboards,
on amd64 and i386 ports respectively.

It should be noted that the majority of boards with ICH chips do not
expose the GPIO pins for off-board use.  For instance, aside from the
three exposed-on-a-header pins on the 6A815EPD, another pin is also
used to control write protect on the FWH.  The SS4200 exposes the GPIO
on a header that connects to the 10 LEDs on the front panel, as well
as a tact switch on the back panel.
2009-09-27 17:55:31 +00:00
jmcneill
d3bc4066df regen for PNP0C14 2009-09-27 14:11:58 +00:00
jmcneill
cc62b1fb8e Add PNP0C14 (WMI mapper device) 2009-09-27 14:11:07 +00:00
tsutsui
41bab1588b Replace shutdownhook_establish(9) with pmf_device_register1(9).
Compile test only.
2009-09-27 12:52:59 +00:00
tsutsui
0719ca07be Replace shutdownhook_establish(9) with pmf_device_register1(9).
Compile test only.
2009-09-27 10:00:11 +00:00
jmcneill
cdd2b39863 ensure that hp sensing is stopped on suspend, and restarted on resume if required. 2009-09-27 02:36:38 +00:00
jmcneill
2db390373f add suspend/resume support 2009-09-26 19:58:53 +00:00
snj
70285b633c "Intel High Definition Audio" -> "High Definition Audio" 2009-09-26 19:43:04 +00:00
jakllsch
a34f7e7b8b As, siisata attaches not just at pci, but for a while now, also at cardbus,
move siisata core driver config to the propper config file.
2009-09-26 19:01:04 +00:00
jmcneill
ee4fa0feb6 Add PCI_PRODUCT_VIATECH_VT8237A_SATA_2 to list of product IDs. 2009-09-26 18:15:52 +00:00
jmcneill
d62c10993d PR# kern/42110: No mute control on hdaudio(4)
PR# kern/42028: hdaudio: mplayer can't change volume

Since the driver is not limited to OSS mixer APIs, allow for duplicate
mixer nodes with the same role. Resolves a regression where certain
controls may no longer be available that were previously possible with
azalia(4). Part of a fix for 42028. While here, add .mute controls to
address 42110.
2009-09-26 17:05:01 +00:00
tsutsui
a6b618f221 Split device_t/softc. Tested on aic7901A. 2009-09-26 14:44:10 +00:00
jmcneill
f41110c95f Implement and enable headphone sensing. Slightly different from the FreeBSD
implementation in that this code does not care if the headphones are seq=15.
Instead, for each association, find any HP pins with jack sense capabilities
and if at least one has the Presense Detect bit set, enable output on all
PWCs of type HP_OUT and disable output on all PWCs of type LINE_OUT, SPEAKER,
or AUX. Do the reverse if no HP pins have the Presense Detect bit set.
2009-09-26 11:51:29 +00:00
dyoung
5fe0eded9b Use deviter_first()/deviter_next() instead of accessing alldevs
directly.  Compile-tested, only.
2009-09-25 20:26:26 +00:00
sborrill
4ecc81dbe8 If the codec does not specify any supported sample size or rates,
assume it supports 16-bit. This can be overridden completely by the widgets, so
some vendors don't specify a setting at the codec level. Fixes a panic in
this situation.
2009-09-25 19:49:31 +00:00
pooka
86e98a0103 Add a simple kvm integer toggle to control ugen priority and override
the autoconf flags value.  This helps to change the priority at
runtime.  (XXX: is there a better way to do this?)
2009-09-24 22:33:04 +00:00
sborrill
eecdf6949e Revert previous and instead select whether to call mixer_ioctl() or
audio_ioctl() based on whether the command smells like a mixer ioctl or not.
2009-09-24 16:03:11 +00:00
pooka
2cb5577c50 ugen_get_cdesc() can return NULL. When this happens, return the
karmic EINVAL error instead of crashing.
2009-09-24 15:36:59 +00:00
sborrill
48666a05d3 OSS audio allows mixer operations on the dsp device. NetBSD would return
EINVAL in these circumstances. This can break audio in apps running under
Linux emulation (e.g. Citrix ICA client will mute all audio when volume
control used). Therefore, pass unrecognised ioctls attempted on dsp devices
to mixer_ioctl.
2009-09-24 11:13:38 +00:00
plunky
5fab894c54 fix up USB drivers printing of autoconf information
1. expand the USB_ATTACH_SETUP macro (requested by jmcneill)

2. reorder the attach function so that the first thing it does is print
   newlines.

3. after this, we can call usbd_devinfo_alloc(), which polls the device
   allowing a context switch, and aprint_normal() the device information.

this avoids problems where autoconf messages are getting mixed up.
2009-09-23 19:07:19 +00:00
tsutsui
df90eec26b Make local functions static. 2009-09-22 16:44:08 +00:00