Commit Graph

24050 Commits

Author SHA1 Message Date
mjacob 49ad2f42b2 Update 2400 f/w to something more akin to what is current. 2008-05-11 02:04:33 +00:00
martin 5d1469bd77 Backout previous: the license sweep touched these files in error, so
restore the old license.
2008-05-10 15:31:03 +00:00
simonb dc15915150 Fix a tyop in a comment. 2008-05-10 14:52:55 +00:00
joerg 27acbcf978 Remove #if 0'd code for flashing firmware. It was never active and even
the FreeBSD version of the driver removed it.
2008-05-10 14:36:02 +00:00
jmcneill 688f4b6b9c Cleanup aprint messages, remove unnecessary usage of aprint_error. 2008-05-10 14:27:20 +00:00
jmcneill 11830b6203 Don't use aprint_error in the success path. 2008-05-10 14:08:15 +00:00
jmcneill 0b59054580 Use aprint when reporting AC adapter status. 2008-05-10 14:01:32 +00:00
jmcneill 2b7bb9303a Use aprint 2008-05-10 13:56:54 +00:00
degroote d6c75ad916 Fix error handling after m_pullup 2008-05-10 12:56:28 +00:00
martin d6c07702bb Years in license are four digits 2008-05-10 11:52:20 +00:00
jmcneill e1557cc154 Use 2-clause license. 2008-05-09 03:44:51 +00:00
macallan 042c09add2 move to 2 clause license 2008-05-09 03:12:49 +00:00
sborrill b3f8753a81 Regen 2008-05-08 15:34:15 +00:00
sborrill cfe5fff059 Add support for IBM ServeRAID 8k (and 8k-l) 2008-05-08 15:33:34 +00:00
reinoud ffc24fca06 Implement write support for the MMC framework. This consists of a setting
up of write parameters call and a call to perform a series of operations on
these devices.

Note that the MMC framework interface is still not exposed to userland
unless the expose_mmc flag is set. This is to prevent applications to build
on a possibly still moving target. This flag will eventually be removed.
2008-05-08 12:57:19 +00:00
joerg 1fe12cbbc8 Add support for 3ware 9650 and 9690 based on patches contributed by
Wasabi Systems.

Fix bus_dma usage to fix write operations in the light of bounce buffers.
Use the 64bit bus_dma tag for 9550+ to avoid bouncing buffers.
2008-05-08 11:27:54 +00:00
macallan 1da90a4ef8 nuke clause 3 2008-05-08 02:32:48 +00:00
macallan 92b89da10e nuke clause 3 2008-05-08 02:03:22 +00:00
macallan 346d21c906 nuke clause 3 2008-05-08 01:43:17 +00:00
joerg d72a9bc7fd First part of twa(4) improvements:
- more/better diagnostic messages
- dynamically allocate units in preparation for 9650+ support
- better distribute queue slots over disks according to size
- drain large request queue on 9550
- keep track of resets, will be needed for 9650.

This changes have been contributed by Wasabi Systems.
2008-05-07 17:47:20 +00:00
bouyer a868052c66 Wait 100ms after we resseting the PHY and found that a device is preent.
Some device seems to need a bit of delay before being ready to accept a
command (such as my SATA cdrom drive)  May fix port-i386/38548.
As a bonus this makes the dmesg output prettier, by not mixing PHY
status with ATA/ATAPI probe.
2008-05-07 13:52:12 +00:00
yamt 4a30ae1037 tprof_start: fix workqueue's IPL. 2008-05-07 08:48:11 +00:00
jdc fd15456f57 Correct Sbus register definitions. 2008-05-07 06:36:48 +00:00
jdc 93d3122a7c Add more initialisation steps (read reset register; pause; set burst size
in config register).

This fixes the continuous interrupt stream previously seen.  It is now
possible to run `ifconfig gem0 up`.  However, "gem0: device timeout"
messages appear and we don't appear to receive any interrupts.
2008-05-06 21:24:40 +00:00
jdc cde723377a Add some Sbus-specific definitions (more registers and more values in the
Sbus Config register).
2008-05-06 21:09:34 +00:00
tsutsui 2925cedf26 - use RTK_IDR[0-5] registers to get MAC address on RTL8168C
- change sc_rev numbers to match quirk numbers used in Realtek's driver
- tweak some register definitions
Taken from Realtek's FreeBSD driver.

Untested yet on 8168C, but no bad sideeffect on older chips.
2008-05-06 11:45:00 +00:00
tsutsui b127908947 Rename some softc variables for readability. 2008-05-06 11:35:38 +00:00
yamt c331e3e5e9 getiobuf(false, NULL) -> getiobuf(NULL, false) 2008-05-06 11:08:19 +00:00
yamt bb127cf870 ata_raid_config_block_rw: getiobuf(vp, NULL) -> getiobuf(vp, false) 2008-05-06 11:07:24 +00:00
bjs e28a3e014b Revert all the changes this time. 2008-05-06 01:51:00 +00:00
bjs 829081eaa7 Revert last commit -- breaks i915. 2008-05-06 01:45:47 +00:00
bjs a65a4adb77 A few steps down the yellow brick road toward bus_dma-ification:
- Add drm_dmamem_alloc/drm_dmamem_free to drm_memory.c to nicely wrap up
   the bus_dma API.

 - Start using the above in drm_pci.c.

 - Add DRM_NETBSD_DMA_ADDR/DRM_NETBSD_DMA_VADDR macros.

 Locking:

 - Use IPL_NONE for all locks except the IRQ lock, which runs at IPL_VM.

 - Use IPL_VM instead of IPL_TTY with pci_intr_establish() for consistency's
   sake. These two changes seem to eliminate the presistent lockups I was
   having (NetBSD-current/amd64 r300).

 - Start getting rid of DRM_SPININIT/DRM_SPINUNINIT and DRM_SPINLOCK/
   DRM_SPINUNLOCK ... these annoy me to no end--not to mention that they
   locks may or may not be spinlocks!  It's a linux frob, really.
   We're way beyond merging any useful bsd-core code on a large scale, which
   was the only good reason to keep them around.

 Memory allocation:

  - Change drm_memory.c so that it contains generally useful, memory
    allocation functions using kmem(9) (mostly used by the drivers
    themselves).  However, I expect to use this more in the future
    in the "bsd core".  These functions always use KM_NOSLEEP.
    The new drm_dmamem_alloc function has a wait argument which
    takes DRM_DMA_WAIT/DRM_DMA_NOWAIT (defined as their bus_dma
    counterparts), and honors this hint in its calls to kmem(9)
    and bus_dma(9) functions.

  - Got rid of these functions' "area" argument--it's been deprecated for
    ages.  Provide macros in drmP.h to deal with the os-independent code.

  - Declare these functions inline -- I believe they're used enough
    by the i915 and radeon drivers to justify it.  Please let me know
    if I am mistaken.

    NOTE: With these changes, a glxgears score which was previously
    ~3900fps is now ~4400fps (same setup as mentioned above).  I realize
    that using kmem(9) could cause problems, but I can't seem to run into
    any with my test setup.  If anyone smells regression, please let me
    know.
2008-05-06 01:26:14 +00:00
dyoung 5e40785deb Make PCI power re-activation DTRT: pass pci_activate_null instead
of NULL to pci_activate()

Call the variable where we store the PCI Command & Status Register
'csr' instead of 'pmreg'.

In sipcom_intr(), get out if the device is inactive.  Otherwise
sip(4) may inadvertently try to handle a shared interrupt before
the driver state is completely set up.
2008-05-05 20:19:09 +00:00
dyoung f05735da97 Restore PCI devices to a state that is closer to the state that
NetBSD finds them in: save and restore power management state
(D0..D3) and PCI Configuration Registers 0x0 through 0x40 during
device attachment and detachment, respectively.  Among other things,
this will fix sip(4) detachment and re-attachment.
2008-05-05 20:14:30 +00:00
ad e071d39c84 - Convert hashinit() to use kmem_alloc(). The hash tables can be large
and it's better to not have them in kmem_map.
- Convert a couple of minor items along the way to kmem_alloc().
- Fix some memory leaks.
2008-05-05 17:11:16 +00:00
jmcneill ad9936b335 Use aprint instead of DRM_INFO macro to cleanup attachment messages. 2008-05-05 14:00:10 +00:00
xtraeme f14b65c700 device_t/softc split and other related cosmetic changes. 2008-05-05 13:58:58 +00:00
ad 2bbb14eaa4 Back out previous. It broke the build. 2008-05-05 13:41:29 +00:00
jmcneill 1a53395e7e Change autoconf message 'direct rendering on dev unsupported' to
the more accurate 'drm at dev not configured'.
2008-05-05 11:42:45 +00:00
tsutsui 44b2bb4cfa Use device_private() where appropriate. 2008-05-05 01:37:56 +00:00
jmcneill 729313d52c Use 2-clause license. 2008-05-05 00:12:49 +00:00
ad b68bfe3ffa A couple of dumb utilities:
array2bin: take array[] from array.h and spit it out as a binary.
bin2blob: take a binary file and output a compressed image as a C array.
2008-05-04 23:50:32 +00:00
ad b407147f14 Move zlib out of net/ and into kern/. It would probably be better to use
the reachover Makefiles and libz, but this is already here and it works.
2008-05-04 23:07:09 +00:00
jmcneill dc2a8d24fc Ugh, unbreak _DRM_SHM on amd64 again. 2008-05-04 21:43:01 +00:00
oster 5a9093cfac Both StripeUnitsPerParityUnit and StripeUnitsPerReconstructUnit need
to be positive integers.
2008-05-04 20:57:23 +00:00
jmcneill 63b0503310 Fix compilation on i386. 2008-05-04 20:27:50 +00:00
jmcneill 2b4fd7dc0e For _DRM_SHM allocations, do not use the VA as drm_map handle on x86_64
since udv_attach will not accept a larger offset than signed 64-bit will
provide. Not the best fix, but good enough for now -- at least an X server
will now startup and get proper mappings.
2008-05-04 20:09:32 +00:00
rumble 6d44774c77 If a device transmit timeout occurs and sc_txintrperiod is greater than
one, throttle it down before the reset. This way the user need not know
the magic `hw.ath0.txintrperiod=1' fix if the default value is too high
for their machine.
2008-05-04 20:02:06 +00:00
martin 637bc2e71d Move TNF licenses to 2 clause form 2008-05-04 19:43:05 +00:00
jmcneill 7380b7991e Returning EINVAL from drm_mmap isn't a smart thing to do. 2008-05-04 19:19:40 +00:00
xtraeme dd178c786e mii_dev is a device_t now. 2008-05-04 17:14:41 +00:00
xtraeme 7db0e57765 device_t/softc split for all mii(4) devices, and other related
cosmetic changes.
2008-05-04 17:06:09 +00:00
xtraeme db484efd57 device_t/softc split for spic(4) and other related cosmetic changes. 2008-05-04 16:13:35 +00:00
xtraeme e9025ab64a device_t/softc split and other related cosmetic changes. 2008-05-04 15:58:51 +00:00
xtraeme 9fbdf1594f device_t/softc split and other related cosmetic changes. 2008-05-04 15:26:29 +00:00
xtraeme 07c2a78bc8 device_t/softc split for adt7467c(4) and adm1030, and other related
cosmetic changes.
2008-05-04 14:45:01 +00:00
xtraeme 5232253e58 device_t/softc split. 2008-05-04 14:21:55 +00:00
xtraeme 7ecae1b00d Finish device_t/softc split. Previous commit was incomplete. 2008-05-04 14:01:14 +00:00
xtraeme efa94e2017 device_t/softc split. 2008-05-04 13:59:41 +00:00
martin 592397db3f Move to standard TNF 2 clause license 2008-05-04 12:59:38 +00:00
martin 3b114abfef Move to standard TNF 2 clause license 2008-05-04 12:50:38 +00:00
martin 4685680579 Move to standard TNF 2 clause license 2008-05-04 12:43:45 +00:00
bjs c085692bea Add forgotten 'struct' for drm_ati_pcigart_info 2008-05-03 17:05:09 +00:00
jmcneill 35033371fe Use M_ZERO instead of malloc+memset 2008-05-03 16:14:40 +00:00
drochner 1120b085ae make device lock adaptive
(needed because pfind() is called from inside)
2008-05-03 14:26:01 +00:00
plunky fcf1772a80 after the "struct disk" is finished with, it should be
destroyed with disk_destroy(9) to stave off LOCKDEBUG
panics.
2008-05-03 08:23:41 +00:00
cegger 1d5cdb9bc8 device_t / softc split. Tested on amd64.
"looks good" spz
2008-05-03 05:44:06 +00:00
tsutsui 8f9452f5e9 Change my mail address to netbsd.org one. 2008-05-03 05:21:25 +00:00
tsutsui 868bd69966 - remove dead URL of datasheet
- change my mail address to NetBSD.org one
2008-05-03 05:20:01 +00:00
cegger 126eb66502 unuspported -> unsupported 2008-05-03 05:02:41 +00:00
plunky fc53820785 disk_destroy() is needed when the disk structure is no longer required,
this fixes PR kern/38131
2008-05-02 21:11:00 +00:00
xtraeme 5a38da5ccf Constify, so that usr.sbin/fwctl can be built with WARNS=4. 2008-05-02 19:50:04 +00:00
martin cd22f25e6f Move TNF licenses to 2 clause form 2008-05-02 18:11:04 +00:00
reinoud 62c4a64698 Extend the MMC framework to also create sensible reports on audio discs. 2008-05-02 16:06:38 +00:00
reinoud f83002a905 Add definitions for the close track/session, reserve track and repair
track SCSI commands.
2008-05-02 15:56:25 +00:00
reinoud 87bf4ab915 Fixup CD and DVD drives that appear to be on crack when reporting features.
They state f.e. that a recordable CD-R is rewritable or completely forget
that the fixed packet size formatted CD-RW is strict overwrite rewritable
and not randomly rewritable.
2008-05-02 15:53:10 +00:00
reinoud 8d14ab3bcb Make the SCSI sense code "Logical Unit Not Ready, Operation In Progress"
(Sense code 0x04, 0x07) not a fatal error anymore but retry command later.
This sense code can be returned on a CD-MRW write that encounters a bad
block resulting in the drive being busy relocating it. During that time it
can return this sense code to indicate its busy for a while.

Also reduce waiting time for the other "Logical Unix Not Ready, Long Write
In Progress" to half a second.
2008-05-02 15:34:16 +00:00
ad 1253c2cad4 Allow md_root_setconf() to set in a miniroot as the root file system
even if MEMORY_DISK_IS_ROOT is not defined (a runtime override).
2008-05-02 13:02:31 +00:00
simonb 96093a0d4f Sprinkle a teeny bit of KNF goodness.. 2008-05-02 01:53:33 +00:00
bjs 98dd3c4324 Wedge in a smattering of updates for ati_pcigart.c and radeon support:
-- detypedef drm_ati_pcigart_info
-- add support for variable sized apertures in ati_pcigart.c
-- Add support for radeon IGP adapters (untested on NetBSD)
-- Update r300_reg.h to a much newer version.
-- Miscellaneous fixes in radeon_cp.c, radeon_state.c.

TODO: r300_cmdbuf.c  (?)

Please report any regressions to me.  While I try to make sure the
updates are somewhat coherent, our initial code base is old enough
such that it's quite difficult to be absolutely certain.  I hope to
rebase the NetBSD-specific code on the BSD code at the head of GIT
within a month or two, so this will do for now.
2008-05-02 01:29:36 +00:00
cegger 8127f641e3 device_t / softc split. From Hans Rosenfeld. 2008-05-01 22:00:44 +00:00
cegger d9b775927c hpqlb(4): driver for HP Quick Launch buttons - found on HP Pavilion Notebooks 2008-05-01 20:18:18 +00:00
simonb c3325defad Be consistent with #define<space-or-tab>. 2008-05-01 16:06:41 +00:00
cegger 03b1eeebc1 compile-fix with MULTIPROCESSOR. From Hans Rosenfeld. 2008-05-01 12:06:28 +00:00
ad 39f45b13ce - If x86, trust the nvram and elminate long probe delays.
- Update for amd64.
2008-04-30 23:02:43 +00:00
ad 1498ad220e Make various bits of debug code compile again. 2008-04-30 14:07:13 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
joerg 80f8bae123 Regen. 2008-04-30 12:23:55 +00:00
joerg 9e76b2ce6c + 3ware 9690 2008-04-30 12:23:29 +00:00
scw 1de1c389bf Pull in some more changes from OpenBSD:
- replace rssadapt(9) with amrr for automatic rate control.
- don't blindly IFQ_DEQUEUE() then drop a Tx packet if there are no
  available Tx resources.
- move default MAC/BBP/RF settings from rt2661.c to rt2661reg.h.
- enable packet bursting when operating as a STA.
- implement new ic_updateslot() callback.
- in hostap mode, we defer update of the slot time until all associated
  STAs are notified with updated beacons.
- 802.11a uses a 16 microseconds short interframe space.
- Fix rt2661_set_macaddr() so that we don't override the "unicast to me"
  flag in RT2661_MAC_CSR3 when setting the MAC address.
- fix index of ERP information element in beacons.

Add a couple of tweaks of my own:

- The RX/TX BUSY flag should be the last thing written to a descriptor.
- Check and service any additional h/w interrupts before returning
  from the isr.

Tested in STA, AP, and Monitor modes. Tested with WEP, WPA, and WPA2 crypto.

Additional testing by xtraeme@
2008-04-29 22:21:45 +00:00
ad c47594f131 Replicate sbus fixes for PR kern/37540. 2008-04-29 18:08:03 +00:00
ad bf6eb72289 Another compile fix. 2008-04-29 18:07:11 +00:00
nakayama c887d75771 Make it compile again on big endian, and restore CVS keyword. 2008-04-29 17:48:43 +00:00
jmcneill bfb86f013a Oh, so that's how you spell Legacy -- thanks spellcheck! 2008-04-29 17:27:38 +00:00
martin cf6ae11aea Pass the "right" softc to the soft interrupt handler 2008-04-29 15:59:34 +00:00
martin 682d4acc5f Make it compile 2008-04-29 14:46:57 +00:00
tsutsui f07b0a1491 Fix a leakage on device_t/softc split. PR kern/38541 from HITOSHI OSADA. 2008-04-29 14:16:57 +00:00
ad cef4f8fa35 Use sparc_softintr to pass down device interrupt to the correct IPL.
MI slowpath softints are fine for notifications but have to much latency
to provide the card with the next block to play/record. PR kern/37540.
2008-04-29 14:10:00 +00:00
cegger b574865ea4 gpio(4): Extend with open/close to request/release the ppbus(4) on open/close.
ppbus(4): Extend to attach on gpiobus.
From Hans Rosenfeld from tech-kern:
http://mail-index.netbsd.org/tech-kern/2008/04/28/msg001168.html
Hint: Hans sent me this diff which differs in the one from tech-kern in:
- 2-clause license
- sprinkled some consts
2008-04-29 14:07:36 +00:00
martin 3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
matt d22fb7c7d0 More forgotten changes from matt-armv6. 2008-04-28 22:00:01 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
jdc 313a56c040 Set (and display) the chip revision.
Set the GEM_SUN_GEM flag.
2008-04-28 20:07:39 +00:00
garbled fcdfd014d7 Minor fixes to some of these files:
Add recognition for the CS4232C revision chip. (0xa2)
Make ic/ad1848.c compile with AUDIO_DEBUG
Add a needed machine/bus.h include to ic/cs4231.c
Add a few additional register defines to ic/cs4231reg.h
2008-04-28 18:49:27 +00:00
drochner efdfaa4756 fix error handling after m_pullup() 2008-04-28 18:33:31 +00:00
ad 4c7ba24481 Add MI code to support in-kernel preemption. Preemption is deferred by
one of the following:

- Holding kernel_lock (indicating that the code is not MT safe).
- Bracketing critical sections with kpreempt_disable/kpreempt_enable.
- Holding the interrupt priority level above IPL_NONE.

Statistics on kernel preemption are reported via event counters, and
where preemption is deferred for some reason, it's also reported via
lockstat. The LWP priority at which preemption is triggered is tuneable
via sysctl.
2008-04-28 15:36:01 +00:00
ad 992544b3e9 Fix build error. 2008-04-27 22:34:49 +00:00
nakayama fbdd1b7ea8 Fix typo.
s/amrr_min_success_threshold/amrr_max_success_threshold/ in second line.
2008-04-27 09:32:08 +00:00
cegger 4bd4cc6d3d aprint_verbose -> aprint_verbose_dev 2008-04-27 05:15:45 +00:00
xtraeme 9f6e54935c Also attach in the IT8726F Super I/O. 2008-04-26 19:01:53 +00:00
xtraeme 27a6b8b36a Fixup the negative VINs, they were inverted and conversion was wrong. 2008-04-26 12:59:24 +00:00
cegger 0713fc37a9 ansify 2008-04-26 12:03:43 +00:00
jmcneill da01aef3c1 Use isareg constants in thinkpad_brightness_read where possible 2008-04-26 01:19:15 +00:00
xtraeme 82947dad7d Adapt to recent NetBSD which has an atomic MI API. With code from
bjs@ and ad@.
2008-04-25 12:15:19 +00:00
tsutsui 82cc885228 Split device_t/softc for re(4) and rtk(4). 2008-04-25 11:27:19 +00:00
jmcneill dd8d5fe840 Define ACPI_THREAD_ID as uintptr_t, and return curlwp instead of
curlwp->l_lid from AcpiOsGetThreadId(), as suggested by ad@
2008-04-24 21:42:05 +00:00
ad 6d70f903e6 Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.
2008-04-24 15:35:27 +00:00
ad 15e29e981b Merge the socket locking patch:
- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.
2008-04-24 11:38:36 +00:00
xtraeme 49a45b73c5 DRM_SPINLOCK() wants a spin mutex, it may be called from interrupt
context. Switch it to IPL_VM.
2008-04-23 20:21:50 +00:00
tsutsui 968ad4b4c3 Since device_t is split out from softc, we have to allocate struct device
separately after allocating struct lsi64854_softc to fake it. (untested)

"lsc->sc_dev is not initialized" is pointed out by martin@.
2008-04-23 13:37:19 +00:00
tsutsui 3b31064c9a Split softc/device_t and misc cleanup for sn(4). 2008-04-23 13:29:44 +00:00
jmcneill 50629393a5 s/struct cfdata */cfdata_t/ 2008-04-23 11:19:09 +00:00
cegger ac625f0f59 revert rev. 1.16 and redo the fix as proposed by oster per private mail 2008-04-22 22:49:49 +00:00
xtraeme fc4443a49b Set the ENVSYS_FCHANGERFACT flag in voltage sensors, so that we
can use the 'rfact' property in /etc/envsys.conf to change the
resistor factor (in case the converted data is not correct).
2008-04-22 13:33:38 +00:00
cegger 36244f71ec Fix error path:
Don't try to free non-allocated memory. Only free allocated memory.
This fixes a crash reported by Brian A. Seklecki on port-xen:
http://mail-index.netbsd.org/port-xen/2008/04/10/msg003555.html

Fix tested by Brian A. Seklecki:
http://mail-index.netbsd.org/port-xen/2008/04/21/msg003604.html
2008-04-22 09:29:08 +00:00
jmcneill fd495c5ce3 AcpiOsGetThreadId should return lwpid, not pid -- otherwise we always return
the same value! Fixes the AE_AML_MUTEX_NOT_ACQUIRED issue when evaluating
_BST on ASUS Eee PC. Who knows what other mysterious bugs this has caused
over the years...
2008-04-22 02:02:50 +00:00
jmcneill de45d1c96b Cleanup uhub autoconfiguration messages. 2008-04-21 23:31:18 +00:00
cegger a76bb1857c regen. 2008-04-21 21:18:59 +00:00
cegger a9cad030a2 Phison Electronics, vendor of my USB Stick 2008-04-21 21:17:51 +00:00
xtraeme a7315e0fc1 Misc cleanups from Geoff Wing. 2008-04-21 14:25:48 +00:00
ad a2249ef75c Make ntp, pmc, reboot, sysarch, time syscalls MPSAFE. 2008-04-21 12:56:30 +00:00
martin 26190df844 Fix minor device_t split fallout. 2008-04-21 08:16:12 +00:00
ad 185116891b Don't send signals from a hardware interrupt handler. XXX This is still
dodgy, because sc->sc_asyncproc can exit and we don't find out about
that.
2008-04-21 00:30:21 +00:00
oster 6fef1b6c62 Cleanup function prototypes. No functional change. 2008-04-20 20:46:41 +00:00
oster 5654bb482d Introduce a function to return the default head separation for RAID 1
sets.  This helps ensure that the sliding status window (coming soon!)
for reconstructs will always be correct.
2008-04-20 20:42:32 +00:00
jmcneill 865860bc30 Improve error reporting when we fail to enter a sleep state, eg:
acpi0: entering state 1
  acpi0: ACPI S1 not available on this platform
2008-04-20 16:26:36 +00:00
tsutsui bd8476b16b Misc cosmetics. 2008-04-20 15:44:01 +00:00
tsutsui fa0277bb60 - use uint8_t instead of u_char for unsigned byte values
- make cs_softreq volatile
2008-04-20 15:42:47 +00:00
tsutsui 669312ed5a Regen from isapnpdevs rev 1.66:
> Add an entry for Symbios SYM53C416.
2008-04-20 13:26:14 +00:00
tsutsui 40e734e069 Add an entry for Symbios SYM53C416. 2008-04-20 13:24:34 +00:00
cube 4e49392569 Restore jumbo frame support and protect access to the DMA space for
received frames with a mutex.

Tested by Paul Goyette, Martin Husemann and myself.
2008-04-20 08:57:37 +00:00
tsutsui 80b6cbc853 - use device_lookup_private() where appropriate
- some KNF and cosmetics
2008-04-20 03:05:55 +00:00
njoly 416b3edee6 Add missing agp support for ALI M1689 chipset, for PR/35416. 2008-04-19 09:26:56 +00:00
tsutsui 74a2e40f00 The DP83932C manual says the CAM enable register (CER) can't be
accessed on normal operations and the CER should be set up
through the last entry in the CAM desciptor area and loaded
via LCAM command, so make our driver do so, though the previoius
code (writing CER directly) worked without problems.

Tested on sn at jazzio on arc (in 32bit mode) by me and
sn at nubus on mac68k (in 16bit mode) by Paul Ripke on port-mac68k.
2008-04-19 06:59:08 +00:00
tsutsui 12cb822366 Fix a typo which is fatal on cards configured in 16 bit mode.
Problem is reported and fix is confirmed by Paul Ripke on port-mac68k.
2008-04-19 06:39:43 +00:00
tsutsui effdbc2aa4 - use aprint_*() variants only in functions called during autoconf(9)
- wrap long lines
2008-04-18 19:01:15 +00:00
joerg 5d29393a65 NetBSD has no such thing as DEVICE_POLLING, so remove it. 2008-04-18 16:05:30 +00:00
cegger 5db505451b Fix panics at boot and some other misc bugs. From Hans Rosenfeld. 2008-04-18 14:56:40 +00:00
christos 07975baeb4 join line for symmetry. 2008-04-17 20:16:46 +00:00
xtraeme 2930df439c Make this work again, now that ACPI_TYPE_ANY returns NULL objects
after recent ACPICA update.

Applied patch from Geoff Wing on current-users@.
2008-04-17 19:57:27 +00:00