Commit Graph

24050 Commits

Author SHA1 Message Date
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
xtraeme 035163789f Make this build again... HI XTOS. 2008-04-17 19:50:38 +00:00
christos cc0f1a1e88 regen 2008-04-17 19:12:49 +00:00
christos f0b645b98a sync with openbsd; fixes observed corruption issues. 2008-04-17 19:12:26 +00:00
cegger 376411d2dd device_t / softc split. From Hans Rosenfeld. 2008-04-16 09:39:01 +00:00
cegger 7b52308352 Use %zu format specifier for size_t. Fixes build error on shark. 2008-04-15 22:50:33 +00:00
cegger ab6ed915af regen. 2008-04-15 21:26:08 +00:00
cegger 712028b754 add devices found on HP Pavilion dv9700 Notebook 2008-04-15 21:24:07 +00:00
cegger 2ae1aec4f9 Make this build without options LPT_VERBOSE and LPT_DEBUG. From Hans Rosenfeld. 2008-04-15 19:06:16 +00:00
cegger 57f80cdb16 Make this build. From Hans Rosenfeld. 2008-04-15 19:03:26 +00:00
oster 8fb49f6fa8 A forced recon read should not default to indicating that the reads
for that disk have stopped, since this will bump us out of the normal
reconstruction loop prematurely.

Fixes the (mostly cosmetic) bug where the reconstruction
status values stop updating, and from raidctl it appears that
reconstruction has totally stalled (which it actually hasn't -- the
reconstruction does complete properly, but not in the normal way).
2008-04-15 16:05:43 +00:00
cegger b849cd90e5 device_t / softc split. From Hans Rosenfeld 2008-04-15 15:02:28 +00:00
plunky 486e4624e5 some changes to serial bluetooth host controller interfaces
btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
2008-04-15 11:17:47 +00:00
bjs 79cf86c8af Change the DRM_SPININIT macro to call mutex_init with MUTEX_DEFAULT
and IPL_NONE.  MUTEX_DRIVER is no longer part of the stable API.  Moreover,
IPL_TTY is now IPL_VM, and this code should not be running with such a
high ipl.
2008-04-15 04:08:58 +00:00
cegger 1b5ffa90ad - ansify
- use POSIX integers
2008-04-14 21:20:41 +00:00
spz 123ed98aff pretty up if_ex: pmf'ify, device split, and improve printing a bit too.
Reviewed and function-tested on if_ex_cardbus by cube (thanks).
Function-tested on if_ex_pci by myself.
2008-04-14 20:03:13 +00:00
oster 25c8cdfd32 Print out the status value if a reconstruction read fails.
Don't print out write promotions during reconstruct unless
we are debugging reconstructs.
2008-04-14 17:24:50 +00:00
sborrill 244791d8a2 Fix display of total number of sectors if > 2^32 on 32-bit machines 2008-04-14 14:53:52 +00:00
cegger 3e3ad32c16 ansify 2008-04-14 10:54:21 +00:00
jmcneill 76fcb78d00 Compatibility with ACPICA 20080321; from the release notes:
All Reference Objects returned via the AcpiEvaluateObject interface are now
marked as type "REFERENCE" instead of "ANY". The type ANY is now reserved for
NULL objects - either NULL package elements or unresolved named references.
2008-04-14 00:30:30 +00:00
njoly 0f51b405b0 Fix infinite loop with AGP on Ali M1689 (from PR/38269 and PR/35416),
by disallowing aperture size values below 1MB.
2008-04-13 13:07:31 +00:00
tsutsui 4f55dadd88 Fix another typo. 2008-04-13 12:59:10 +00:00
mlelstv 941dd022e4 fix format strings for DIAGNOSTIC output 2008-04-13 12:22:13 +00:00
tsutsui 78a1d236b6 Split device_t/softc for MI ncr53c9x and some related devices,
with various cleanup.
2008-04-13 04:55:52 +00:00
tsutsui 7b00ef7ec5 Split device_t/softc, with misc cosmetics. 2008-04-12 08:35:22 +00:00
tsutsui 11da9127f7 Split device_t/softc. 2008-04-12 08:21:19 +00:00
tsutsui efec14320d Split device_t/softc for MI mb86960, with misc cosmetics. 2008-04-12 06:37:51 +00:00
tsutsui 7c06c0a3e8 Split device_t/softc for MI mb86960, with misc cosmetics. 2008-04-12 06:27:01 +00:00
tsutsui bdd6dadf75 Fix a botch (inverted test) in rev 1.4. 2008-04-12 04:33:48 +00:00
cegger 09b1b08c50 make this build with FD_DEBUG 2008-04-11 19:16:44 +00:00
cegger 8a19ab6bca convert to pmf(9)
ok jmcneill
2008-04-11 13:00:47 +00:00
tsutsui 435efaffea If it's a high speed, trim the trigger level down to prevent overflows,
as comment says.  The piece of code was removed in rev 1.230,
but it looks an error on reverting of rev 1.228.
2008-04-11 12:45:08 +00:00
he 04446152e8 Put back a %s so that the format matches again. Fixes build for evbppc. 2008-04-11 06:25:25 +00:00
cegger 86537ae77c sprintf -> snprintf 2008-04-10 19:49:14 +00:00
cegger 9d57c80079 use aprint_*_dev and device_xname 2008-04-10 19:13:36 +00:00
agc e7debae8a8 Fix a minor nit in a comment 2008-04-10 09:31:51 +00:00
he 7a931cc637 Remove a now-spurious & so that this builds again (for cobalt). 2008-04-10 09:05:53 +00:00
dyoung f1dc500675 Use device_t and accessors. Use cfdata_t and __arraycount().
Miscellaneous cosmetic changes.
2008-04-09 17:32:01 +00:00
dyoung 85481997e1 s/pcimatch/match/ to avoid conflict with a global name. 2008-04-09 17:27:14 +00:00
dyoung 82efc281ac Export some PCI autoconf routines for use by elansc(4), for example. 2008-04-09 17:01:53 +00:00
joerg 426688d27e Regen. 2008-04-09 14:15:11 +00:00
joerg a74db6c2ab Add PCI ID of 3Ware 9650 family. 2008-04-09 14:14:40 +00:00
skd d51db07a71 Fix small error in device/sc splitup. 2008-04-09 11:32:26 +00:00
cegger f98b30fb5e Re-add chunk of code that got lost in rev. 1.10. Makes this file build/work again. vi sometimes plays games with me. Spotted by dogcow. 2008-04-09 06:13:26 +00:00
dogcow 9bad45d03e deparenthesize 'return (x);' and add missing close-brace. 2008-04-09 05:57:00 +00:00
cegger c1886a2781 use aprint_*_dev and device_xname 2008-04-09 05:47:19 +00:00
cegger 1ef783cb7b use aprint_*_dev and device_xname 2008-04-08 20:40:42 +00:00
cegger cf417aad7e use aprint_*_dev and device_xname 2008-04-08 20:08:49 +00:00
cegger 7088512994 use aprint_*_dev and device_xname 2008-04-08 12:07:25 +00:00
cegger 1b044f414a use aprint_*_dev and device_xname 2008-04-08 07:35:35 +00:00
cegger 50fb102fe3 use aprint_*_dev and device_xname 2008-04-08 06:12:21 +00:00
cegger 27b03461ec use aprint_*_dev and device_xname and get rid of isp_name 2008-04-07 19:26:44 +00:00
cegger 0f2aceb852 use device_xname() and get rid of isp_name 2008-04-07 19:21:55 +00:00
jmcneill 75aae009fe Cosmetic aprintification fix, as noted by Thomas Klausner on current-users 2008-04-07 10:16:59 +00:00
mjf 9dfd4ffcb0 Prevent packet header from being placed outside the TXD buffer. This
should stop the "mismatched status and packet" error messages that have
been plaguing the EeePC.

Fix provided by Joel Sing, thanks!
2008-04-06 23:21:01 +00:00
cegger 0e50a9464d use aprint_*_dev and device_xname 2008-04-06 20:25:59 +00:00
plunky 587a66277f convert to use pmf(9) functions 2008-04-06 18:55:33 +00:00
xtraeme c32766fd4f Pass KTHREAD_MPSAFE to kthread_create(). I've been testing this for
some weeks in both UP and SMP without any issue so far.
2008-04-06 09:42:04 +00:00
cegger 5895620423 use aprint_*_dev and device_xname 2008-04-06 08:54:43 +00:00
cegger b90893744b use aprint_*_dev and device_xname 2008-04-06 08:33:31 +00:00
cegger c0d1e7cb9e use aprint_*_dev and device_xname 2008-04-06 07:54:17 +00:00
cegger f5bd7c2196 use aprint_*_dev and device_xname 2008-04-06 07:23:57 +00:00
cegger 8bac8763ae use aprint_*_dev and device_xname 2008-04-05 22:04:36 +00:00
cegger 335ec2beb5 use aprint_*_dev and device_xname 2008-04-05 21:44:50 +00:00
cegger bebbf57b68 use aprint_*_dev and device_xname 2008-04-05 21:31:23 +00:00
cegger 801bd3ddec use aprint_*_dev and device_xname 2008-04-05 20:08:52 +00:00
cegger 34895c30e4 use aprint_*_dev and device_xname 2008-04-05 19:16:49 +00:00
cegger 92e3ef7aaa use aprint_*_dev and device_xname 2008-04-05 18:54:10 +00:00
cegger 4c5fa20d1f use aprint_*_dev and device_xname 2008-04-05 18:35:31 +00:00
xtraeme bea13694d3 Add the autoconf(9) detach method; useful for the LKM. 2008-04-05 18:32:14 +00:00
tsutsui aadb5be453 Add some register definitions for RTL8168C. 2008-04-05 18:26:39 +00:00
cegger 2ebebb8472 make this compile 2008-04-05 18:16:56 +00:00
cegger 375450b55e use aprint_*_dev and device_xname 2008-04-05 16:46:15 +00:00
cegger 395c8c3fd3 use aprint_*_dev and device_xname 2008-04-05 16:35:35 +00:00
cegger 1344fa8b25 use aprint_*_dev and device_xname 2008-04-05 16:06:12 +00:00
cegger 3069a1f144 use aprint_*_dev and device_xname 2008-04-05 15:50:49 +00:00
cegger 13783bfd7e use aprint_*_dev and device_xname 2008-04-05 15:47:00 +00:00
skrll 42081d876c Typo in comment. 2008-04-05 08:42:35 +00:00
tsutsui 467bde0590 Add support for RealTek RTL8211B(L) PHY. From FreeBSD. 2008-04-05 07:52:08 +00:00
cegger 48bc07dd73 Allow to pass device_xname() to dk_sc_init() without build error
OK joerg
2008-04-05 00:02:55 +00:00
tsutsui a3fc79baa9 Split device_t/softc for iee(4), with misc cosmetic changes. 2008-04-04 17:03:42 +00:00
martin 5cc9b872da Make this compile w/o GEM_DEBUG on non-sparc systems 2008-04-04 16:26:52 +00:00
tsutsui d637b91d45 Split device_t/softc for more ncr5380sbc variants, with related changes. 2008-04-04 16:19:51 +00:00
tsutsui 5147571380 Split devict_t/softc for ncr5380sbc SCSI, and misc cosmetic changes. 2008-04-04 16:00:57 +00:00
xtraeme 6e993e74bb Fix fallout from previous commit. 2008-04-04 13:10:41 +00:00
tsutsui d9941582bf Split device_t/softc for le(4) and variants and misc cosmetic changes. 2008-04-04 12:25:06 +00:00
tsutsui 960221ac26 Split device_t/softc with misc related changes. 2008-04-04 12:20:48 +00:00
xtraeme 63e2f604f6 Split device_t/softc and other related cosmetic changes. 2008-04-04 10:11:01 +00:00
hannken ad882177bc Update includes. Builds again on sparc64.
Ok: Juan Romero Pardines <xtraeme@netbsd.org>
2008-04-04 10:10:20 +00:00
xtraeme 74fc6cf06c Split device_t/softc and other related cosmetic changes. 2008-04-04 09:49:49 +00:00
xtraeme 315a851ae4 Don't forget to unmap I/O space in the error paths.
Split device_t/softc and other related cosmetic changes.
2008-04-04 09:41:40 +00:00
xtraeme 6f1c8ce653 Don't forget to unmap I/O space in the error paths. 2008-04-04 09:30:55 +00:00
xtraeme 6137f9f2a1 Don't forget to unmap the I/O space in the error paths. 2008-04-04 08:44:22 +00:00
xtraeme 1b00b10fa6 Remove an unused softc member. 2008-04-03 23:16:23 +00:00
xtraeme d91e0059ae Add finsio(4). 2008-04-03 23:09:59 +00:00
xtraeme a68cbff5b2 Add the finsio(4) driver. This driver supports the Hardware Monitor
device in the Fintek LPC Super I/O chips, this includes the following
list:

- F71805F
- F71806F
- F71862FG
- F71872F
- F71882
- F71883F

This has been adapted from the fins(4) driver available in OpenBSD, which
only supported F71805F.

Tobias Nygren <tnn> and myself added support for the other chips; thanks go
to Tobias for testing the driver with a Fintek F71882 chip.
2008-04-03 22:46:22 +00:00
riz f0643af2a0 Support for Digi International 4 and 8 port boards, from OpenBSD.
XXX need to convert the rest of the PCI vendor/product IDs to macros
2008-04-03 20:45:08 +00:00
riz 791e9731ab Regen. 2008-04-03 20:43:27 +00:00
riz f40279c0a6 Digi International Neo 4 and 8 port serial boards. 2008-04-03 20:42:15 +00:00
drochner 42de29841b restore error handling in usbopen() (accidentally removed in a recent
commit), should fix a crash reported by Arto Huusko
2008-04-03 14:07:01 +00:00
xtraeme 9f5ac6b847 Add ARC_FW_DISK_INITIALIZED flag for device_state and do not treat
it as unknown; in this state the disk is correctly working so set it
as online.

Also remove some bogus htole32() for diskinfo->device_state.

This should fix PR kern/38299 by Hiroyuki Bessho.
2008-04-03 13:59:00 +00:00