Commit Graph

28209 Commits

Author SHA1 Message Date
joerg
dd579972c6 Explicitly get rid of constness. 2011-05-24 18:28:01 +00:00
joerg
b345e8d051 Use proper format string 2011-05-24 18:17:24 +00:00
joerg
d5634f35e3 Kill self-assignment 2011-05-24 18:11:34 +00:00
joerg
c22277f893 Use proper format string 2011-05-24 16:42:53 +00:00
joerg
c79f3b8ab9 Use proper format string. 2011-05-24 16:42:31 +00:00
joerg
ee2f528836 Properly use format string 2011-05-24 16:42:10 +00:00
joerg
0f07b5f4ad Use proper format string 2011-05-24 16:40:21 +00:00
joerg
093247893c Kill redundant () 2011-05-24 16:38:25 +00:00
joerg
5345cc0b23 Kill redundant () 2011-05-24 16:37:04 +00:00
joerg
0ce8eb378b Fix obvious condition snafu 2011-05-24 16:35:26 +00:00
joerg
23abb27f60 Fix logic error 2011-05-24 15:23:41 +00:00
mrg
bb85999d1f for SPI devices, allow platform code to set "scsi-initiator-id" device
property, and if set, use it instead of pfp.PortSCSIID.

on sparc64 systems on "scsi" or "scsi-2" devices, look from our node
up the tree for a "scsi-initiator-id" property, and if present, copy
it into the device properties.

this fixes mpt(4) issues on PRIMEPOWER250 (and probably other) systems.
idea from freebsd r207243/r207287, but reworked to use our device
properties instead of platform #ifdefs.


look in "device_type" as well as "name" for "ethernet" or "network",
and also look to see if a "local-mac-address" is set when choosing if
this may be a network device.  fixes bge(4) nul ethernet address on
the same PRIMEPOWER250.
2011-05-24 10:08:03 +00:00
mrg
046a9cdb65 avoid mutex locking botch and introduce an unlocked version of
pcppi_bell_stop().  fixes a problem reported in private email.
2011-05-24 09:28:03 +00:00
buhrow
463102d28a Suggested to oster@ and approved via private e-mail as a help to
people who are getting reconstruction failures.
2011-05-24 07:33:41 +00:00
joerg
a66d2b0d4c Don't use the name of the task queue as format string 2011-05-23 21:50:44 +00:00
joerg
f62ac60184 rf_panicbuf is already format, so don't pass it as format string to
panic()
2011-05-23 21:49:35 +00:00
joerg
4f9b8d73fe Don't use the device name as format string. 2011-05-23 21:30:56 +00:00
joerg
8c8d4b56e2 Don't use string literal as format string. 2011-05-23 21:18:55 +00:00
drochner
4bd7f95161 -remove references to crypto/arc4/arc4.* -- the code isn't used
anywhere afaics
 (The confusion comes probably from use of arc4random() at various places,
  but this lives in libkern and doesn't share code with the former.)
-g/c non-implementation of arc4 encryption in swcrypto(4)
-remove special casing of ARC4 in crypto(4) -- the point is that it
 doesn't use an IV, and this fact is made explicit by the new "ivsize"
 property of xforms
2011-05-23 15:37:35 +00:00
joerg
56a181efa4 Let's not be silly. Use a fancy "if else" to decide behavior of a bool
and hope cosmic radition doesn't create a third state.
2011-05-22 22:13:33 +00:00
jdc
22439c395e Fix corrupted packet problem on 100Mb/s half duplex links.
We need to set "echo disable" on the internal phy too, not just on the
external phy.
Tested on:
  SUNW,Sun-Blade-2000
  gem0 at pci0 dev 5 function 1: Sun Microsystems ERI Ethernet (rev. 0x01)
  ukphy0 at gem0 phy 1: OUI 0x0006b8, model 0x000c, rev. 1

Setting pointed out by bad@.
2011-05-22 11:19:23 +00:00
mrg
de5a910070 match some fujitsu bge interfaces seen on PRIMEPOWER 250/450 systems.
from Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.
2011-05-22 08:15:20 +00:00
mrg
cdcd8bddc9 regenerate. 2011-05-22 08:13:56 +00:00
mrg
8e96c9415e add some fujitsu ethernet id's and a new vendor id. partly from
Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.

XXX: move the #if 0'd usage of PCI_VENDOR_CITICORP inside the #if 0 code
XXX: region, as this id conflits with the (4th) fijutsi id.
2011-05-22 08:13:17 +00:00
msaitoh
ab5c26c930 Add newer Wireless WiFi Link 4965 devices, Centrino Wireless-N 1030
and Centrino Advanced-N 6230
2011-05-21 12:51:47 +00:00
msaitoh
939f31d12a regen 2011-05-21 12:49:50 +00:00
msaitoh
7d7e944c06 Add some iwn(4) devices. 2011-05-21 12:48:59 +00:00
tsutsui
823c8d62ae Add a kludge to make this build on hp300.
(anyway bus independent driver should not include bus dependent sti_pci.h)
2011-05-21 12:02:55 +00:00
reinoud
9ba99564ec Fix size reporting for DVD+R/DL and BluRay's; the value was trunced due to a
32 bit trunc due to a lacking type cast. The number of sectors for such media
can be more than 1<<32-1.
2011-05-20 09:23:37 +00:00
msaitoh
e43e4777a3 82579 support. 2011-05-20 06:06:59 +00:00
msaitoh
56f5ce9baa Add support for 6050(6250 and 6150) and 6005(6205).
TODO: update iwn.4 manpage.
2011-05-20 01:59:14 +00:00
msaitoh
40d6eb691f Add PCH2 support. 2011-05-20 01:51:36 +00:00
msaitoh
f3a272623e - Add PCH2 support.
- Add 82579 support.
  - Change PBA size for PCH from 10K to 26K as FreeBSD's em-7.1.7
- Add yet another 82567V support.
- Add ICH10+HANKSVILL support.
- Add 82580 quad-1000BaseX support.
2011-05-20 00:57:42 +00:00
msaitoh
4ea65b9c4a regen. 2011-05-20 00:50:47 +00:00
msaitoh
2ecc0b2cf4 Add Intel 82567V, 82580 Quad-1000BaseX and Hanksvill with ICH10. 2011-05-20 00:50:19 +00:00
msaitoh
6687e6b65a regen 2011-05-20 00:47:11 +00:00
msaitoh
8552d6843d Add Intel 82579 2011-05-20 00:46:53 +00:00
riastradh
1e0dbea92c Reject unaligned writes to cgd.
Fixes the following PRs:

PR kern/44515 (cgd dies on non-aligned writes to the raw device)
PR kern/44964 (cgd seems to panic on unaligned writes instead of giving EINVAL)

ok christos
2011-05-19 20:34:13 +00:00
dyoung
b11777e520 #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:02:43 +00:00
dyoung
399cdcdfe9 MI code must #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:01:59 +00:00
dyoung
a6b2b8396b PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name.  Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
2011-05-17 17:34:47 +00:00
mrg
8169e46991 move and rename the uvm history code out of uvm_stat to "kernhist".
rename "UVMHIST" option to enable the uvm histories.

TODO:
- make UVMHIST properly depend upon KERNHIST
- enable dynamic registration of histories.  this is mostly just
  allocating something in a bitmap, and is only for viewing multiple
  histories in a merged form.


tested on amd64 and sparc64.
2011-05-17 04:18:05 +00:00
mhitch
08cc54d62a I was allowing adapt_max_periph to use all available command slots, which
easily exceeds the maximum of 256 tags used by the scsipi layer because
the tag information from the scsipi layer was ignored and all the tagging
is handled implicitly internal to ciss(4).  But with the DIAGNOSTIC option,
the scsipi layer does a check for > 256 tags and will panic.  So, lets just
limit the adapt_max_periph to 256 so the scsipi layer won't try to user more.
2011-05-16 17:21:37 +00:00
drochner
0fac92398a fix detach() to avoid use-after-free problems:
-stop transfers before freeing data structures
 (and comment out a useless delay)
-free devinfo later
Hot-unplugging an USB cam while in use doesn't crash my box anymore now.
2011-05-16 10:53:19 +00:00
macallan
a37153870a don't leave a mess on screen when attaching, while there use VCONS_DONT_READ
if VCONS_DRAW_INTR is set
2011-05-16 00:59:37 +00:00
christos
97a122a2f7 update from OpenBSD by msaitoh. Tested on amd64. 2011-05-15 13:56:20 +00:00
msaitoh
22c389a767 Add support for Intel 6 series. 2011-05-15 01:00:52 +00:00
msaitoh
720f669b3d regen. 2011-05-15 01:00:07 +00:00
msaitoh
66284465df Add entries for Intel 6 series' devices. 2011-05-15 00:59:36 +00:00
martin
a9fb883f63 PR kern/44956: add support for Qinheng PCI cards to the puc driver 2011-05-14 22:07:38 +00:00