Commit Graph

23118 Commits

Author SHA1 Message Date
jmcneill
bf34549b28 Only toggle bluetooth when the wireless button is pressed, simplifies
things and it seems I forgot that my laptop has a separate wifi switch.
2007-12-22 03:19:29 +00:00
dyoung
b558d4b56c Remove the remnants of the powerhooks. 2007-12-22 00:41:01 +00:00
dyoung
356cc80ff6 It makes practically no functional difference, but add curly braces
where they were intended.
2007-12-22 00:39:47 +00:00
jmcneill
4ec3c2b1cd Add support for the WLAN / Bluetooth switch. 2007-12-21 22:14:03 +00:00
xtraeme
6d771ab8b4 Register a pmf(9) power handler... ok jmcneill@. 2007-12-21 21:52:10 +00:00
jmcneill
aa518c7bc8 Hook Thinkpad temperature sensors into envsys:
$ envstat -d thinkpad0
TMP0:     46.000 degC
TMP1:     39.000 degC
TMP2:     32.000 degC
TMP3:        N/A
TMP4:     50.000 degC
TMP5:        N/A
TMP6:     29.000 degC
TMP7:        N/A
2007-12-21 21:24:45 +00:00
jmcneill
f5210660c0 Add acpiec_bus_{read,write} and acpiec_get_handle, for use in other
device drivers.
2007-12-21 21:22:54 +00:00
jmcneill
c48902ebaf Handle notifications in a separate thread, and ensure that the BIOS doesn't
try to play trick with us when we are trying to manage the brightness
keys.
2007-12-21 18:43:39 +00:00
jmcneill
ef8922785d Convert AcpiOsSleep from using tsleep to cv_timedwait_sig 2007-12-21 18:42:38 +00:00
dyoung
eafb0f479a Initialize and destroy the ATH_LOCK. 2007-12-21 18:26:13 +00:00
dyoung
1d18d8049c Do not embed a struct device in rtw_softc any longer. Register
both pci and cardbus attachments with CFATTACH_DECL_NEW().  Access
the softc through the device_t using device_private().

While I'm here, change a couple of KASSERT()s about the Rx buffer
length to a warning.
2007-12-21 18:22:43 +00:00
jmcneill
eedb1a1f01 Typo in previous. 2007-12-21 16:38:59 +00:00
jmcneill
ea50d249d2 Handle key repeat, and only match if MHKV returns an HKEY version we have
a chance of supporting.
2007-12-21 16:38:02 +00:00
jmcneill
5b0f734d51 Add Thinkpad ACPI driver, for controlling hotkeys and display brightness. 2007-12-21 15:15:19 +00:00
ad
7162fade9b Use new style memory barriers. 2007-12-21 10:40:12 +00:00
macallan
48d017a9d1 only enable the fb mapping at offset 0 after attempting to mmap page 0
This way we avoid a conflict with PCI resources on some Sun graphics cards
which have firmware that likes to put memory resources at low addresses.
For instance, if we have 1MB framebuffer and registers at 0x30000 we'll
get the registers when mmap()ing 0x30000 until someone tries to mmap(0),
then we'll get framebuffer memory for the entire 1st MB.
This needs an ioctl() to switch between fb-at-0 and PCI ranges.
2007-12-21 05:32:09 +00:00
xtraeme
8870106a7d Do not append the device name into the sensor's description, that's
useless and redundant.
2007-12-21 01:23:41 +00:00
phx
d2a9b2ff83 VT8231 IDE workaround for native mode with "compatibility" interrupts 14/15.
This time done right by calling pciide_machdep_compat_intr_establish() to
get a MD interrupt handler.
Verified that it compiles for XEN again.
2007-12-20 22:24:40 +00:00
ad
8134491688 Use new style memory barriers. 2007-12-20 21:09:00 +00:00
dyoung
6f3852fab4 Constify struct ifnet->if_sadl and every use throughout the tree.
Add if_set_sadl() that both sets the link-layer address length and
replaces the current link-layer address with a new one, and use it
throughout the tree.
2007-12-20 21:08:17 +00:00
dyoung
9f5c1f09f7 Use LIST_FOREACH(). 2007-12-20 20:48:24 +00:00
pooka
ce8249d73f Don't allocate DEV_BSIZE from the stack, use kmem instead. 2007-12-20 20:12:01 +00:00
dyoung
241d11997f Remove shutdown hooks. Use KASSERT(). 2007-12-20 18:47:23 +00:00
dyoung
f2a1e06d0a Use __arraycount(). 2007-12-20 18:45:32 +00:00
joerg
bc8d3e534e It seems like ACPICA can't deal with GPEs being handled before the GPE
handler is called, so clear the GPE bit in the callout as well.
This fixes the EC issues on T42 models.
2007-12-19 20:48:56 +00:00
riz
0673bc57e4 Add disk-info properties to vnd(4), for use by userland tools
such as gpt(8).
2007-12-18 23:22:18 +00:00
joerg
0adaef6553 Restore suspend handler. Put the disc into standby on suspend and for
powerdown, but not for normal halt or reboot or panic. Fixes PR 37508.
2007-12-18 15:30:40 +00:00
oster
257eb7f26a Fix a 'use after free' issue with wedges and RAIDframe.
Problem reported and fix tested by Jeff Rizzo (Thanks!).
2007-12-18 01:09:46 +00:00
phx
86c26b70d7 xen did no longer build.
Temporarily reverted to 1.47. Will need some time to find a good solution.
2007-12-17 22:01:12 +00:00
christos
6d8587f061 from jmcneill: suspend and resume handlers for spic. 2007-12-17 19:51:09 +00:00
macallan
852515ae5f deal with a bug in the Sun Raptor's firmware which reports
linebytes == width even in 32bit colour
2007-12-17 15:38:31 +00:00
jmcneill
dd0320ef8b Fix comment before AcpiOsGetTimer, no functional change. 2007-12-17 15:02:31 +00:00
tsutsui
4e3d8b015c Handle a quirk of newer MCP6x chips on reading MAC address.
Fix from Richy Kim in PR kern/36576.
2007-12-17 12:41:06 +00:00
tsutsui
8cdfb3fc02 Fix from YAMAGUCHI Takahiro in PR kern/30023:
Pass correct EEPROM address in fxp_write_eeprom().
2007-12-17 12:18:31 +00:00
jmcneill
f13c9086d0 acpi_pci_link_route_interrupt: if we're going to return a valid IRQ, we
need to fill in irq, pol, and trig arguments.
2007-12-16 23:11:08 +00:00
dyoung
48b8e42d80 Fix a bug I introduced to rtw_chan2txpower() the other night.
Fix a bug in device detachment: change a break statement to a
/*FALLTHROUGH*/ in rtw_detach().
2007-12-16 21:39:33 +00:00
dyoung
cf784f4497 Improve pci, cbb, cardslot, cardbus, and pcmcia to support detachment
of this entire device tree:

pci0 at mainbus0
        elansc0 at pci0
                gpio0 at elansc0
        cbb0 at pci0
                cardslot0 at cbb0
                        cardbus0 at cardslot0
                        pcmcia0 at cardslot0
        cbb1 at pci0
                cardslot1 at cbb1
                        cardbus1 at cardslot1
                                rtw0 at cardbus1
                        pcmcia1 at cardslot1
        sip0 at pci0
                nsphyter0 at sip0
        sip1 at pci0
                nsphyter1 at sip1

Whew!
2007-12-16 21:28:30 +00:00
dyoung
84e05249e0 Collect garbage. All of this code is in pci/if_sip.c, now. 2007-12-16 21:17:44 +00:00
dyoung
59b1a7d60b Convert many macros to inline subroutines. Some of the subroutines
probably should not be inline.
2007-12-16 21:17:00 +00:00
jmcneill
a73b778622 Now that ACPI-CA doesn't parse the X/RSDT for us, we need to map it
ourselves.

Before:
  acpi0: X/RSDT: OemId <      ,        ,00000000>, AslId <    ,00000000>
After:
  acpi0: X/RSDT: OemId <LENOVO,TP-7L   ,00001260>, AslId < LTP,00000000>

ACPI can now access the X/RSDT using 'acpi_map_rsdt' and 'acpi_unmap_rsdt'.
2007-12-16 21:10:34 +00:00
dyoung
10bb018ab2 In sysmon_wdog_unregister(), do not return until all of the watchdog
timer's users are gone.  A signal cancels the unregister:
sysmon_wdog_unregister() leaves the watchdog registered.

The only user of sysmon_wdog_unregister() that I can find is in
elansc(4), so this looks like a safe change to make.
2007-12-16 21:07:45 +00:00
christos
f54e064ee9 add null pmf handlers. 2007-12-16 19:01:35 +00:00
phx
c6d327a8be At least under certain (mis)configurations (e.g. on the "Pegasos" board)
the VT8231-IDE's native mode only works with irq 14/15, and cannot be
programmed to use a single native PCI irq alone. So we install an interrupt
handler for each channel, as in compatibility mode.
This behaviour has to be activated by the "use-compat-native-irq" property,
otherwise the driver works as before.
2007-12-16 16:41:01 +00:00
he
5ccc78e887 Remove a local variable which is no longer used. 2007-12-16 14:21:43 +00:00
dyoung
058d9b982e Synchronize device detachment with network interrupts. Use the
pmf network class instead of powerhooks.
2007-12-16 00:04:07 +00:00
dyoung
868758b808 In ath_pci_detach(), unmap bus memory. 2007-12-15 23:56:54 +00:00
dyoung
fca36f8a1a sip_copy_small and gsip_copy_small should not be static any longer.
Make it so.
2007-12-15 23:04:57 +00:00
he
2ffc7d4a2b Only declare sip_copy_small under __NO_STRICT_ALIGNMENT, to afoid
a "defined but not used" warning turned into error by compiler options.
2007-12-15 21:51:45 +00:00
tsutsui
61126beefc Rename a device property name: "override_ultra" -> "aic7xxx-override-ultra" 2007-12-15 14:23:14 +00:00
mjf
e3aec4fc22 Regen. 2007-12-15 12:51:59 +00:00