Commit Graph

25003 Commits

Author SHA1 Message Date
christos
47e43241e2 protect kernel inline with _KERNEL 2009-01-12 02:26:16 +00:00
christos
b34c1a567e s/set/get/ 2009-01-11 23:55:25 +00:00
christos
ced9088db5 retain compatibility with old firm_event. Perhaps we should bump the protocol
version with an ioctl?
2009-01-11 23:36:39 +00:00
oster
6d132f42c6 Implement DIOCCACHESYNC for RAIDframe too. 2009-01-11 21:58:41 +00:00
mlelstv
8de4cc7236 Avoid crash under LOCKDEBUG by destroying a mutex correctly.
Also: move mutex init/destroy into attach/detach functions and
handle case where line discipline is closed before the irframe
device. Fixes PR kern/40271.
2009-01-11 14:28:13 +00:00
mlelstv
1c2f2889cc Register with pmf. 2009-01-11 14:21:48 +00:00
haad
a74b9dc067 Use 64bit long minor nuber in dm_dev structure. 2009-01-11 11:54:52 +00:00
haad
ae10a6c772 Fix aprint_debug after christos-time_t merge. 2009-01-11 11:44:23 +00:00
cegger
8c2b3a39bc make this compile 2009-01-11 10:58:26 +00:00
cegger
378bd0b618 make this compile 2009-01-11 10:47:37 +00:00
cegger
f8e41c4991 make this compile 2009-01-11 10:40:27 +00:00
cegger
e6e72079ad make this compile 2009-01-11 10:25:29 +00:00
cegger
08ebead94e make this compile 2009-01-11 09:51:38 +00:00
matt
eb01a7c3df Initialize sc->sc_dev before we use it. 2009-01-11 07:40:02 +00:00
christos
461a86f9bd merge christos-time_t 2009-01-11 02:45:45 +00:00
cegger
c288f70f98 use new exported constants from net80211.
no functional change.
2009-01-10 13:03:19 +00:00
cegger
13175d24c8 BCM4328 has MAC rev 12.
XXX Driver now tells me, this chip has unsupported PHY type 4.
2009-01-10 12:57:50 +00:00
cegger
48a2c14752 Attach on BCM4328. This chip supports 11n. 2009-01-10 12:55:45 +00:00
cegger
096c5722ac add flow control support. From OpenBSD. 2009-01-09 22:03:13 +00:00
cegger
f7112a92d1 add support for RTL8211C(L) phy.
From FreeBSD.
2009-01-09 21:56:35 +00:00
jmcneill
df68862dbf Make the "EULA not accepted" message a bit more informative, now reads:
EULA not accepted; please see the <driver>(4) man page.
2009-01-09 21:14:36 +00:00
macallan
d6ded78b71 Fix previous screwup.
This is the real bwi driver.
Ported by Taylor R. Campbell
2009-01-09 20:49:42 +00:00
macallan
b7893fb67e PCI attachment for the bwi driver
From Urban Boquist
2009-01-09 19:53:24 +00:00
macallan
c83792f07e A driver for Broadcom BCM4302 wlan controllers, otherwise known as
Airport Extreme.
Ported from Dragonfly and OpenBSD by Urban Boquist
2009-01-09 19:50:24 +00:00
briggs
9ee13eae71 According to the datasheet, temperatures on the LM75 are kept in
0.5 degC-precision the most-significant 9 bits of a 16-bit register.
Interpret them as such and simplify the conversion.
2009-01-09 17:20:31 +00:00
briggs
c43973de4b Provide a utility routine to configure/write the watchdog.
XXX This watchdog should eventually be integrated into the generic
    watchdog framework.
2009-01-09 16:09:43 +00:00
ahoka
805568190e Implement the required ioctls for running Xorg through /dev/ttyE0.
Reviewed by macallan@
2009-01-07 01:31:01 +00:00
jnemeth
f050d39171 regen 2009-01-07 00:40:51 +00:00
jnemeth
8c8c552278 fix typo in LUCENT ET1301 2009-01-07 00:40:09 +00:00
mrg
aab4d008e5 use the prom addresses except on MSIIEP.
this probably works on SB2000 now.
2009-01-06 04:04:55 +00:00
jakllsch
02513c1f9c Correct license. I have not formally contributed this to TNF.
However, ugensa.c was, so restore that licencse and append mine.

Also, use UT_*_VENDOR_INTERFACE instead of local defines of the same thing.
No functional change.
2009-01-05 17:22:18 +00:00
yamt
b1fea83762 remove extra semicolons. 2009-01-03 03:43:21 +00:00
haad
0e718155a1 Return ENOSYS during from dm_target_init routine these tow targets aren't
implemented yet.
2009-01-02 22:33:51 +00:00
briggs
bbc63cf490 Allocate enough space for the aac_pci_softc, not just the aac_softc. 2009-01-02 22:03:07 +00:00
jdc
ca92cdbafd Remove duplicated key symbol in UK keymap. 2009-01-02 13:09:36 +00:00
haad
2a2e81e0f1 Properly register dm_target_* modules with module framework. 2009-01-02 11:06:17 +00:00
haad
894d2ad3b7 Add stubs for mirror target, too. This target does nothing for now, but lvm
tools support mirror target and trying to create LV with mirrorred backend
caused panic in dm_table_load_ioctl.
2009-01-02 11:03:24 +00:00
haad
2547289caf Add more tasks and add more details about them. 2009-01-02 01:13:49 +00:00
haad
32013fd9f2 Add stripe target functions stubs. Stripe target must be present in dm driver
because without it lvm2tools will not create LVsi and eventualy panic system.

Problem reported by agc@.
2009-01-02 00:42:31 +00:00
jdc
79efdbb4ff Back out previous and clear the screen directly.
Pointed out by macallan@.
2009-01-01 13:53:07 +00:00
reinoud
339f5c5772 Add ISO partition detection enabling auto-detection of iso9660 and UDF
partitions on optical media like CD/DVD/BD but also on all other media if
there is no NetBSD disklabel or MBR label.

Also fix cd's readdisklabel arguments so the ioctl's arrive at the right
device (!) and update its default label to make more sense.
2008-12-30 19:38:36 +00:00
jmcneill
9f9ac957a5 Silence printf in common "device not found" error path. 2008-12-30 10:44:30 +00:00
pooka
13de128f76 Actually, revert previous - I doubt it would work with a non-rump kernel.
The filthy #ifdef _MODULE lives to stink another day.
2008-12-29 17:52:43 +00:00
pooka
7b9ae626a8 die filthy #ifdef _MODULE, die! 2008-12-29 17:47:08 +00:00
jdc
eebd19f78d On old chip revisions, clear the screen using rasops when attaching. 2008-12-29 14:42:15 +00:00
jdc
e3fc2b7c4b Clear the screen (via rasops) when attaching.
Pointed out by Bill Green on port-sparc.
2008-12-29 14:27:59 +00:00
mlelstv
0f2eef0070 fdcintr1 requires the mutex to be held. 2008-12-29 12:16:52 +00:00
jmcneill
63b42fed50 PR# port-i386/40284: add AMD Geode CS5536 audio driver; written by
SHIMIZU Ryo <ryo@nerv.org>
2008-12-28 15:16:24 +00:00
tsutsui
d88429017d Regen from miidevs rev 1.80:
> Fix a botched comment.
2008-12-27 10:39:04 +00:00
tsutsui
aa50416355 Fix a botched comment. 2008-12-27 10:38:15 +00:00
tsutsui
ff822508cf Regen from pcidevs rev 1.971:
> Fix tyop in previous.
2008-12-27 10:36:09 +00:00
tsutsui
62631acb1a Fix tyop in previous. 2008-12-27 10:35:08 +00:00
he
556cce3113 Follow up on the removal of MALLOC(), use malloc() instead. 2008-12-27 10:23:54 +00:00
jnemeth
5805e53b1d regen for et (Agere) driver 2008-12-27 09:05:22 +00:00
jnemeth
8cb5cf0f62 PR/39094 - Kaspar Brand -- Add et (Agere ET1310/ET1301) netowrk driver 2008-12-27 09:03:32 +00:00
jnemeth
7436f169a9 regen for et (Agere) driver 2008-12-27 08:56:50 +00:00
jnemeth
5b59b2b26d PR/39094 - Kaspar Brand -- Add et (Agere ET1310/ET1301) netowrk driver 2008-12-27 08:55:35 +00:00
he
ecff12ce83 Sprinkle #if NTCTRL > 0 so that this builds again without
warning that some static function is defined but never used.
2008-12-26 22:37:29 +00:00
macallan
efb62a12dd move callout_init(sc->sc_tick_ch) before we're trying to callout_stop()
the ticker.
2008-12-26 18:51:19 +00:00
tsutsui
3cf9bfd3aa Set all default geometry parameters (not only secpercyl and secsize)
before readdisklabel(9) on DIOCGDINFO so that we can get correct
media size via the ioctl. (usually floppy doesn't have a real disklabel)

Tested on i386 with 1.44M floppy.
2008-12-24 16:56:28 +00:00
jmorse
b400d28c38 Fix UVC webcam output by:
- Storing updated video format after user changes format
- Round up number of xfers queued to multiple of 8, due to ehci inefficiencies
- Remove random debugging line I slipped in earlier
2008-12-23 03:22:29 +00:00
macallan
698f27a0ae make this compile again with NWSDISPLAY==0 2008-12-22 23:46:22 +00:00
blymn
215b203640 Pay more attention to the state of the RF kill switch, such as don't
bring the interface up when the RF is off.
2008-12-22 11:32:04 +00:00
haad
9401ff0b03 Remove DM_TABLE_DEPS it is not used in kernel driver and it breaks build
of libdevmapper because it clashes with DM_TABLE_DEPS from dm-ioctl.h.
2008-12-22 02:20:04 +00:00
haad
1016f02c61 Remove done task and add new one. 2008-12-22 02:18:53 +00:00
he
dfe654dcfc Follow up the removal of the MALLOC() macro, use malloc() instead. 2008-12-21 18:01:42 +00:00
nonaka
8025a0b1ce Add VT8237S Integrated SATA Controller support. 2008-12-21 16:27:57 +00:00
nonaka
0b52d4c69a Regen. 2008-12-21 16:25:28 +00:00
nonaka
77c888b6df Add VIA VT8237S Integrated SATA Controller ID. 2008-12-21 16:23:53 +00:00
haad
cca8fb31f9 Add support for loading dm targets as separate modules. All targets except
linear can be loaded as module. Module is not loaded when there is target
with similar name already. Zero and error targets aresimple examples how
can be all future targets written to support dynamic loading. Target can't
be unloaded until there is at least one user.
2008-12-21 00:59:39 +00:00
haad
38805eb14c Fix error path in target_init call. When initializing target fails i have
to release table before I try to destroy it and I haveto unbusy device, too.
2008-12-21 00:53:27 +00:00
oster
73225b15a5 When unconfiguring an array where a reconstruct is in progress, abort
the reconstruct and wait for IOs to drain before pulling the plug.

Should fix the panic reported by der Mouse on tech-kern.
2008-12-20 17:04:51 +00:00
cegger
dcf705893e use M_ZERO on malloc() and remove subsequent bzero(). 2008-12-19 18:49:37 +00:00
haad
78284dcaf1 Add infrastructure needed to load device-mapper targets as modules.
Targets wasn't converted yet and at least snapshot target will be converted
in a near future.
2008-12-19 16:30:41 +00:00
haad
c9d0c62a0c Merge the haad-dm branch to -current. This branch adds LVM functionality to
the base NetBSD system. It uses Linux LVM2 tools and our BSD licensed
device-mapper driver.

The device-mapper driver can be used to create virtual block devices which
maps virtual blocks to real with target mapping called target. Currently
these targets are available a linear, zero, error and a snapshot (this is
work in progress and doesn't work yet).

The lvm2tools adds lvm and dmsetup binary to based system, where the lvm
tool is used to manage and administer whole LVM and the dmestup is used to
communicate iwith device-mapper kernel driver. With these tools also
a libdevmapper library is instaled to the base system.

Building of tools and driver is currently disable and can be enabled with
MKLVM=yes in mk.conf. I will add sets lists and rc.d script soon.

Oked by agc@ and cube@.
2008-12-19 15:24:03 +00:00
pgoyette
3ed3895de3 Add i2c bus address checking for these chips. All supported chips live
at predefined addresses 0x2c, 0x2d, or 0x2e.
2008-12-18 20:41:35 +00:00
cegger
9b87d582bd kill MALLOC and FREE macros. 2008-12-17 20:51:31 +00:00
cegger
77c3411230 make this compile 2008-12-17 19:35:09 +00:00
cegger
f51c42b9f0 make this compile 2008-12-17 19:09:56 +00:00
cegger
c04f959ef5 make this compile with AUDIO_DEBUG 2008-12-17 15:47:35 +00:00
cegger
ad15153381 make this compile with IYDEBUG 2008-12-17 15:41:24 +00:00
cegger
8d3de7484b make this build with AZALIA_DEBUG 2008-12-17 15:35:17 +00:00
christos
9a5d3f2817 replace bitmask_snprintf(9) with snprintb(3) 2008-12-16 22:35:21 +00:00
christos
761540f260 regen 2008-12-16 19:55:22 +00:00
christos
85947fef5e add more intel iwn devices 2008-12-16 19:54:52 +00:00
jakllsch
26f9d336c3 In case the PCI command bits aren't already set, do so before performing
an access that requires them to be.  From KIYOHARA Takashi.
2008-12-16 02:46:47 +00:00
jakllsch
9ff34ac12b Add siisata(4) to the lists. From KIYOHARA Takashi. 2008-12-16 02:14:24 +00:00
mhitch
2c6d71a592 More device_t/softc split fallout, this time in iop(4). Fix from
Juan Romero Pardines.  Tested on alpha by me.
2008-12-15 18:35:48 +00:00
elad
f4f1989ae8 PR/39559: Juan RP: veriexec(4): too easy to cause a NULL dereference
through it in kernel

Patch from PR applied with tiny modifications, thanks!

Discussed with blymn@ a while ago.
2008-12-14 23:20:23 +00:00
jmcneill
0af0b213b5 Remove debug printfs 2008-12-14 00:53:52 +00:00
jmcneill
3e8db25945 Add Elantech multi-touch driver. 2008-12-14 00:42:33 +00:00
sketch
8be734c633 Fix PGTBL sizes. 2008-12-13 20:12:13 +00:00
christos
64193bedec more debugging in the dump path. 2008-12-13 19:38:20 +00:00
tsutsui
3eda3c7d85 Revert part of previous that reverted part of rev 1.14
which didn't affect the bug. (use __func__ to print function names)
2008-12-13 17:32:53 +00:00
mrg
f4cdd8a3bc remove unused variable. 2008-12-13 05:54:57 +00:00
macallan
fc934dfa9a fix stride value returned by /dev/fb 2008-12-12 18:48:25 +00:00
macallan
20dab5963b device_t-ify 2008-12-12 18:46:41 +00:00
macallan
39ebde40e1 device_t-ification 2008-12-12 18:39:55 +00:00
macallan
302ae8fed9 add display type for Fujitsu AG-10e (oops) 2008-12-12 18:35:12 +00:00
tonnerre
3fd167219b Remove { 0, 0 } from the list of u3g devices. This entry is no longer
required in modern device lists due to sizeof() tricks. However, keeping
it makes u3g attach to HP ServerWorks mice and keyboards.
2008-12-12 07:49:46 +00:00
jmorse
beb501f394 PR#39651
Fix two problems in umass:
 * usb xfers being freed before being removed from pipe, leading to null deref
 * config_activate requests not supported, which leads to config_deactivate requests not being passed through. Spotted by jmcneill@

Added mechanism to usbdi allowing the default pipe to be aborted
2008-12-12 05:35:11 +00:00
hauke
b8c03f733b Fix warning about missing initializer that showed up in sparc64
builds, but, strangely enough, not in sparc builds.

Relevant for netbsd-{4,5} release branches.
2008-12-11 15:50:35 +00:00
mrg
2c4ff71b65 also attach if the "compatible" property matches, as seen on sb2000. 2008-12-11 07:09:00 +00:00
alc
a4c7f1185e Doh! What should have happened happens ...
Restore the check to see if the chip does MIC correctly when
WME is turned on. Btw, define IEEE80211_C_WME_TKIPMIC and fix build :/
2008-12-11 06:04:01 +00:00
alc
5d561f943e Sync ath(4) with the new HAL, mostly based on <jmcneill>'s patches.
Everything should be fine again !
2008-12-11 05:45:29 +00:00
kenh
95793981bc The wrong sense of the UIP register is used to test for a pending clock
update; this test is now correct.

mc146818_settime_ymdhms has been refactored to simply stop clock updates
while the time is being set.  Based on FreeBSD code and macros in
mc146868reg.h.
2008-12-11 00:17:21 +00:00
christos
453b04f5be fix PGTBL size detection on the intel 965GM. From Anon Ymous. 2008-12-10 15:48:49 +00:00
tsutsui
5352126149 Sync with src/sys/arch/amiga/dev/siop.c rev 1.59:
> Deal with unrecognized SCSI message byte - restart script to clear the
> ACK.  No longer hangs the driver when an unhandled message byte is seen.
2008-12-09 14:11:11 +00:00
dyoung
ce732c2d14 Distinguish the NetMos NM9845 Quad UART chip from the NetMos NM9845
Quad UART + One Parallel chip.
2008-12-08 19:32:39 +00:00
tron
e123b7f433 Force the nVidia nForce 630i MCP73 to attach to ahcisata(4) as well.
It would otherwise attach to pciide(4) and use PIO mode.

Patch submitted by Bernhard Moellemann in PR kern/40134.
2008-12-08 15:35:23 +00:00
pooka
37e35e961c Warn about large struct on stack in comment. 2008-12-08 11:23:39 +00:00
alc
8c6c22b7f1 Add support for a 8168C/8111C revision
- also disable jumbo frame on this adapter following the FreeBSD driver
 - merge redundant call to aprint_error_dev
2008-12-08 03:24:08 +00:00
mlelstv
1f5b658b8a Handle printing of _STR attribute with non-string data type gracefully. 2008-12-07 10:53:57 +00:00
dyoung
20baa33fe2 In wddetach(), avoid a crash by destroying the callout sc_restart_ch. 2008-12-05 18:20:19 +00:00
jdc
5c7dd34e28 Add wscons/vcons support for bw2 (sbus and P4). 2008-12-05 11:52:42 +00:00
tsutsui
48640c6ca2 Wrap long lines. 2008-12-05 11:17:38 +00:00
alc
0976fc9588 Fix regression introducted by the previous commit.
i915 and G33 Intel chipset family need special handling when writing an entry
to the GTT.

reported by: <tnn> [0]
tested by: <tnn>

[0]: http://mail-index.netbsd.org/tech-x11/2008/12/03/msg000276.html
2008-12-04 19:07:35 +00:00
tsutsui
f345c7c20a Don't pass uint8_t values to le16toh() in fxp_rx_hwcksum().
fxp(4)'s RX hwcksum results weren't used at all on big endian machines.

Checked by i82550 and vmstat -ev on macppc GENERIC kernel with
options INET_CSUM_COUNTERS,TCP_CSUM_COUNTERS,UDP_CSUM_COUNTERS.
2008-12-04 16:40:47 +00:00
tsutsui
0ef29d0844 Add a missed htole32() on the previous ip4csum-tx bug workaround. 2008-12-04 16:32:34 +00:00
tsutsui
2377d7c38d Sort Tx/Rx macro in previous. 2008-12-04 15:22:01 +00:00
ad
20d9c21a59 PR kern/40099 device_t/softc split broke cac(4)/ld(4): panic: iostat_unbusy 2008-12-04 11:48:14 +00:00
tsutsui
69a8a901bb Fix typo in comment. 2008-12-03 15:36:11 +00:00
tsutsui
540babdae2 Add a workaround for hardware ip4csum-tx bug and enable it.
Confirmed on i82550 rev 12 and UDP fragment packets by ttcp(1).
2008-12-03 15:34:38 +00:00
tsutsui
e6ada93fc6 Call BUS_DMASYNC_PREREAD more strictly on polling DMA descriptors. 2008-12-03 14:21:15 +00:00
tsutsui
e4ff32d44c Add RCS Id. 2008-12-03 13:55:20 +00:00
sketch
8f51fb3d31 Fix '||' vs '&&' mix-up from when ich9 support was added. Fixes nasty
EEPROM-trashing bug on ich8 and ich9 chipsets as described in

  http://mail-index.netbsd.org/current-users/2008/12/02/msg006435.html

caused by setting the wrong type of EEPROM.
2008-12-02 15:30:04 +00:00
christos
82b58f55f0 regen 2008-11-29 23:48:58 +00:00
christos
78b9002948 Add support for the Intel G45 AGP. From Arnaud Lacombe 2008-11-29 23:48:12 +00:00
jmcneill
61d5be8fc7 Don't select an endpoint with a larger packet size than the maximum for
the current video stream.
2008-11-28 23:31:11 +00:00
jmorse
4f7247f185 Modified uvideo_stream_init_desc to correctly calculate max packet size for high speed endpoints. 2008-11-28 17:20:02 +00:00
jmorse
3ce0341c47 Fixed high-speed isoc USB transfers, 64 bit capable host controllers have a different transfer descriptor to non-capable controllers.
Added dma-sync of data buffer before scheduling transfers
2008-11-28 17:18:21 +00:00
jdc
b75399d6f2 Add wscons/vcons support for cg3. 2008-11-28 07:57:04 +00:00
joerg
d54a83bf7a - ifconfig down support
- ALTQ support
2008-11-26 21:34:07 +00:00
matt
17f430185a u_int32_t -> uint32_t 2008-11-25 22:18:17 +00:00
pgoyette
986177f217 Ouch - too many bits to fit in a byte. 2008-11-22 19:25:38 +00:00
pgoyette
b016fe8ba2 JEDEC has published the DDR3 SPD standard; update driver to match.
Verified on my single DDR3 machine to still produce correct data.
2008-11-22 13:21:21 +00:00
christos
f63c93ecac PR/38735: Jonathan A. Kollasch: add the ability for cgd to be used on top of wedges 2008-11-21 20:14:20 +00:00
jdc
7892af0d0c Read the chip revision from the Sbus register. 2008-11-20 20:56:56 +00:00
jnemeth
4e826d168f regen for Corega CG-USBRS232R 2008-11-20 10:51:51 +00:00
jnemeth
55a2353845 PR/39971 - SHIMAOKA Shunsuke -- Recognize Corega CG-USBRS232R as a
serial device.
2008-11-20 10:50:42 +00:00
bouyer
fec31ce43e Check that vnd is not NULL before using it, return ENXIO if it is.
Avoids a panic when vnconfig -uF is used on a busy vnd.
2008-11-19 18:38:36 +00:00
matt
2c14b3c725 Regen. 2008-11-18 16:12:21 +00:00
matt
b0c5679ab1 Make more consistent (change capitalization) etc. Shrinks by 33 tokens
and 300 bytes.
2008-11-18 16:12:03 +00:00
ad
54ef467580 _KERNEL_OPT 2008-11-18 14:29:55 +00:00
jnemeth
cc34b6178d PR/39947 - Juan RP -- dbcool_detach implicitly called
sysmon_envsys_destroy() twice
2008-11-18 10:49:45 +00:00
cegger
db189eeadc SATA GEN3 speed is 6.0Gb/s 2008-11-18 09:52:10 +00:00
chris
d1214474bc Fix Yukon EC Ultra cold power up issue.
For the EC Ultra it is necessary to update some extra registers during
reset.  Without doing so causes the system to hang at boot.  The only
workaround I found was to PXE boot before booting into NetBSD.

This change is based on the code from FreeBSD's if_msk.c.  Specifically the
msk_phy_power function.

Also add an splnet/splx across mii_tick.  This matches most other network
drivers.

Change posted for review on 3rd Oct 2008 to tech-net.  No feedback
received.
2008-11-18 09:30:43 +00:00
matt
bcb2caec0b Regen. 2008-11-17 23:35:24 +00:00
matt
eadd097264 Store pcidevs in a more compact manner. Instead of many string with duplicate
words, store each word individual in a long string and then store offsets
in the string to that word.  This reduces the space needed by half.
2008-11-17 23:33:41 +00:00
joerg
a5be52d405 On resum-from-RAM explicitly restore PCI link device state before
reenabling interrupts. At least one BIOS doesn't do this automatically
as reported by Christoph Egger.
2008-11-17 23:29:49 +00:00
bouyer
5a45b84ca9 If we return an error make sure we don't return a b_resid of 0; or this
will trigger a KASSERT in physio_done(). Fix issue reported by Todd Kover
on tech-kern@
2008-11-17 21:19:03 +00:00
dyoung
ddbd8176f9 Reduce code duplication: most PHY drivers call mii_phy_add_media()
when they attach to the device tree, so call pmf_device_register(9)
once there instead of once in more than twenty drivers.
2008-11-17 03:04:27 +00:00
bouyer
99f68f2ca2 cpu_intr_p() doesn't account for software interrupts (e.g. callouts) so
we can't use it here. Rssurect ATACH_TH_RUN, backing out
src/sys/dev/ata/ata.c 1.101
src/sys/dev/ata/ata_wdc.c 1.90
src/sys/dev/ata/atavar.h 1.77
src/sys/dev/ic/wdc.c 1.255
src/sys/dev/scsipi/atapi_wdc.c 1.108
Should fix kern/39927 and kern/39725.
2008-11-16 19:31:21 +00:00
bouyer
5c26c1f703 Do not depend on physmem for pci_dma64_available(). On some systems (e.g. Xen,
or any system with non-contigous physical memory), physmem may not represent
the hightest physical address available.
Discussed on tech-kern@ some weeks ago.
2008-11-16 17:31:03 +00:00
pgoyette
3dbe765413 For DDR3, the number of physical banks stored in the EEPROM needs to be
incremented by 1.
2008-11-16 14:03:48 +00:00
tsutsui
2a3ae26e88 Fix tyop in #ifdef TLDEBUG part. 2008-11-16 02:11:29 +00:00
blymn
a920095679 Actually declare the structures used in iwn_scan_hdr instead of using
pointer arithmetic to create the elements on the fly.

Other changes to scan routine taken from FreeBSD driver.
2008-11-13 12:04:09 +00:00
phx
3e7e644efc Added missing #include <net/if_ether.h> for ether_ioctl(). 2008-11-12 21:15:49 +00:00
joerg
4c4dba8748 Cache wpi firmware in memory, free it only on invalid content or when
the last user is detached. This stops wpi from accessing the disk on
resume.
2008-11-12 18:23:08 +00:00
jmcneill
d6b7340a23 Add support for Realtek ALC269 as found in Eee PC 1000HA. 2008-11-12 13:33:10 +00:00
ad
0efea177e3 Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
2008-11-12 12:35:50 +00:00
pgoyette
438c6057be Fix typo in previous, and wrap a panic with #ifdef DIAGNOSTIC 2008-11-11 19:03:06 +00:00
pgoyette
0ba7ea9569 Initialize event's "previous sent state" based on the event monitor type,
regardless of sensor type.  Fixes spurious "device: normal state on
'sensor-name' messages (reported by ad@) which interfere with sysinst.
2008-11-11 16:55:01 +00:00
cegger
e60c84c6c6 PR kern/39608: bge(4) constant freeze on BCM5906M:
Correct DMA values. Patch from Karl Uwe Lockhoff via tech-kern.
2008-11-10 22:50:18 +00:00
joerg
5787d39971 Fix typo in fw name. 2008-11-10 18:05:12 +00:00
bjs
8b2e3ec035 Use agp_flush_cache() instead of wbinvd(). 2008-11-09 14:26:14 +00:00
pgoyette
7355d18b97 Leave the task of displaying sensor states to envsys_sysmon() unless we
are in debug mode.
2008-11-09 13:54:06 +00:00
pgoyette
18913ef363 Temp sensor should report a critical-overtemp condition (ENVSYS_SCRITOVER)
not a simple critical (ENVSYS_SCRITICAL) condition.
2008-11-09 03:36:04 +00:00
christos
4c2b1bf33a PR/39885: Sébastien Bocahu: add R500 chips support 2008-11-09 02:35:42 +00:00
christos
2688948f51 regen. 2008-11-08 17:27:15 +00:00
christos
71ede8ab96 Support for Intel G35 as found on Asus P5E-VM HDMI motherboard from
Milos Negovanovic
2008-11-08 17:26:28 +00:00
dyoung
8e791deb98 To finish the device_t/softc split, convert some casts to struct
auich_softc * to device_private() calls.
2008-11-08 00:26:35 +00:00
he
761f38db5c In wsdisplay_kbdholdscreen(), just return if sc->sc_focus is NULL.
There is apparently no guarantee sc->sc_focus will be non-NULL,
as proved by a crash I experienced earlier today (admittedly on 4.0.1).
2008-11-07 19:33:13 +00:00
joerg
866b295da8 Match image name with upstream distfiles. 2008-11-07 14:58:27 +00:00
dyoung
de87fe677d *** Summary ***
When a link-layer address changes (e.g., ifconfig ex0 link
02🇩🇪ad:be:ef:02 active), send a gratuitous ARP and/or a Neighbor
Advertisement to update the network-/link-layer address bindings
on our LAN peers.

Refuse a change of ethernet address to the address 00:00:00:00:00:00
or to any multicast/broadcast address.  (Thanks matt@.)

Reorder ifnet ioctl operations so that driver ioctls may inherit
the functions of their "class"---ether_ioctl(), fddi_ioctl(), et
cetera---and the class ioctls may inherit from the generic ioctl,
ifioctl_common(), but both driver- and class-ioctls may override
the generic behavior.  Make network drivers share more code.

Distinguish a "factory" link-layer address from others for the
purposes of both protecting that address from deletion and computing
EUI64.

Return consistent, appropriate error codes from network drivers.

Improve readability.  KNF.

*** Details ***

In if_attach(), always initialize the interface ioctl routine,
ifnet->if_ioctl, if the driver has not already initialized it.
Delete if_ioctl == NULL tests everywhere else, because it cannot
happen.

In the ioctl routines of network interfaces, inherit common ioctl
behaviors by calling either ifioctl_common() or whichever ioctl
routine is appropriate for the class of interface---e.g., ether_ioctl()
for ethernets.

Stop (ab)using SIOCSIFADDR and start to use SIOCINITIFADDR.  In
the user->kernel interface, SIOCSIFADDR's argument was an ifreq,
but on the protocol->ifnet interface, SIOCSIFADDR's argument was
an ifaddr.  That was confusing, and it would work against me as I
make it possible for a network interface to overload most ioctls.
On the protocol->ifnet interface, replace SIOCSIFADDR with
SIOCINITIFADDR.  In ifioctl(), return EPERM if userland tries to
invoke SIOCINITIFADDR.

In ifioctl(), give the interface the first shot at handling most
interface ioctls, and give the protocol the second shot, instead
of the other way around. Finally, let compatibility code (COMPAT_OSOCK)
take a shot.

Pull device initialization out of switch statements under
SIOCINITIFADDR.  For example, pull ..._init() out of any switch
statement that looks like this:

        switch (...->sa_family) {
        case ...:
                ..._init();
                ...
                break;
        ...
        default:
                ..._init();
                ...
                break;
        }

Rewrite many if-else clauses that handle all permutations of IFF_UP
and IFF_RUNNING to use a switch statement,

        switch (x & (IFF_UP|IFF_RUNNING)) {
        case 0:
                ...
                break;
        case IFF_RUNNING:
                ...
                break;
        case IFF_UP:
                ...
                break;
        case IFF_UP|IFF_RUNNING:
                ...
                break;
        }

unifdef lots of code containing #ifdef FreeBSD, #ifdef NetBSD, and
#ifdef SIOCSIFMTU, especially in fwip(4) and in ndis(4).

In ipw(4), remove an if_set_sadl() call that is out of place.

In nfe(4), reuse the jumbo MTU logic in ether_ioctl().

Let ethernets register a callback for setting h/w state such as
promiscuous mode and the multicast filter in accord with a change
in the if_flags: ether_set_ifflags_cb() registers a callback that
returns ENETRESET if the caller should reset the ethernet by calling
if_init(), 0 on success, != 0 on failure.  Pull common code from
ex(4), gem(4), nfe(4), sip(4), tlp(4), vge(4) into ether_ioctl(),
and register if_flags callbacks for those drivers.

Return ENOTTY instead of EINVAL for inappropriate ioctls.  In
zyd(4), use ENXIO instead of ENOTTY to indicate that the device is
not any longer attached.

Add to if_set_sadl() a boolean 'factory' argument that indicates
whether a link-layer address was assigned by the factory or some
other source.  In a comment, recommend using the factory address
for generating an EUI64, and update in6_get_hw_ifid() to prefer a
factory address to any other link-layer address.

Add a routing message, RTM_LLINFO_UPD, that tells protocols to
update the binding of network-layer addresses to link-layer addresses.
Implement this message in IPv4 and IPv6 by sending a gratuitous
ARP or a neighbor advertisement, respectively.  Generate RTM_LLINFO_UPD
messages on a change of an interface's link-layer address.

In ether_ioctl(), do not let SIOCALIFADDR set a link-layer address
that is broadcast/multicast or equal to 00:00:00:00:00:00.

Make ether_ioctl() call ifioctl_common() to handle ioctls that it
does not understand.

In gif(4), initialize if_softc and use it, instead of assuming that
the gif_softc and ifp overlap.

Let ifioctl_common() handle SIOCGIFADDR.

Sprinkle rtcache_invariants(), which checks on DIAGNOSTIC kernels
that certain invariants on a struct route are satisfied.

In agr(4), rewrite agr_ioctl_filter() to be a bit more explicit
about the ioctls that we do not allow on an agr(4) member interface.

bzero -> memset.  Delete unnecessary casts to void *.  Use
sockaddr_in_init() and sockaddr_in6_init().  Compare pointers with
NULL instead of "testing truth".  Replace some instances of (type
*)0 with NULL.  Change some K&R prototypes to ANSI C, and join
lines.
2008-11-07 00:20:01 +00:00
cegger
1f7782b4ba wrap lines. no functional change. 2008-11-06 17:50:59 +00:00
blymn
3286a94bad Move init of essid to the attach code. 2008-11-06 12:03:43 +00:00
hannken
a797621996 fss_bs_thread: initialize b_error and b_resid.
Before it was possible for fss reads to return bogus b_resid values
leading to "delta > 0" panics from physio().
2008-11-05 19:30:57 +00:00
blymn
57e1492b11 * Disable aborting the scan for the moment - it causes a firmware error if
a scan was never initiated which breaks WEP and open wireless connections
* Make sure the ESSID is cleared.
2008-11-05 09:42:20 +00:00
pgoyette
287fe7d56d Fix cut&paste error in prev 2008-11-04 22:16:15 +00:00
pgoyette
3880525312 Restore previous behavior concerning CRITICAL events. Send an event
whenever state enters or exits CRITICAL, or whenever value of sensor
changes while the state is CRITICAL.
2008-11-04 22:06:10 +00:00
reinoud
3a0f6cde46 Implement powersave for ixpide(4). Tested it on an Asus IXP250 with IGP.
It seems to sleep and awake fine now without errors or warnings.
2008-11-04 16:05:29 +00:00
cegger
bae2482c7f regen. 2008-11-04 13:23:41 +00:00
cegger
982f9b9410 fix typo in previous: prodcut -> product 2008-11-04 13:22:29 +00:00
cegger
b8c4e4c3fe regen. 2008-11-04 12:30:54 +00:00
cegger
2fdc34ba95 add ATI RD790 and RD890 chipset ids 2008-11-04 12:30:07 +00:00
bjs
bedd1969ee Allow writing to register R300_VAP_PVS_WAITIDLE; allows
r300 driver to work with Mesa-7.2!
2008-11-04 02:26:44 +00:00
tls
ccd72c0274 Remove include of useless i386/include/clock.h which broke builds on
other architectures.
2008-11-03 04:31:01 +00:00
hans
f8681c958c Initialize sc->sc_dev before using it, and use it as argument for the
interrupt handler. Makes this work again. OK by christos.
2008-11-01 20:31:26 +00:00
hans
f86fa4502c Make the driver work (except for setting display brightness) on older
machines by removing the check for the CMOS method from thinkpad_match.
OK by jmcneill.
2008-11-01 19:22:25 +00:00
nakayama
0b0fb12976 Add dependency on sysmon_envsys to admtemp. 2008-10-30 12:52:46 +00:00
darran
0e11c6bfd5 NetOctave NSP2000 driver, ported from FreeBSD and integrated with
opencrypto by CoyotePoint Systems.  The FreeBSD driver source was recently
made available by NBMK Encryption Technologies.

The port includes some currently unused code which implements kernel and
user space interfaces for the driver in FreeBSD.  These are left in at this
time to facilitate the port of these interface to NetBSD if they are of
interest.
2008-10-30 12:02:14 +00:00
joerg
68ab5fbb16 Add glue to ship Intel firmware images. For ipw and iwi require user to
accept the EULA via sysctl as discussed with core@.
2008-10-30 00:27:31 +00:00
jkunz
fb8ec4c35a Ported alipm(4) and admtemp(4) from OpenBSD. 2008-10-29 17:26:56 +00:00
joerg
71e504882f Remove E220 quirk -- u3g(4) does implement that directly. 2008-10-27 21:46:43 +00:00
christos
56c00d466d another TI bridge. 2008-10-25 18:46:38 +00:00
matt
17996c3ca8 Simplify NOERS case. Revert most changes back to 1.283. 2008-10-25 17:50:29 +00:00
christos
e8d515e422 regen. 2008-10-25 17:37:31 +00:00
christos
b311f98821 The Sierra Wireless USBConnect 881 card presents itself as umass containing
the driver to be installed for it. We don't need this crap. Tell it to become
a modem.
2008-10-25 17:35:44 +00:00
tsutsui
9cb64a72eb Fix a botch in an FIFO check for 16650. 2008-10-25 15:21:57 +00:00
he
833cc988ed Replace a "type" with "sc->sc_type" to make this build again for cobalt
(and I'm sure a few others as well).
2008-10-25 10:05:43 +00:00
matt
f759cc96ec Add support for 16550 chips without an Enhanced Register Set. 2008-10-24 04:43:08 +00:00
bouyer
3e37931111 Change mfi_mgmt() to take a mfi_ccb and scsipi_xfer as argument, as
mfi_scsi_io does. Do not tsleep in mfi_mgmt waiting for completion;
let the caller handle it. If mfi_mgmt() is called with a non-NULL scsipi_xfer
have mfi_mgmt_done() wake it up, else wake up the mfi_ccb.
mfi_poll()/mfi_post() is up to the caller.

mfi_scsipi_request(): handle SCSI_SYNCHRONIZE_CACHE_10 as we do for other
commmands: have mfi_mgmt() fill in the ccb, queue of poll the ccb and
return.

Introduce mfi_mgmt_internal() which behaves like mfi_mgmt() did (tsleep
waiting for completion). Use it for internal and ioctl management
requests.

Fix kern/39297 from Greg Oster (mfi calls tsleep() from mfi_intr()),
tested by Mark Davies.
2008-10-23 21:00:06 +00:00
jakllsch
76a01a44a6 Allow wedges to be created for all defined partitions on a GPT disk.
Use __arraycount on the GUID to type mapping array.
Add HFS to the list of types with dkw_ptypes.

reviewed by cube.
2008-10-23 19:37:40 +00:00
cegger
f982353b74 regen. (how is it possible to have conflicts in the repo in a generated file?) 2008-10-22 12:10:48 +00:00
haad
543e3d0539 Add HL-340 usb2Serial addapter. 2008-10-22 10:35:50 +00:00
haad
b392ebc9c0 I forgot to commit this after regen. 2008-10-22 10:33:20 +00:00
haad
27418aa546 Regen. 2008-10-22 10:27:28 +00:00
haad
49e162a888 Add product/vendor ID for my USB2serial adapter. 2008-10-22 10:23:51 +00:00
jun
3caafa9653 Add
corega K.K CG-WLUSB2GPX
2008-10-21 12:20:44 +00:00
macallan
eab8a03193 regen 2008-10-21 06:04:37 +00:00
macallan
d0fc6875dc add 1152x900 at 66Hz and 76Hz 2008-10-21 06:03:39 +00:00
rtr
e9a223cbb9 - fix crazy condition that always evaluates to false without this
iwn_fix_channel() never gets called.
- remove hardcode to ic->ic_channels[11]

fixes a problem in associating to access points
2008-10-20 09:33:48 +00:00
apb
96230fab84 Use ${TOOL_AWK} instead of ${AWK} or plain "awk" in make commands.
Pass AWK=${TOOL_AWK:Q} to shell scripts that use awk.
2008-10-19 22:05:19 +00:00
jmcneill
48100f10e4 Calculate maxdispoffset rather than hard-coding it. Fixes scrolling in
80x25 mode.

XXX This doesn't handle odd modes like 80x30 on 640x480, but the driver
didn't allow that selection previously so at least it's an improvement
over the previous behaviour.
2008-10-19 17:47:38 +00:00
jmcneill
0215b24d60 vga_cnattach: calling wsdisplay_screentype_pick with a NULL type will
select the first entry in the list, which overrides the selected screen
type. Only call it a second time if the original selection is invalid.
2008-10-19 17:20:38 +00:00
joerg
7e64fc36e4 Remove two devices that are handled by ubsa and might need special
handling from u3g until further reports. Move a number of data cards
from ugensa to u3g based on the FreeBSD list.
2008-10-19 11:40:02 +00:00
joerg
5519d99b9a Regen. 2008-10-19 11:37:44 +00:00
joerg
74069cabed Sync list of 3G cards with FreeBSD. 2008-10-19 11:36:11 +00:00
bouyer
b54b5daec9 kern/39757 from mishka@:
Bump CISS_MAX_CDB from 12 to 16 bytes. For volumes larger than 2TB,
the scsipi layer will have to use 16 bytes SCSI commands, which would be
rejected by ciss. The cdb buffer already 16 bytes long, and a look at the
FreeBSD driver shows there's no reasons to limit SCSI commands to 12 bytes.
2008-10-18 18:53:20 +00:00
jmcneill
e38f75f075 Add fan sensor support, from Thomas E. Spanjaard 2008-10-18 16:35:40 +00:00
blymn
2352db325b Make scan abort command async as newstate is called from an interrupt
context so we cannot ltsleep.
2008-10-18 15:55:27 +00:00
joerg
f48b5b12a3 Make u3g send an eject command to Novatel MC950D devices. Explicitly
attach as device for umass mode on MC950D and the Huawei devices to
supersede the umass quirk.
2008-10-18 09:43:44 +00:00
christos
3bab625c77 add missing free. 2008-10-17 17:15:09 +00:00
abs
3a8955a63e Fix compilation if !INET6 2008-10-16 21:22:32 +00:00
bouyer
2a95f206c2 Regen: fix entry description. 2008-10-15 18:31:16 +00:00
bouyer
dd0d5e5a64 Fix entry description. 2008-10-15 18:30:29 +00:00
bouyer
34fc5ca03c Regen: add more ICH9 ethernet devices. 2008-10-15 17:34:51 +00:00
bouyer
cf67af4a36 Add support for more ethenet ICH9 devices. Tested by Pouya D. Tafti
on a 82801I_IGP_M_AMT.
2008-10-15 17:32:04 +00:00
wrstuden
fc7511b00e Merge wrstuden-revivesa into HEAD. 2008-10-15 06:51:17 +00:00
pgoyette
6bd90145d1 If we're doing a 2-byte read, return the entire 16-bit result. 2008-10-15 02:21:48 +00:00
jmcneill
e2728f33e6 ehci_dump_itd and _sitd are unused 2008-10-14 18:32:53 +00:00
jmcneill
b8aea8193c kern/39727: race condition in ehci isoc abort xfer path
From Jeremy Morse:

  * Serialize access to the ehci intrlist.
  * Change the ehci intrlist to a tailq so xfers are not queued out of order.
  * In ehci_check_itd_intr, don't treat a transfer error as an indication
    that the xfer is no longer active.
2008-10-14 18:12:38 +00:00
bjs
8ff9ca028e Fix handling of lists with a single entry in list_for_each_safe();
this also plugs a memory leak.
2008-10-14 14:55:28 +00:00
bouyer
49f5440bbe Add support for jumbo frames.
Some performances tweaks (including better defaults for interrupt mitigation)
2008-10-13 17:57:32 +00:00
pgoyette
54a63b92b0 Fix up the bus-independant probe code. Patch from njoly@ 2008-10-13 12:44:46 +00:00
blymn
f4f3894a02 DMA fixes thanks to rtr & skrll
Don't set tsf in auth, this stops firmware errors on WPA renegotiation
Various other tweaks that the linux driver seems to have that we did not
2008-10-13 12:41:45 +00:00
blymn
b7f2d89842 Correct beacon structure
Add scan abort command
Add TX status codes from FreeBSD driver
2008-10-13 12:39:26 +00:00
pgoyette
fffe1c84a7 Remove duplicated copy of the file - no idea where it came from. 2008-10-13 11:16:00 +00:00
is
93d402c342 Load firmware from .../firmware/stuirda, not ../uirda, to avoid confusion. 2008-10-13 10:01:24 +00:00
pgoyette
72ef407c2a Consistent use of softc member name - fixes build breakage from previous. 2008-10-12 23:07:32 +00:00
martin
e1ae3c4114 Move printing of the "polling" message at attach time out of the wrong if
scope, so that it is actually printed even in non-error cases.
Suggested by jmcneill.
2008-10-12 19:01:01 +00:00
pgoyette
eacec974a3 Add an i2c attachment for the LM78 family of temp sensor/fan control
Tested by Martin Husemann
2008-10-12 13:17:28 +00:00
pgoyette
a3cdedf605 Move the {read,write}reg() routine addresses into the dbcool_softc so
that we can use different routines for macppc's ki2c attachment.  Fixes
problems reported by Robert Fritzsche on current-users@ list.
2008-10-12 12:49:04 +00:00
bouyer
7940b74931 Fix reading MAC address from eeprom: don't forget to read the last
descriptor.
While there, white space fixes.
2008-10-12 11:27:12 +00:00
dholland
ba8d06c990 Fix mangled attach output. Noted by Jari Kuittinen. 2008-10-12 02:15:02 +00:00
bouyer
540cab1ec8 jme(4), a driver for JMicron Technologies JME250 Gigabit Ethernet and
JME260 Fast Ethernet PCI Express controllers.
Written with a lot of cut-n-paste from the FreeBSD jme(4) driver.
No support for jumbo ethernet frames yet (but should come soon).
Thanks to JMicron Technologies for providing me sample boards and
documentation for this work.
2008-10-11 21:54:11 +00:00
dholland
f446f1c471 Print a message on two previously silent error paths in auvia_attach. 2008-10-11 20:08:15 +00:00
jmcneill
c93dbbaca8 Revert previous. 2008-10-11 13:56:51 +00:00
jmcneill
55c0ca3b69 ehci_check_itd_intr: correct logic for checking for active itds 2008-10-11 05:17:12 +00:00