Commit Graph

23223 Commits

Author SHA1 Message Date
tnn 303f9ebb5b Make the ACPI_MADT_DEBUG code compile again. 2008-01-07 06:04:07 +00:00
ad d534bbfa2e Really, remove last vestiges of simplelock debugging. 2008-01-07 01:55:15 +00:00
ad b439191858 Remove vestiges of simplelock debugging. 2008-01-07 00:27:35 +00:00
bjs 521d96c676 The stamp mutex is not unsafe, so remove this comment so people don't get the wrong idea. ok ad@ 2008-01-07 00:25:19 +00:00
uwe d8f0d4be74 Catch up with new option to dev/pckbport/wskbdmap_mfii.c 2008-01-07 00:19:08 +00:00
christos d879c8360a defflag one moe variable. 2008-01-06 19:42:33 +00:00
christos d1b79165fa clamp min/max values properly. 2008-01-06 19:42:03 +00:00
kent 9602a50eb5 recognized the names of Sigmatel STAC9227-9230 2008-01-06 13:33:21 +00:00
kent 86e51d72d1 fix a bug of S/PDIF audio format selection
PR/36493 by Arcady Antipin
2008-01-06 12:56:20 +00:00
martin 258a4b78cf With the new IPL world, things are easier for us: if we can get the
nell hardware interrupt handler run at IPL_VM, we can call the socket
drivers interrupt handler directly.
This is always possible on sparc64, but on sparc we might have to fall
back to the old softint bounce. Since this uses arbitrary IPLs, we
can not use the new softint_* for this - we'll have to use the old
sparc_softintr_* functions.
2008-01-06 02:29:58 +00:00
jdc bb4a0543ee Updates from OpenBSD:
-- r1.15
  Add some DSP init code for BCM5221's.

  Values derived from Apple's GMAC driver, same init
  code also exists in Linux's sungem_phy driver.

  tested by miod@ pedro@ and otto@ on a few systems.
    -- r1.16
  Always explicitly set IFM_HDX for half-duplex.

  From brad@
    --
2008-01-05 20:33:29 +00:00
jdc 6055efa604 Add support for Sun PCI X1141A (SX fibre) cards.
Add support for GEM cards on non-OFW machines.
2008-01-05 20:30:22 +00:00
jdc 196789ac55 Add support for Sun PCI X1141A (SX fibre) cards, based on the GEM
documentation, experimentation and a previous patch from John Heasley.

Add improvements to the driver based on the GEM documentation and
from FreeBSD if_gem.c (rev 1.45).
2008-01-05 20:27:44 +00:00
ad 31ef469fe7 Work around com hangs with pcmcia. PR kern/37462. 2008-01-05 12:44:13 +00:00
matt acb0b175a3 Add #include <sys/simplelock.h> 2008-01-05 02:47:03 +00:00
joerg e36a3212f8 Catch up with rename of buf's b_un.b_addr -> b_data. 2008-01-04 22:04:59 +00:00
joerg 547d94f35c Add missing sys/device.h. 2008-01-04 21:58:51 +00:00
ad f142225fa0 B_BAD has done nothing for a long time. 2008-01-04 21:48:05 +00:00
xtraeme 0f546319ca sys/simplelock.h is required now. 2008-01-04 21:33:17 +00:00
ad 0664a0459b Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
kent e93ecba847 shorten mixer-input names by mixer-name automatic generation
PR/37273
2008-01-04 17:00:05 +00:00
kent 16504b27b0 simplify conversion rule between device volume values and userland
volume values.  Some mixer values never be 255 by this change.

PR#37274
2008-01-04 12:18:00 +00:00
smb 0cb6d977ab Add calls to pmf_deregister on detach. 2008-01-04 03:56:47 +00:00
simonb 0bab12ba30 Make this compile with DEBUG enabled (fix a printf format, convert to
timecounters).
2008-01-04 01:00:43 +00:00
joerg e6f452fd65 Allow saving of up to 4 PCI registers in the IDE code. 2008-01-04 00:27:27 +00:00
dyoung 17b65ff15d Disable pci_disable_retry() and cardbus_disable_retry(), with a
long comment on pci_disable_retry() (cross-referenced at
cardbus_disable_retry()) that explains why.
2008-01-03 23:15:43 +00:00
joerg 28b31e738f Timecounter and generic todr support for pmax. From Garret D'Amore. 2008-01-03 23:02:24 +00:00
xtraeme 98d660f7bb Fix indentation. 2008-01-03 21:28:11 +00:00
tron 4ee524a917 Fix perfomance problems for old revisions of the Symbios 53c1030.
Patch supplied by Patrick Welche in PR kern/30531.
2008-01-03 18:16:20 +00:00
kent f8415b4922 code cleanup
- use __arraycount
- remove unnecessary M_ZERO flags
2008-01-03 18:00:43 +00:00
kent c89324c85e - add initialization for ATI HDMI audio
- add custom mixer table for AD1986A by scw@
PR: kern/36140
2008-01-03 17:39:03 +00:00
jnemeth 87a13edaae regen -- Symbios Logic 0x0030 is used for both 53c1020/53c1030 from Dave Huang 2008-01-03 03:40:24 +00:00
jnemeth 28cdc331fe Symbios Logic 0x0030 is used for both 53c1020/53c1030 from Dave Huang 2008-01-03 03:38:32 +00:00
christos 79fa20a533 - remove casts
- sprinkle static
- move decls inside ifdef
2008-01-03 02:30:08 +00:00
dyoung 09fd56f9ec Detach attimer at acpi, attimer at isa. 2008-01-03 01:21:44 +00:00
xtraeme 68d02b93e3 New functionality for arcmsr(4) native management via bioctl(8):
Added support to create/remove hot-spare, pass-through disks.
Added support to create/remove volume sets.
Added support to show information about physical disks, even if they
are marked unused, hot-spares or pass-through.

sd(4) devices are attached/detached automagically when a pass-through
disk or volume set is created/removed... thanks scsipi(9) and cube@
for hints.
2008-01-02 23:48:05 +00:00
xtraeme 59a09b45c9 Improve the bio(4) API for incoming changes to arcmsr(4) (and perhaps
other drivers in the future):

- Added BIOC_SVCHECKING to the BIOCVOL ioctl, to know if a volume is
  running a consistency check.
- Added three more volume levels for the BIOCVOL ioctl.
- Added BIOC_SDPASSTHRU to the BIOCDISK ioctl, to know if a disk is
  in pass-through mode.
- Added BIOCDISK_NOVOL; it's used with the same reason than BIOCDISK,
  but it's used only to get information about the physical disks connected
  in a controller (regardless if they are in a volume set or not).
- Added BIOC_SSDELHOTSPARE, BIOC_SSPASTHRU, BIOC_SSDELPASSTHRU,
  BIOC_SSCHECKSTART_VOL and BIOC_SSCHECKSTOPVOL; to remove a hot-spare,
  add and remove a pass-through disk and to start/stop a consistency
  check in a volume.
- Added the BIOC_VOLOPS ioctl; to create/remove a volume set.
- Removed the BIOCCREATERAID ioctl, it was too limited for my needs.
- Added compatibility ioctls for BIOCDISK and BIOCVOL, enabled via COMPAT_30.
2008-01-02 23:45:03 +00:00
dyoung e9596bf19e Introduce a struct cardbus_chipset_tag, and make cardbus_chipset_tag_t
a pointer to that struct, so that we cannot assign pointers of
arbitrary type to cardbus_chipset_tag_t.  Tweak cbb(4) to accomodate
this change.

Make Cardbus_conf_read() and Carbus_conf_write() pass the right
arguments to cardbus_functions->cardbus_conf_{read,write}() for a
change.

Let's hope this stops the crash in cardbus_function_enable() that
macallan@ reported to me.
2008-01-02 23:11:34 +00:00
dyoung 4f422f7b22 Don't assign a cardbus function tag to a cardbus chipset tag.
Michael Lorenz, macallan@, actually found this bug.

(I will change cardbus_chipset_tag_t to a struct * from void *, so
that the compiler will detect similar typos in the future.)
2008-01-02 23:04:25 +00:00
dyoung 91345ba277 Do not read past the CIS region. Stops an MCHK exception on macppc
(reported by macallan@).

I originally detected this bug by activating 'PCI master target
abort' interrupts on the AMD Elan SC520 processor.  Lo and behold,
several interrupts occurred before the system had finished booting!
NetBSD should probably activate PCI exception reporting whenever
it is available.
2008-01-02 22:29:00 +00:00
ad 95ffd8cee1 Another driver that should use getiobuf(). 2008-01-02 21:59:45 +00:00
dyoung 95bf02050e Use device_t, device_private(). 2008-01-02 20:47:28 +00:00
xtraeme b88ea32e70 - Initialize the callout with CALLOUT_MPSAFE, like it was done before
in sysmon_envsys_events.c.
- Separate sme_event_check_low_power() into sme_battery_check(),
  sme_acadapter_check() and sme_battery_critical() (no functional changes).
2008-01-02 12:20:26 +00:00
ad 4a780c9ae2 Merge vmlocking2 to head. 2008-01-02 11:48:20 +00:00
dyoung 80c0fcd21b Improve device detach routine. Now I can detach nsclpcsio0 and
its children.

Fix an off-by-one bug in the sensor initialization which stopped
it from completing.

Extract sensor initialization into a new subroutine.  If there is
an error while initializing sensors, do not let sc_sme dangle.
2008-01-02 10:21:08 +00:00
dyoung 09767a906c In sysmon_envsys_create(), initialize the callout structure. Stops
panics with a DIAGNOSTIC kernel.

In sysmon_envsys_find_40(), wait until an envsys is not busy before
settings its busy flag, in the pattern of sysmon_envsys_find().
2008-01-02 10:15:53 +00:00
pooka b0e1200d26 unstaticate putterdebug 2008-01-02 05:27:21 +00:00
dyoung 5493a07f14 Use LIST_FOREACH(). 2008-01-02 03:06:02 +00:00
dyoung 5b4182ee05 Use TAILQ_FOREACH(). 2008-01-02 02:29:14 +00:00
dyoung 66938db654 Cosmetic: fix indentation. 2008-01-02 02:25:27 +00:00