Commit Graph

3371 Commits

Author SHA1 Message Date
tron
6948b33a95 Add a missing blank line between two functions. 2003-08-24 09:38:53 +00:00
cjep
a94f967897 Make this compile with options DEBUG (part of PR#22582 from Frank Kardel). 2003-08-23 20:37:18 +00:00
dogcow
80f2705ab1 regen (add VIA VT6105) 2003-08-23 00:14:42 +00:00
dogcow
171b7c3fa5 add VT6105 support to vr(4) 2003-08-23 00:14:28 +00:00
jonathan
215937cb45 Check in hooks to fix checksum offload on bge devices. Empirical
observation is that some 570x devices can get themselves into a state
where they miscompute off-loaded TCP or UDP checksums on packets so
small that Ethernet padding is required.  Further obsevation suggests
that the bge checksum-offload hardware is adding those padding bytes
into its TCP checksum computation. (Once a 5700 gets in this state,
even a warm boot won't fix it: it needs a hard powerdown.)

Work around the problem by padding such runts with zeros: even if the
checksum-offload adds in extra zeros, the resulting sum will be correct.

Also, dont trust the checksum-offload on received packets smaller than
the minimum ethernet frame, in case the Rx-side has a similar bug.

Finally, on packets where we do trust the outboard Rx-side TCP or UDP
checksum, the bge did not include the pseudo-header. Set the
M_CSUM_NO_PSEUDOHDR bit as well as M_CSUM_DATA, and rely on
udp_input() or tcp_input() adding in the sum via in_cksum_phdr().
2003-08-22 03:32:35 +00:00
jonathan
25eeb02c06 Fix a bug in compaction of `DMA runt' fragmented packet chains:
if we m_dup() a packet to compactify it, and later run out of DMA
descriptors, bge_encap() will return ENOBUFS, hoping the driver will
try again later.  But we have just m_freem()'d the original chain
which was m_dup()'d, leaving a pointer to the just-freed packet header
in the tx queue.

Fix by always walking the chain, shuffling data towards the head;
except if we find a runt in the very last mbuf, we must borrow data
from its predecessor.

(Patch is verbatim from a third-party tree, apologies for any style woes.)
2003-08-22 03:03:20 +00:00
jonathan
9dbddd495b Remove #ifdef _OpenBSD__ code which sets the softc pointer `sc' by
passing an index into ubsec_cd.cd_devs[]: that causes too much
confusion with the checks that sc is non-null.
2003-08-21 20:00:15 +00:00
jonathan
65d419641b regen from pcidevs 1.567 with fix for typo in bcm5823 product-id. 2003-08-20 22:58:22 +00:00
jonathan
fcc087c11d Fix typo (s/5822/5823/) in line for bcm5823 device. 2003-08-20 22:56:13 +00:00
drochner
544307ba64 make the vlan stuff work 2003-08-20 17:41:38 +00:00
erh
a22558465d Add entry for Intel 82801EB AC-97 audio. Audio sounds fine with this,
although the mixer settings are a bit odd: outputs.master doesn't do anything,
but outputs.surround does.
2003-08-19 21:04:22 +00:00
taca
88b2ae484d make ahc(4) to recognize Adaptec 2915LP Ultra160 SCSI adapter. 2003-08-18 09:16:22 +00:00
itojun
dc4bf37abf support new quirk bits on debug output 2003-08-18 05:39:07 +00:00
chs
0e431087e5 regen 2003-08-17 18:06:22 +00:00
chs
b27931b073 add the uninorth ATA found in the latest G4s, and a highpoint IDE. 2003-08-17 18:03:29 +00:00
bouyer
1f8e327374 Add support for VIA VT8237 (KT600) IDE controller. From Stephen Degler in
PR port-i386/22453.
2003-08-17 15:52:06 +00:00
bouyer
104faa2485 Regen: Add 3com 3c940 Gigabit Ethernet, and VIA KT600 PCI devices. 2003-08-17 15:48:41 +00:00
bouyer
1a1c011785 Add 3com 3c940 Gigabit Ethernet, and VIA KT600 PCI devices. From Stephen Degler
in PR port-i386/22453
2003-08-17 15:47:11 +00:00
itojun
f80fd2c5ea accept 1518-byte frames (needed for vlan). Valtteri Vuorikoski 2003-08-15 07:29:34 +00:00
itojun
c2ab035d77 - check HDRTYPE early, and ignore if it is not supported (n > 2).
- defer access to interrupt configuration register, as its existence depends on
  HDRTYPE.
- add "skip particular funtion in multifunction device" functionality
  to quirk table.
- add GEODE/NS SC1100 quirk (now boots on soekris Net4801).
2003-08-15 07:17:21 +00:00
itojun
277f295364 regen 2003-08-14 23:39:47 +00:00
itojun
7f5e474ef7 s,PCI/ISA,PCI-ISA, 2003-08-14 23:39:22 +00:00
itojun
17b77b454e add National Semiconductors SC1100 (GEODE) PCI devices. 2003-08-14 23:38:34 +00:00
nonaka
fcfc3fe7cb Add support for another Intel Pro/100 variant. 2003-08-14 07:59:39 +00:00
tls
062dab3c81 Remove RND_FLAG_NO_ESTIMATE and comment claiming we can't estimate (which
means "count", in this context) the entropy we're adding because we poll the
device periodically.  Sure, we poll it periodically, but it's a hardware
RNG -- the data returned should be random no matter when we read the
register!
2003-08-12 09:46:46 +00:00
bouyer
395a6a0006 Corect offset for the promise "magic registers" (it depends on channel number).
This makes cable detect work properly for newer promise (pdc268 and newer).
2003-08-10 14:51:55 +00:00
jonathan
3a6b5e631c Config hooks for ubsec (Bluesteelnet, Broadcom 582x) driver. 2003-08-08 20:46:09 +00:00
agc
aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
wiz
510efbe0a6 regen (fix ID of Radeon 9100 Secondary) 2003-08-07 05:35:36 +00:00
wiz
3bd8bc4f5c Fix ID of Radeon 9100 Secondary; noted by Quentin Garnier. 2003-08-07 05:35:04 +00:00
mjacob
543f393343 Add in changes from Matt Thomas to check for 64 bit PCI stuff.
Note that a Qlogic 1020 is Fast Wide, not Ultra Fast Wide.
2003-08-07 01:05:56 +00:00
jdolecek
d2041674e6 tweioctl(): store the result of twe_param_get() directly to the right
variable rather than using (void *) temporary
should fix strict aliasing warning of gcc 3.3
2003-08-03 18:45:46 +00:00
wiz
972f20179d regen (avoid duplicate definition, PR 22331) 2003-08-01 11:55:42 +00:00
wiz
7f48a3b625 Avoid duplicate definitions. From Quentin Garnier in PR 22331. 2003-08-01 11:55:03 +00:00
jonathan
3d768ff89d Preliminary port of merged OpenBSD/FreeBSD ubsec driver for Bluesteel
Networks/Broadcom line of cryptographic accelerators.
2003-08-01 00:08:55 +00:00
jonathan
d2c4f02fe7 regen from pcidevs rev 560 (adding Sun's bcm582x-compatible crypto accelerators) 2003-08-01 00:07:32 +00:00
jonathan
0b84ccdd3b Add product IDs for Sun's bcm582x-compatible crypto accelerators 2003-08-01 00:05:27 +00:00
jonathan
dfdfebe4d9 Discard previous driver; it didnt really do anything.
Replace with  a new from-scratch port of  recent OpenBSD hifn7751 source,
with changes to the crypto-framework calls to fit Sam Leffler's rework.
(Some of the attach-time changes from the previous driver were carried over).
Many thanks to Quentin Garnier (cube@cubidou.net) for testing an pre-release
of the driver and finding a couple of missing initializations.

Note that RNG support is temporarily disabled, until a potential issue
with RNG quality is investigated and resolved.
2003-07-30 18:49:27 +00:00
thorpej
058f44ae26 Add support for the Intel PRO/1000 MT Quad Port server adapter; this
is just 2 i82546EB chips behind an IBM 133 PCI-X bridge.
2003-07-29 19:49:50 +00:00
thorpej
4f354cdf59 Regen: Add the product ID used for the i82546EB chips present on the
Intel PRO/1000 MT Quad Port Server Adapter.
2003-07-29 19:47:44 +00:00
thorpej
8b4ac67ee1 Add the product ID used for the i82546EB chips present on the
Intel PRO/1000 MT Quad Port Server Adapter.
2003-07-29 19:46:56 +00:00
martin
270669fdd8 Regen. 2003-07-29 07:43:48 +00:00
martin
d42f85d5f0 Add Ricoh 5C551 CardBus + FireWire product ID.
From FUKAUMI Naoki in PR 22292.
2003-07-29 07:42:51 +00:00
martin
eec6b03547 Intel 8255GM is GM, not PM (obviously a copy&pasto).
From FUKAUMI Naoki in PR 22293.
2003-07-29 07:41:43 +00:00
jonathan
f07336a03e regen from pcidevs rev 1.556 with vendor Cavium and product Nitrox. 2003-07-27 02:39:15 +00:00
jonathan
5eef6dfd20 Add PCI vendor Cavium and product code for their Nitrox XL crypto device. 2003-07-27 02:34:38 +00:00
jonathan
8a1b964b6b Regen from pcidevs 1.555 (Bluesteel,Broadcom security coprocessors) 2003-07-27 01:41:46 +00:00
jonathan
52fc5b6eec Add PCI vendor code for BlueSteel Networks (now part of Broadcom),
and PCI product codes for the Bluesteel/Broadcom family of security processors.
2003-07-27 01:16:10 +00:00
jdolecek
4ba1407d10 print some additional information about the controller on boot (from FreeBSD)
use aprint_* as appropriate
change some debug #ifdef DIAGNOSTIC messages into #ifdef DEBUG
make aenfmt[] more const
change twe_param_get() signature to take (struct twe_param **) last arg, and
  remove now unnecessary casts
2003-07-25 11:49:19 +00:00
kleink
e5ed3710bb Regen from 1.554. 2003-07-23 10:18:06 +00:00