Commit Graph

22788 Commits

Author SHA1 Message Date
ad afc64ea58c Use the softint_* API. 2007-11-06 21:51:07 +00:00
ad 3b271ff768 Merge from vmlocking. 2007-11-06 18:02:43 +00:00
kiyohara 2575726a88 The argument of *_intr_establish() is changed to fwohci_flit.
Our ieee1394 coordinates from FreeBSD implementation.
Add fwohci_pci_shutdown() and fwohci_pci_power().
Move __KERNEL_RCSID to ahead.
2007-11-06 15:24:10 +00:00
dogcow 99f2863e95 on NetBSD, cardbus_intr_establish's fifth arg's is a symbol which returns
an int, not a void; change fwohci_intr accordingly.
2007-11-06 12:32:12 +00:00
dogcow 55d73ac843 callout_init has two args. 2007-11-06 12:30:42 +00:00
itohy 6d75b40284 - Reset the bus if a Bus Reset condition is detected to make sure
all devices on the bus are really reset.

- Block interrupts on Bus Reset, and check it periodically until the
  reset is released.  On some 32UDE devices (probably the earlier ones)
  the RST line looks unstable without the termination power and may
  suffer ~continuous Bus Reset interrupts.

- Change number of scatter/gather segments from 16 to 17, to allow
  non-page-aligned 64KB transfer on 4KB/page platforms.
2007-11-06 11:35:35 +00:00
uwe 8531d31a58 Use device_t and device_private(). Convert attach to use aprint_*. 2007-11-06 02:29:19 +00:00
uwe 58197290f3 Use aprint_* 2007-11-06 01:46:02 +00:00
uwe 2b2a00534e Add missing aprint_naive("\n"); in rlphyattach. 2007-11-06 00:58:32 +00:00
xtraeme f4046a2e1c Missed a struct device -> device_t, found by joerg. 2007-11-05 23:57:32 +00:00
kiyohara c33e2714c5 + Sync to FreeBSD.
firewire.c Rev.1.101
    firewire.h Rev.1.21
    firewirereg.h Rev.1.50
    fwdev.c Rev.1.52
    fwdma.c Rev.1.9
    fwmem.c Rev.1.34
    fwohci.c Rev.1.93
    fwohcireg.h Rev.1.23
    fwohcivar.h Rev.1.16
    if_fwip.c Rev.1.16
    if_fwipvar.h Rev.1.5
    sbp.c Rev.1.92
+ Cleanup macros in fw_port.h.
+ Fix the occurrence of the error at the resume.  Don't set the buffer again.
2007-11-05 19:08:56 +00:00
macallan f59f835fa4 don't panic if we're not finding all the properties we need. Just complain
quietly and return.
2007-11-05 16:57:46 +00:00
joerg 08de5799c0 Use the fallback to ACPI SCI as PCI interrupt only as a last resort
if no other entry could be used.
2007-11-05 10:30:44 +00:00
xtraeme 7cd6e1759b - Allocate the envsys_data_t structures dynamically, removing the
max limit.
- Use kmem(9) to allocate the memory.
2007-11-04 13:59:49 +00:00
xtraeme 64a549146f Follow plunky's changes:
- Use CFATTACH_DECL_NEW and remove struct device from the softc.
- Use aprint_*_dev().
- Use aiboost_refresh_sensors() for sme_gtredata.
2007-11-03 23:33:50 +00:00
xtraeme 4fbcc4c832 Remove sysmon_envsys_find() proto, it's defined on sysmon_envsysvar.h. 2007-11-03 23:25:20 +00:00
xtraeme 4e10a84855 - Rename ENVSYS_BATTERY_STATE units to ENVSYS_BATTERY_CAPACITY and
introduce ENVSYS_BATTERY_CHARGE, which is the same than an Indicator and
  it's used to know if the battery is currently charging or discharging.

- Require two sensors at least for SME_CLASS_BATTERY to make the low-power
  condition work: a ENVSYS_BATTERY_CAPACITY plus ENVSYS_BATTERY_CHARGE.

- Simplify sme_event_check_lowpower() and make it check the required
  sensors in the SME_CLASS_ACADAPTER and SME_CLASS_BATTERY classes.
  If the acadapter is not ready, trust the state returned by the battery
  device.

Based on suggestion from joerg@.
2007-11-03 23:05:21 +00:00
markd 7893af1639 Add support for Analog Devices AD1983 codec as found in Dell Optiplex 745. 2007-11-03 20:55:58 +00:00
plunky faccfc336c 'struct callout' => callout_t
don't use callout_reset()
do use callout_destroy()
2007-11-03 18:24:00 +00:00
plunky edb74239aa switch devices to using CFATTACH_DECL_NEW()
softc no longer contains 'struct device' by default
use 'device_t' instead of 'struct device *'
use device_xxx() accessor functions
remove casting of 'xxx_softc *' & 'struct device *'
use aprint_xxx_dev() routines
2007-11-03 17:41:03 +00:00
plunky 812fa1c5a1 do not embed acpi device names in the sensor names
fake it in the compat code for the old envsys API
2007-11-02 19:21:29 +00:00
xtraeme a8262a855b u_quad_t -> uint64_t as suggested by thorpej@. 2007-11-02 19:09:22 +00:00
xtraeme 7509a8c524 KNF, MALLOC -> malloc, u_intXX_t -> uintXX_t. 2007-11-02 08:38:37 +00:00
xtraeme eba879f813 Make bd_size and bv_size u_quad_t rather than size_t, for large RAID
volumes. Reported a while ago by mhitch@.
2007-11-02 08:37:06 +00:00
jnemeth 3837ebf32f PR/37259 - Daniel Neri -- typo in EXAR XR17C158 description 2007-11-01 18:18:37 +00:00
bjs d81bca762e Until I have a chance to further evaluate and re-work the locking here,
change from an adaptive to spin mutex @ IPL_TTY.  This seems to mitigate
or eliminate a lot of locking-related issues (such as a hang when running
glxgears under AIGLX).  Tested by me and Vincent <10.50@free.fr>.

In this code, we have three locks: irq, dma, and device.  If anyone has
any thoughts on how to improve this situation, e.g. by using different
lock types/priorities/soft interrupts/etc. for different locks, please
share them with me.

NOTE: I've had the best results thusfar using Mesa 7.0.2-rc1 (r300 users
could even try the r300 driver code from the master branch) and xorg-server
1.4+patches from GIT.
2007-11-01 13:20:04 +00:00
tsutsui a3bf2627a4 Fix some random LCD corruption on cobalt:
- make sure to set HD_ROW1_ADDR before putting characters at the first line
  in hd44780_ddram_redraw()
- use memmove(9) rather than bcopy(9) for possibly overlapped copies
2007-11-01 13:05:32 +00:00
oster ba0b8a3b17 Implement support for drvctl in RAIDframe. Thanks to jnemeth@ for
initial patch.
2007-11-01 04:11:22 +00:00
jnemeth a04503ddd4 PR/37251 - Brian Buhrow -- FORCE_LBA48 on seagate drives larger then 1TB 2007-10-31 09:51:20 +00:00
xtraeme decb1bb096 regen 2007-10-30 20:58:57 +00:00
xtraeme 7de6799988 Erm fix previous, it's Intel IOP333 not 332. 2007-10-30 20:58:38 +00:00
xtraeme bd180c262f regen 2007-10-30 20:44:31 +00:00
xtraeme 2f4ec3ec94 Add Intel IOP332 A/B Segments. 2007-10-30 20:44:12 +00:00
joerg 2cdafd23af Add another Dell machine where the head phone event needs to be handled. 2007-10-30 19:36:10 +00:00
xtraeme 4fb0cdd56b regen 2007-10-30 12:39:48 +00:00
xtraeme 97f9e12807 Areca ARC SATA RAID Controllers, from OpenBSD. 2007-10-30 12:39:24 +00:00
jnemeth d7d1da9b0d PR/37201 - Yasushi Oshima -- Intel 82965G chipset support 2007-10-30 12:20:03 +00:00
jnemeth 5afd2ed88c regen 2007-10-30 12:13:48 +00:00
jnemeth e8e599a0e3 PR/37201 - Yasushi Oshima -- Intel 82965G chipset support 2007-10-30 12:13:06 +00:00
simonb 916b0a21f9 Some space-to-tab changes.
XXX: All the recently added ich8 support functions use 4-space indent,
     not touching that...
2007-10-30 07:49:40 +00:00
peter 9bc22ed904 wsdisplay has been converted to device_t/softc separation so we can't cast
the wsdisplay device to the wsdisplay_softc anymore.  Use device_private()
instead to get the softc.
2007-10-29 20:45:57 +00:00
itohy d3de8bec66 Fix problem where targets with ID 0, 1, or 2 couldn't be reconnected.
It seems I have always tested with targets those ID >= 3,
and that I am the only user of this driver.
2007-10-29 03:17:24 +00:00
plunky baebd7699a remove unnecessary cast (shortens long line) 2007-10-28 18:49:52 +00:00
plunky 60822ed9d3 When no estimate of battery minutes_left can be made, apm should
return a value of 0.
2007-10-27 19:51:29 +00:00
plunky ed67784932 remove #include <usbhid.h> as its not needed 2007-10-25 19:32:15 +00:00
garbled fb3ebfc3c0 Add a new convenience function, of_find_firstchild_byname(), and apply
some minor KNF to this ofw_subr.c.
2007-10-25 16:59:38 +00:00
joerg 16951292eb Remove a completely bogus check if cbb has a valid PCI interrupt routed.
If you have a system where it doesn't get one and you still want pcic,
you can just disable cbb. This check is invalid as soon as the PCI
interrupt register is not used and broke on my Dell Latitude for that
reason.
2007-10-25 13:49:06 +00:00
xtraeme fdd1c8b450 regen 2007-10-24 23:08:24 +00:00
xtraeme 80f676f52f - Add support for the ServerWorks HT-1000 IDE Controller in rccide.
- Add support for another ServerWorks HT-1000 SATA Controller.

From OpenBSD.
2007-10-24 23:08:06 +00:00
joerg 65eda08509 Pass correct argument to callback, botched up in the last commit. 2007-10-24 07:05:35 +00:00