Commit Graph

4185 Commits

Author SHA1 Message Date
mycroft ce1d5354af Regen. 2004-07-21 16:39:51 +00:00
mycroft 6f1f410fae Add SIS 741. 2004-07-21 16:39:38 +00:00
scw 64daaf41f0 - Don't hardcode buffer size and block size in esa_round_buffersize() and
esa_round_blocksize().
 - Fix esa_trigger_output() and esa_trigger_input() to initialise the
   channel's buffer/block size using the supplied parameters.
 - While here, simplify esa_intr().

This gets kphone working on my esa(4)-equipped laptop.
2004-07-21 07:36:18 +00:00
msaitoh ad99aeca1d Add Adaptec AAR-1210SA serial ATA RAID.
RAID is not supported by this driver.
2004-07-19 17:04:36 +00:00
mycroft db93484e06 Remove special-casing of Intersil product name. 2004-07-17 20:05:39 +00:00
mycroft ce97c8c1d8 Regen. 2004-07-17 20:05:02 +00:00
mycroft a673957e97 Fix Intersil product names. 2004-07-17 20:04:32 +00:00
tron 0237ca34a7 Reduce transmit queue len to 16 for the Intel i82547 to avoid FIFO
overruns. This fixes the horrible send performance reported in
PR kern/23782. Reviewed by Frank van der Linden and Jason R. Thorpe.
2004-07-15 15:21:57 +00:00
junyoung 69051bd3c3 Add support for 3Com 3c920B-EMB-WNM Integrated Fast Ethernet,
as found on Asus P4R800-VM motherboards.

From BL on Korea BSD User Forum (sorry but I don't know his real name).
2004-07-15 13:18:08 +00:00
junyoung 88642578e4 Regen for 3c920B-EMB-WNM Integrated Fast Ethernet. 2004-07-15 13:11:36 +00:00
junyoung 4240a2f1f9 Add 3Com 3c920B-EMB-WNM Integrated Fast Ethernet. 2004-07-15 13:09:21 +00:00
tron 742e1a4221 The Intel i82547EI gigabit ethernet controller isn't really a PCI
device. So instead trying to find and print out the PCI bus properties
mark it as a CSA device.
2004-07-13 07:29:37 +00:00
tron 7df6314408 Make this build if WM_DEBUG is defined. 2004-07-12 14:04:36 +00:00
nathanw 86906dceb8 Remove SKIP_FUNCn quirks for SC1100 companion chip; the fix to SMM in
i386/identcpu.c renders it counterproductive.

(this was the only use and the reason for the invention of the
SKIP_FUNCn quirk; it should probably be removed entirely).
2004-07-10 21:30:58 +00:00
bouyer 8e03c54653 Add geodeide(4), a driver for the AMD Geode CS5530A IDE controller.
Tested by Ian Zagorskih (ianzag at megasignal.com).
2004-07-09 18:38:37 +00:00
mycroft 673c114d25 Keep track of what we set the interrupt mask to, rather than reading it from
the chip.
2004-07-09 05:08:22 +00:00
mycroft b09c8ea34a Attempt to make these safer against stray interrupts. 2004-07-09 02:49:37 +00:00
mycroft 2728fe0f3f Clean up. Attempt to make these safer against stray interrupts. 2004-07-09 02:42:45 +00:00
mycroft 921c2474ad There's no need to halt the input and output pipes in the close routine --
audio_close() takes care of this.
2004-07-09 01:02:32 +00:00
kleink 8e491dbabd In addition to alpha, grossly work around the 24-bit limitation of the
Audio 1 DMA engine by allocating through the ISA DMA tag on amd64
and i386.
2004-07-08 21:33:45 +00:00
drochner 315673e79a support the game port on eap1371
This is only usable with some caution because these soundcards only
allow to map IO port 0x20x for this, thus bypassing PCI address
management. Very likely this will only work on primary PCI buses, and there
is some potential for conflicts with ISA devices as well.
(XXX cannot be detached because the "joy" driver doesn't support it yet)
2004-07-08 19:39:00 +00:00
mycroft a127f24934 Program the "MaxFrameSize" register so that it's correct for VLAN
encapsulation, per PR 20195.
2004-07-08 18:27:14 +00:00
kleink 1cc7b8c1ac Fix AUDIO_DEBUG printf formats. 2004-07-08 18:08:58 +00:00
martin 4e55ebafa5 Give a magic value a name - inspired by a post on the FreeBSD isdn mailing
list.
2004-07-06 08:53:16 +00:00
mycroft 3b5c748c56 Regen. 2004-07-05 19:13:17 +00:00
mycroft 96c64a8768 Add the CSB5 LPC bridge. 2004-07-05 19:12:30 +00:00
mycroft 1fc8e6461a Support for the VS-Com PCI-210H 2s/1p card, from PR 18478. 2004-07-04 10:02:03 +00:00
wiz d05ee1275d regen from pcidevs, so that this file has the correct CVS Id. 2004-07-04 08:37:58 +00:00
mycroft e8dd6e3b10 Update Serverworks chip IDs, per:
http://www.plasma-online.de/english/identify/picture/serverworks.html
This seems remarkably more sane.
2004-07-04 05:51:58 +00:00
is 020c431dc5 disestablish the interupt if we fail to (among other things) download
the firmware successfully. This prevents the kernel from crashing later
at interupt enable time, if firmware download fails like with my 3c990B
card.
2004-07-01 08:34:24 +00:00
mycroft d5be908514 This should be done in the HAL, but until then...
Hack the match function to accept an alternate Atheros vendor ID by munging it
to look like the expected one.  This is needed for DWL-G520 cards (which
otherwise "just work").
2004-06-30 05:58:17 +00:00
kleink eb97ad7f0b Remove redundant tga_getconf() and tga_identify() prototypes. 2004-06-29 21:32:42 +00:00
briggs e5c5b706bc When the Silicon Image 3112 retries a PCI memory read command, it
may retry it as a memory read multiple command under some circumstances.
This can totally confuse some PCI controllers, so ensure that it
will never do this by making sure that the Read Threshold (FIFO
Read Request Control) field of the FIFO Valid Byte Count and Control
registers for both channels (BA5 offset 0x40 and 0x44) are set to
be at least as large as the cacheline size register (the unit of
measure for these registers is 32 bytes).
2004-06-23 14:40:13 +00:00
bouyer dac9c603d0 Regen for pcidevs 1.628: Add the Netelligent 10/100 TX variant found on the
Compaq Proliant Professional Workstation 5100.
2004-06-15 19:48:27 +00:00
bouyer 96e377add1 Apply patch from kern/25936 by Michael Blake: Add support for the
Netelligent 10/100 TX variant found on the Compaq Proliant Professional
Workstation 5100.
2004-06-15 19:47:23 +00:00
bouyer 851ca6fa98 Don't try to bus_space_subregion() registers that didn't get mapped.
Problem reported and fix tested by Kurt Schreiner on port-alpha.
2004-06-04 21:15:00 +00:00
thorpej 85c0b77956 twe_ccb_map(): Remove the DEBUG panic case of "unknown" S/G list offset.
In all likelihood, this is a command passed from userspace management
tools where no S/G list is needed because no data is being passed.
2004-06-04 20:11:17 +00:00
heas 4a60d04fc7 Double the time we wait for the attention bit following a soft reset (and make
the timeout message just a bit clearer), as the latest firmware appears to be
a bit slower.
OK from Jason Thorpe.
2004-06-03 18:07:30 +00:00
christos aead610d35 Apply patch from "pandre" at netbsd.ports.i386, stops panic during attachment. 2004-06-02 18:36:06 +00:00
mrg 30005fde6f #include <sys/device.h>
call ether_ifdetach() and if_detach() if attaching fails...
2004-06-01 15:17:49 +00:00
toshii da3514b79e rcsid 2004-05-30 03:51:48 +00:00
toshii 4b54ec9a22 Fix brokenness I introduced while debugging.
- initialize rxlenmask when 8139C+
  - remove meaningless memsets.
2004-05-30 03:50:52 +00:00
thorpej 1c7d20a00d satalink now needs the "sata" attribute. 2004-05-28 23:27:28 +00:00
thorpej 9eb22bdbc9 Use the common sata_speed() routine. 2004-05-28 23:26:58 +00:00
toshii 4ee3a39f89 Add re(4) RealTek 8139C+/8169/8169S/8110S PCI ethernet adapter driver,
from FreeBSD.
I haven't tested this code very well, but it seems to work fairly well
for me.
2004-05-28 15:35:41 +00:00
thorpej ef42d1cdb3 Add a "flush" operation so the array's write cache is flushed on
close and at shutdown.
2004-05-27 23:48:34 +00:00
thorpej a8d1145d1b Rename twe_tweio_command_handler() to twe_ccb_wait_handler() and expose it. 2004-05-27 23:47:23 +00:00
christos 3c138a44de Regen 2004-05-27 20:21:12 +00:00
christos 19bc1974d9 PR/25731: Adam K kirchhoff: Audigy support with the emuxki driver. 2004-05-27 20:20:52 +00:00
abs 30a421e70b regen from pcidevs 1.626: Add ALI 'M5257 PCI Software Modem' 2004-05-27 11:10:45 +00:00
abs 29d7222fab Add ALI 'M5257 PCI Software Modem' 2004-05-27 11:09:45 +00:00
kleink d42e56f0d5 General mixer initialization improvements around the MONO_IN/MONO_OUT/
PreAmp register, including a new MONO_IN mixer stage bypass mixer control;
inspired by (and fixing) PR kern/18342 from Stephen Ma.
2004-05-25 21:38:11 +00:00
kleink 26897a3b9b Fix a shift-by-one-bit glitch in the MONO_OUT mixer register's definition;
from Stephen Ma in PR kern/18342.
2004-05-25 20:59:37 +00:00
thorpej 2ecdd552dc Add the notion of "shadow registers" to the wdc driver. These shadow
registers are registers that overlap with others on many controllers, but
which may actually be distinct on some controllers.  Right now, the two
shadows are:

- wd_status (usually overlaps wd_command)
- wd_features (usually overlaps wd_error)

Add a new helper function, wdc_init_shadow_regs(), used to initialize
the shadow register handles on controllers where they do actually overlap.

Partially from Jordan Rhody @ Wasabi Systems, Inc.
2004-05-25 20:42:40 +00:00
atatat 16122fe06c Remaining sysctl descriptions under hw subtree (ath and bge) 2004-05-25 04:38:36 +00:00
kleink 5c1882fdb9 Fix a glitch in the initial import: The XMAC hash function is actually
based on CRC32-_LE_.

From Christian Weisgerber in private mail.
2004-05-24 20:12:01 +00:00
kleink eb8c340ab9 In sk_init_yukon(), don't open-code clearing the multicast filter but
go via the normal filter setup path instead.  The old behaviour only
worked ok as long as the init function was exclusively called at attach
time, when there was no configuration to be lost.

From Christian Weisgerber in private mail.
2004-05-24 10:06:59 +00:00
tsutsui a714bd16ef Add some byteswap ops around DMA descriptors for big endian machines.
Tested on macppc by matthew green.

XXX This driver completely lacks bus_dmamap_sync(9) ops.
2004-05-23 11:37:25 +00:00
kochi d8c488d1ef Fix typo (func8 -> func7) 2004-05-17 16:57:49 +00:00
thorpej 47e9c860d9 Add flow control support, based on work by HITOSHI Osada. 2004-05-16 02:34:47 +00:00
thorpej f3eaee75cf Add PAUSE-related event counters for sip(4) and gsip(4), slightly modified
from a patch supplied by HITOSHI Osada.
2004-05-15 22:33:13 +00:00
thorpej ffa382bf7c Patch from HITOSHI Osada:
* On the DP83820, don't set PCR_PS_DA if the PAUSE packet address is
  not registered in the multicast filter.
2004-05-15 22:26:49 +00:00
thorpej 9ac446650a Patch from HITOSHI Osada:
* SiS900 chips require the address of the PAUSE packet to be registered
  in the multicast filter.
2004-05-15 22:24:51 +00:00
thorpej b7d5c113dd Add PAUSE-related event counters. Slightly modified from patch supplied by
HITOSHI Osada.
2004-05-15 22:19:27 +00:00
thorpej 34b8c2c481 Patches from HITOSHI Osada:
* Set buffer management high water marks for MTU > 1514.
* Set BGE_MAX_RX_FRAME_LOWAT (from Linux driver).
2004-05-15 21:58:40 +00:00
wiz 901973874a Fix typo in comment; from Robert Nagy via OpenBSD. 2004-05-12 20:43:17 +00:00
wiz a8c55b7623 Add one more unofficial leadtek PCI vendor id; from Robert Nagy
via OpenBSD.
2004-05-12 20:42:10 +00:00
tron 6a835c2b56 Regen for PR kern/25166. 2004-05-12 07:07:53 +00:00
tron 71c703ffaa Add support for Broadcom BCM5788 GbE. Patches supplied by FUKAUMI Naoki
in PR kern/25166.
2004-05-12 07:07:34 +00:00
thorpej 4a923452bb Handle the i6300ESB IDE / SATA controllers. These are apparently just ICH5. 2004-05-11 23:15:37 +00:00
thorpej 0af0ae5e3a Regen: Add i6300ESB IDE / SATA controller PCI IDs. 2004-05-11 23:14:40 +00:00
thorpej e4aad9e9a3 Add i6300ESB IDE / SATA controller PCI IDs. 2004-05-11 23:14:17 +00:00
wiz 8989ce5fa0 Fix typo in comment; from Sergey Svishchev. 2004-05-11 22:45:09 +00:00
lukem 9b4a373ddf regen for: add Nvidia GeForce4 Ti 4200 Go AGP 8x (0x286) 2004-05-10 23:30:40 +00:00
lukem 814f993a36 add Nvidia GeForce4 Ti 4200 Go AGP 8x (0x286) 2004-05-10 23:29:40 +00:00
gendalia 4ff7407fae Add support for Adaptec AAR 2810SA raid controller. 2004-05-10 06:21:09 +00:00
gendalia 2f085ffee7 regen (Add support for Adaptec AAR 2810SA raid controller.) 2004-05-10 06:20:39 +00:00
gendalia f0491fe6e7 Add support for Adaptec AAR 2810SA raid controller. 2004-05-10 06:18:53 +00:00
thorpej 216e5888a5 Fix a couple of whitespace nits. 2004-05-10 02:36:56 +00:00
fair 4521e00533 Two changes:
1. ifdef out the restriction that the SiS 900 has only one PHY
This is demonstrably false; the SiS 960 super south bridge in
PR 18590 has a SiS 900 rev 1 core in it.

2. bitbang the MII for all versions of the SiS 900; this is the
only way that the PHYs on this system answer.

Also, I suspect that SIS900_REV_960 constant in if_sipreg.h is
incorrectly labelled - there were later revisions of the super
south bridge (e.g. the 961, 962, and 963), and I suspect the
SiS 900 revision code there refers to one of those.
2004-05-09 03:03:55 +00:00
christos 956dab9c37 GC pci_{g,s}et_powerstate into pci_powerstate(). Idea from mycroft and gimpy.
Nothing uses them yet.
2004-05-08 23:41:40 +00:00
sekiya 5090104da8 regen. 2004-05-07 13:02:50 +00:00
sekiya e9c3c4204d Add support for Silicon Image 3512 chip to satalink driver -- treat it as
a 3112 variant (without RAID support), which does the right thing with the
controller on my K8NNXP.
2004-05-07 13:01:49 +00:00
kleink aa32e8bbf1 Add an additional multicast hash function for Yukon. 2004-05-07 00:03:39 +00:00
jdolecek fb0f244182 match Adaptec 2410SA
XXX we should probably match all cards with product ID ASR2200S
2004-05-06 15:26:37 +00:00
ragge f62c3ab365 Remove the "panic("wm_init: MCLBYTES > 2048 not supported.");" stuff,
the driver works very well with larger MCLBYTES.
2004-05-06 10:06:50 +00:00
bouyer 02bbaa62b0 default_chip_map(): We can't use pciide_mapchan() here, because
pciide_mapchan() will attach an atabus, and we don't know yet if this
channel is enabled or not.
Fix kern/25455 by Dave Huang.
2004-05-05 17:56:14 +00:00
dyoung b32860f8ab Synchronize with FreeBSD by adding two comments. 2004-04-30 22:19:33 +00:00
simonb 8d2f7d069d Set the WAVCACHE_CHCTL_U8 flag for both specific-endian unsigned
linear 8 bit encodings as well as for native.
Fixes problems with playing 8 bit .wav files on my Dell Inspiron 5000e.
2004-04-30 14:14:55 +00:00
jonathan 8457f71310 Identify AES-capable chips (7955, 7956) in the driver attach message. 2004-04-29 01:46:06 +00:00
briggs 76578c302d Add a default case to the product ID attachment to print the chip
description and revision information if a chip is matched and this
switch statement isn't updated to match.  Addresses PR kern/18019.
2004-04-28 04:12:16 +00:00
itojun 6123043789 pass string length (= boundary info) to pci_devinfo so that we do not run over
the end of memory region
2004-04-23 21:13:05 +00:00
joda 7b46861a55 fix obvious past-o where the activity led register gets overwritten by
the traffic meter led register
2004-04-23 16:03:33 +00:00
simonb 9bc855a931 s/the the/the/ (only in sources that aren't regularly imported from
elsewhere).
2004-04-23 02:58:27 +00:00
skd 98e8625653 Added initial support for SIS 180 SATA controller. Patterned after
VIA 8237 support.
2004-04-22 11:30:04 +00:00
skd a9ec362b00 regen. 2004-04-22 11:27:45 +00:00
skd ed76ce2d2b Added support for new sis south bridge and 180 sata controller. 2004-04-22 11:27:19 +00:00
enami 0041584094 If defined(DP83820), (always) drop IFF_OACTIVE if we got txintr.
Otherwise, the driver simply stuck once we face tx resource shortage.
2004-04-22 06:11:38 +00:00
itojun aca4c091d3 sprintf -> snprintf 2004-04-22 00:17:10 +00:00
matt be6867a460 Regen. 2004-04-17 01:56:31 +00:00
matt fd311156d1 Add devid of Marvell MV6436x System Controller 2004-04-17 01:56:10 +00:00
thorpej 6837b365dd Assign a syslog priority to the AEN codes and use that priority when
logging the error message.  Potentially allows critical messages to be
noticed much more quickly.
2004-04-15 02:03:03 +00:00
ragge 34edcc4638 The 82597 chip may write back some receive descriptors off-by-one when
the PCIX bus start to get heavily loaded.  This only happen when using
chained descriptors, therefore work-around it by providing a private
pool of receive buffers able to contain a full-sized packet.
2004-04-14 17:31:02 +00:00
ragge ef66f543d0 Make it possible to use 16k MTU. 2004-04-13 11:40:06 +00:00
jmmv 8d3610f027 Be consistent with other messages: output "VIA Technologies" instead of
only "VIA".  Also add a missing "Audio" word to a message.
Closes PR kern/25152 by Nicolas Joly.
2004-04-12 15:44:53 +00:00
thorpej 466915b256 Flow control support for DP83820 and SiS900. From HITOSHI Osada. 2004-04-11 21:16:00 +00:00
thorpej 21cfdb75e2 Improvements to DP83820 support, from HITOSHI Osada:
- Fix jumbo frame support.
- Disable interrupts at the chip in sip_intr().
- Disable checksum offloading if MTU > 8109 - the hardware is broken
  in this case.
- Use the interrupt hold-off timer.
- Correct the Tx FIFO size.
- Add Pause Control/Status register definitions.
2004-04-11 16:57:44 +00:00
thorpej 4c019a313e Add 802.3x flow control support. From HITOSHI Osada. 2004-04-10 19:23:49 +00:00
thorpej c235249183 Add support for 64-bit PCI DMA addressing. 2004-04-09 17:51:18 +00:00
keihan fef14e4cd8 s/netbsd.org/NetBSD.org/g 2004-04-06 08:48:55 +00:00
jonathan e05bba34d6 Fix mistaken arguments to bge_set_thresh(); the prior revision would
pass the bge_softc * to a function expecting the struct ifnet*,
triggering a panic every time the Rx-mitigation value is changed via sysctl.
(Testing via kernel debugger before Andrew's recent sysctl(9) changes
was done with the exact same mistaken argument.)
2004-04-04 00:43:25 +00:00
martti 6f941c9322 Added another SB Live! 5.1 soundcard and joystick version 2004-04-03 10:49:13 +00:00
mycroft 00284f9931 Add RealTek RT8180. 2004-04-03 00:41:10 +00:00
tron 6c6ce42725 Regen from "pcidevs". 2004-04-01 08:00:32 +00:00
tron f62c4c4623 Correct entry for PCI vendor id 0x11af. It is assigned to Avid Technology
Inc. and not to Pro-Log Corporation. Problem reported by Chris Tribo
in PR kern/25004 and verified at http://www.pcidatabase.com/.
2004-04-01 08:00:01 +00:00
jmcneill e927880cc0 Don't allow block sizes < 288 bytes on VT823x chips (patch from kent@).
Fixes kern/22788.
2004-03-31 21:10:04 +00:00
nakayama 3e7562330f Add some initialization code for TI bridges.
Mostly from FreeBSD, and tested on i386 w/ PCI1250 and sparc64 w/ PCI1410.
2004-03-28 09:49:31 +00:00
nakayama 86cb1865fd Avoid use of wi_pci_reset when it uses other chip like PLX bridge chip.
This solves PCI bus error on sparc64 with Eumitcom WL11000P.
2004-03-28 09:44:59 +00:00
atatat b233127eb3 GC ath_node_root as well, but modify to work around the single
(tightly scoped) reason for recording the node address by recording
the assigned number.  Dink pci/if_bge.c to match, since ic/ath.c was
used as the archetype.
2004-03-27 04:37:59 +00:00
atatat de94728620 GC bge_node_root, since it's not needed and probably wrong. 2004-03-27 04:25:12 +00:00
jonathan c13c949dac Update yesterday's if_bge sysctl hooks for hw.bge.* (based on
yesterday's sys/dev/ic/ath.c) to match today's ath.c driver.
Commit now in the hope that Andrew Brown will pick up this file for
any more pending changes.
2004-03-27 01:17:49 +00:00
gendalia c2db9e9c90 Add support for Adaptec 2200S (Vulcan 2M) and Dell PERC 320/DC 2004-03-26 22:11:46 +00:00
gendalia 5193b56f46 regen for Adaptect 2200S (Vulcan 2M) / Dell PERC 320/DC 2004-03-26 22:06:31 +00:00
gendalia 1fc9784029 Add Adaptec 2200S Vulcan 2M / Dell PERC 320/DC 2004-03-26 22:05:08 +00:00
xtraeme 1b33913193 err fix previous (return -> break) in case statement. 2004-03-25 23:07:09 +00:00
xtraeme 8ded9ee13c There are two revisions of the VT8235 audio chipset (0x50 and 0x60), so
print any of them as VT8235, approved by martin@.
2004-03-25 22:48:43 +00:00
drochner 75109b28b4 regen 2004-03-25 14:10:08 +00:00
drochner 4f0192e97e recognize both parts of the AMD8151 AGP tunnel (see PR kern/24838 by
Nicolas Joly), and improve AMD8131
2004-03-25 14:09:46 +00:00
martin 82ebc8b5ab Better identify some revisions of via 823* audio chips.
From PR kern/24906.
2004-03-25 10:20:27 +00:00
drochner ef369e0ed6 remove license clauses 3 and 4 from my cpoyright notices 2004-03-24 17:26:53 +00:00
pk bfe932f43b sparc: OF_instance_to_package => prom_instance_to_package 2004-03-22 10:06:31 +00:00
martin a4ec3066f6 Adapt to promlib changes on sparc. 2004-03-22 08:36:28 +00:00
jdolecek 2151f6ca26 eliminate redundant aperture size printouts
reported in PR kern/24859 by Nicolas Joly
2004-03-20 14:00:40 +00:00
jonathan b9aa680ef2 Add a table of Rx interrupt-threshold register values for mitigating
Rx interrupts, functions to post a request for new table entries, and
code to apply pending Rx-interrupt control values at the next hardware
interrupt.

As used in a third-party proprietary tree since at least March 2003.
As discussed on tech-kern/tech-net in January 2004 (in the context of
NetBSD for packet capture, bpf, and FreeBSD-sylte IFF_POLL), and as
posted to tech-net for comments in mid-March 2004.

Still missing sysctl or other knobs to acutally change the config-time
values, due to my ignorance of any accepted per-device sysctl namespace.
2004-03-20 02:04:07 +00:00
jonathan 73e79089ee Possibloe fix for some bge chip revisions taking a long time to reset
(e.g., polling for a half-second or more at splnet(), blocking most
interrupts, durin an ifconfig down/ifconfig up).

Appears to help for a 5704C rev A3, which is the only chip I've
ever seen that had even a mild version of the reported problem.
2004-03-20 01:58:51 +00:00
jonathan 426b3e3a08 Check for BGE_PCI_PCISTATE register failing to revert on reset.
if it occurs, print a message indicating why the reset took so long.
2004-03-20 01:42:21 +00:00
bouyer 4f04c7872f Use the bus_space_*_stream_* methods to access the chip's registers.
As we turn the chip to big-endian mode on big-endian systems, we should
never byte-swap the data read/written from/to registers. Tested on sparc64.
Finally fix kern/13341 by Jason R. Thorpe (really, the hard work of putting
bus_dmamap_sync() calls at the right places has been done my Jason mid-2001 :)
2004-03-18 23:20:32 +00:00
bouyer 6e20098871 cur_rx->ti_vlan_tag holds the 802.1q VLAN tag and the 802.1p priority.
Trimm the priority, as the upper layers won't do it and will drop the packet
if priority is not 0.
While there, print the revision in the "unsupported chip revision" printf.
2004-03-18 22:45:35 +00:00
scw 6946234e5e Use PRIu64 and PRIx64 in place of %llu and %llx format strings for
printing variables of type u_int64_t.
2004-03-17 20:27:57 +00:00
martin fde39f7603 For sparc*: myetheraddr is no more 2004-03-17 13:54:09 +00:00
martin ac3bee274a Fix hme for pci based sparcs (krups). 2004-03-17 08:58:23 +00:00
simonb 98cd2fe77e Fix an assigned-to-but-not-used variable in the non AHC_ALLOW_MEMIO case. 2004-03-16 05:32:09 +00:00
ragge 3bb5e65a6b Add driver for Intel PRO/10GbE ethernet adapter. Now NetBSD has no
problem with intercontinental TCP connections of over 4Gbit/s, which is
where my test hardware runs out of bus bandwidth.

Stuff that is on the TODO list:
*      HW VLAN support.
*      Large jumbo buffers (16k).
*      TCP Segmentation Offload
*      RAIDC (receive interrupt delay adaptation)
*      Understand how to use memory above 4GB.
2004-03-12 13:46:52 +00:00
drochner 8acd734e5f deal with 82801EB/ER (ICH5) Network Controller 2004-03-12 13:22:28 +00:00
drochner b7fc89cd4c regen 2004-03-12 13:21:22 +00:00
drochner 51968004e2 add ICH5 builtin ethernet 2004-03-12 13:20:49 +00:00
matt 02fd2a994a Fixes for that only support for the 2030 can be compiled in. 2004-03-10 22:42:47 +00:00
bouyer f0816e2b90 Enable ATA-133 for AMD8111. From Nicolas Joly in kern/24729.
pciide_apollo_reg.h already contains the Ultra133 timming values for amd.
2004-03-10 22:16:04 +00:00
bouyer eefc140c02 The 1010-66 always generate AIP values on the bus, regardless of the SCNTL4
settings. Disable AIP completely, as this confuse pre-Ultra160 drives.
From FreeBSD.
2004-03-10 22:02:53 +00:00
bouyer b08ad7c74c Add the HPT370 DPLL output frequency register. 2004-03-10 21:55:21 +00:00
drochner 529666a2a8 use "=" instead of "|=" on first assignment to mbuf.csum_flags
(probably unnecessary because zero-initialized on mget, but
cheaper anyway)
2004-03-10 18:46:10 +00:00
martin bddc2b94bb Set BGE_JUMBO_RXRING_VALID in bge_flags when allocating jumbo ring buffers,
so it can be freed later. From HITOSHI Osada in PR kern/24686.
2004-03-06 17:42:43 +00:00
gavan bd6b4bb251 Add Creative Labs SB Audigy LS 2004-03-03 01:03:04 +00:00
drochner 50e0a489c2 regen 2004-02-26 17:12:53 +00:00
drochner 949c33ef12 add intel e7501 host bridge 2004-02-26 17:12:09 +00:00
wiz 73e1501b98 parameter with two es. From Peter Postma. 2004-02-24 15:22:01 +00:00
wiz 85746c6759 Spell interrupt with two rs. From Peter Postma. 2004-02-24 15:16:04 +00:00
wiz f05e6f1a3a occured -> occurred. From Peter Postma. 2004-02-24 15:12:51 +00:00
wiz dc4cc98b15 becuase -> because. From Peter Postma. 2004-02-24 15:05:53 +00:00
fvdl a043ba6b66 Actually match the nforce3 as well.. 2004-02-20 16:36:29 +00:00
thorpej 816a869868 s/WTC_DTYP_D/WTX_DTYP_D/ 2004-02-19 05:19:52 +00:00
thorpej 881b8b9966 Fix typo in debug message. From Jeffrey Hsu. 2004-02-19 05:18:47 +00:00
thorpej fd4acf29d4 Add missing txseg20 counter name. Pointed out by Jeffrey Hsu. 2004-02-19 02:13:23 +00:00
dyoung 8ecfa06341 Move the RF Microdevices RF3000 & Silicon Laboratories SI4126/SI4136
register sets into their own header files for re-use by future
drivers.
2004-02-17 21:20:55 +00:00
kleink e436929104 Fix a (non-dangerous) malloc size botch in eso_allocm();
from Stephen Ma in PR kern/18342.
2004-02-17 17:39:55 +00:00
kleink d82820e03a Audio 2's DMA current address register implements only the least
significant 20 bits, so make sure its memory allocation won't cross
a 1M boundary.  From Stephen Ma in PR kern/18342.
2004-02-17 17:34:21 +00:00
jdolecek 6d8183e508 add rnd hooks 2004-02-15 09:40:32 +00:00
junyoung ff24ed0023 device<tab>
attach<tab>
2004-02-14 16:38:06 +00:00
wiz e365329be5 Spell length with h after t. Inspired by a commit by brad@openbsd. 2004-02-13 18:02:05 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
wiz f5b32c1e69 RealTek -> Realtek. 2004-02-13 10:00:54 +00:00
jdolecek 3ce4ac0bbd checkpoint DMA support; still disabled, not tested yet 2004-02-10 18:19:47 +00:00
soren 10ced29306 Use the right bits for the AGP version. 2004-02-04 06:58:24 +00:00
fredb 4648495436 The variables to hold the registers don't need to be declared volatile.
Pointed out by Simon Burge on tech-kern.
2004-02-04 01:58:44 +00:00
fredb cb6b97c092 Fix a warning about possibly uninitialized variable. 2004-02-03 20:35:17 +00:00
fredb 0dcb02ec41 Enable the 8X clock on the SIIG Cyberserial serial and combination PCI
cards at attachment time, in order to support bit rates greater than 115K,
as discussed on tech-kern.
2004-02-03 19:51:39 +00:00
martin d1825213e7 Fix copy&pasto in last revision that (luckily) broke compilation on sparc64.
Noticed by MOCHIZUKI Tomomitsu.
2004-01-29 16:57:29 +00:00
dyoung 5e9822c7e9 Get rid of __P. 2004-01-29 10:25:49 +00:00
dyoung a0b92c808f Add atw_pci_enable, atw_pci_disable. Fixes a panic at "ifconfig
down" that was reported by Darren Reed.
2004-01-29 10:06:19 +00:00
chs 7f9f8e3309 also match the version of this that's built into my Asus
A7N8X-E Deluxe motherboard.
2004-01-28 17:07:21 +00:00
chs 6b86384036 regen 2004-01-28 17:06:09 +00:00
chs 1978ed699a add some JNI and Emulex fibre-channel cards.
add all the built-in stuff from my Asus A7N8X-E Deluxe motherboard.
add some other misc cards.
update the URL at the top.
2004-01-28 17:05:40 +00:00
onoe c65191a490 Adopt to new 802.11 framework.
Add support of version 5.30.17 firmware of PCMCIA 350 series.
MPI350 mini-PCI is NOT YET supported.
MONITOR mode is still not yet working.
2004-01-28 15:07:52 +00:00
blymn f678f5ebbb Added note for updating these files. 2004-01-26 14:20:42 +00:00
blymn 2cfce94241 Added note for correct update procedure for pcidevs. 2004-01-26 14:18:13 +00:00
blymn 74aab7025b Regen with correct rcs id. 2004-01-26 14:08:10 +00:00
blymn f99510798e Add amd8151 agp bridge id. 2004-01-26 13:23:26 +00:00
jdolecek 89a1048e34 pass the DMA tags to child devices, too 2004-01-25 11:57:52 +00:00
jdolecek 82e4b81f3e add puc(4) atppc(4) attachment; probes correctly, but needs further
work to support DMA, and some actual transfer testing
2004-01-25 11:50:51 +00:00
jdolecek 1c1ef41b96 fix register offset of second port for NetMos NM9815 Dual 1284 Printer port
card
2004-01-25 11:48:27 +00:00
jonathan ca71058195 Add hooks to dynamically change the bge Rx interrupt thresholds. I
found empiricaly that (at least on bcm5700s) the Rx coalesce and bd
counts cannot be updated on-the-fly; attempting to do so (even at
splhigh()) causes weird behaviour.

Instead, add a softc flag to record that the desired softc values for
Rx-interrupt thresholds have changed; check that boolean in the interrupt
routine. If set, apply the new values there and clear the flag.
2004-01-22 02:29:46 +00:00
jonathan 487ab6705e Add some extra register definitions from FreeBSD and Linux:
BGE_MISC_TIMER register definition, and more bit definitions for
HCC-mode. (I would credit individuals, but the attributions are buried
deep in my own tree.)
2004-01-22 02:13:48 +00:00
jdolecek b5b875ef06 cleanup old lpt(4) attachment, and glue ppbus in so that they can coexist:
* lpt device is defined in MI place (dev/ppbus/files.ppbus), dev/ic/lpt.c
  is included there too; dev/ic/lpt.c is not included if ppbus is
  configured or if there is alternative platform lpt (like for pc532)
* g/c MD lpt definitions and custom puc/upc attachments,
  glue moved to conf/files and dev/pci/files.pci respectively; remove
  device lpt definition from dev/isa/files.isa
* add ppbus parport attribute, atppc device attachments, adjust plip and lpt
  glue
2004-01-20 19:58:01 +00:00
ragge ae632d0c76 Err, get correct RCS IDs. As Love said. 2004-01-19 12:33:26 +00:00
ragge ac39ad68d6 Add "Intel PRO/10GbE LR Server Adapter". Regen. 2004-01-19 11:57:47 +00:00
tsutsui 6353b12d1a Fix hardware cksum problem on big endian machines.
Tested on macppc by HATANO Hiromichi.

Note I guess this bug could be fixed only adding one htole32(),
but I'd rather clean up endianness handling:
- Use htole32() only to accesses against DMA descriptors.
- Don't use uint32_t union member  with htole32()/le32toh()
  to access uint8_t/uint16_t descriptors.
- Add le32toh() in some DPRINTF.
  (XXX: strictly speaking, bus_dmamap_sync() is needed for these DPRINTF)
2004-01-14 14:29:48 +00:00
kent 2adc11f1f3 remove/modify confusing error messsges. 2004-01-13 14:42:50 +00:00
augustss 9fc19b76bb Print the device description in the attach routine like all other drivers do. 2004-01-13 14:07:09 +00:00
cube 03549a0cc1 The limitation for TX/RX DMA of rev. 900B and 635 os the SiS chips also
applies to rev. 0x91 for 96x chipsets.  Needed to fix PR 24043, but more
stressing testing has to be performed before closing it.
2004-01-11 09:07:56 +00:00
thorpej 778161fb7f Initialize some importantant members of the drive info structure. (I have
no idea how this worked for me before, but I swear that it did...)

kern/24015.
2004-01-07 22:06:57 +00:00
matt 82c993fb44 Regen. 2004-01-06 19:44:38 +00:00
matt 5e5b78644d Add HP Tachyon TL and TS device IDs. 2004-01-06 19:44:17 +00:00
matt 724f5b2c53 Regen. 2004-01-05 19:31:08 +00:00
matt f89c0bcfa9 Add Agilent Technologies vendor ID
Add Agilent Tachyon_DX2 product ID
Add HP Tachyon_XL2 product ID
2004-01-05 19:30:51 +00:00
thorpej a963286f8d More wdc_channel structure member namespace cleanup:
- channel -> ch_channel
- wdc -> ch_wdc
2004-01-03 22:56:52 +00:00
soren 04fd7f9383 Only report codec readiness if DEBUG to avoid printing it on every resume. 2004-01-03 14:11:36 +00:00
thorpej 5bd80d8373 Rename "struct channel_softc" to "struct wdc_channel". 2004-01-03 01:50:52 +00:00
thorpej 527c829fa0 Rename:
- wdc_xfer to ata_xfer
- channel_queue to ata_queue
and move them to <dev/ata/atavar.h> so they can be used by non-wdc ATA
controllers.  Clean up the member names of these structures while at it.
2004-01-01 17:18:53 +00:00
jonathan 01c51dab61 Split opencrypto configuration into an attribute, usable by inkernel
clients, and a pseudo-device for userspace access.

The attribute is named `opencrypto'. The pseudo-device is renamed to
"crypto", which has a dependency on "opencrypto". The sys/conf/majors
entry and pseudo-device attach entrypoint are updated to match the
new pseudo-device name.

Fast IPsec (sys/netipsec/files.ipsec) now lists a dependency on the
"opencrypto" attribute.  Drivers for crypto accelerators (ubsec,
hifn775x) also pull in opencrypto, as providers of opencrypto transforms.
2003-12-31 16:44:26 +00:00
martin c54170031d Include <dev/ata/atareg.h>, so that WDSD_IBM is defined. 2003-12-31 12:46:04 +00:00
thorpej ed96a1cec2 Move the drive probing code out of atabusconfig() and into a new
wdc_drvprobe() function.  wdc_drvprobe() is used if the controller
does not specify a custom one prior to calling wdcattach().  The
WDC_CAPABILITY_DRVPROBE bit is gone.
2003-12-30 17:18:11 +00:00
kent a92ed9fb69 ICH4/ICH5:
When native i/o mapping fails, try compatible i/o mapping.
2003-12-28 12:31:30 +00:00
tron 3b56a667e6 Support i82845G/GL based motherboards without an Integrated Graphics
Device. Patch supplied by Nicolas Joly in PR kern/23860.
2003-12-23 19:56:58 +00:00
thorpej cbec492f32 Fix a typo. 2003-12-20 06:26:47 +00:00
thorpej 98d14a3f5f Add support for the Silicon Image 3114 SATALink 4-port SATA controller. 2003-12-20 03:51:27 +00:00
thorpej 37b4ae0b5d Regen: Add product ID for the SiI 3124 SATALink. 2003-12-20 03:35:00 +00:00
thorpej ceaa3fe9f5 Add product ID for the SiI 3124 SATALink. 2003-12-20 03:34:19 +00:00
thorpej b5a6099c59 While legacy PCI IDE controllers have only 2 channels, it is quite common
for modern PCI SATA controllers to have more.  Define a new PCIIDE_MAX_CHANNELS
which to specify the maximum number of channels we support, and use it to
allocate channel resources.
2003-12-19 19:29:10 +00:00
thorpej f6aaf54d60 Some controllers must have certain bits always be set in the IDEDMA_CMD
register for proper operation.  Add a prototype field in the pciide_channel
for this register and use it as necessary when writing the IDEDMA_CMD
register.
2003-12-19 19:09:20 +00:00
christos 778502d669 More unsigned long casts to make this work on ppc. Fix formatting of debug
statements to 0x when there are hex numbers printed.
2003-12-19 19:00:00 +00:00
christos 0ad7f14d46 PR/23802: KIYOHARA Takashi: Bad printf format with CBB_DEBUG. While I am
there, make all printfs consistent 0x%lx and (unsigned long) cast.
2003-12-19 18:16:43 +00:00
thorpej f94de27bbd Const poison the channel name. 2003-12-19 05:55:12 +00:00
thorpej deed3938a2 Move the PCIIDE_OPTIONS_* constants into pciidevar.h 2003-12-19 05:16:57 +00:00
thorpej 07ba04af94 Regen: Add product ID for the Silicon Image 3114 SATALink. 2003-12-19 03:43:07 +00:00
thorpej d6decc84cb Add product ID for the Silicon Image 3114 SATALink. 2003-12-19 03:41:21 +00:00
thorpej df5956af24 Use a register map to find the offsets of various per-channel
registers in the BA5 space.
2003-12-19 03:33:52 +00:00
thorpej 376fccb2a5 Add BA5 space tag/handles for Silicon Image SATALink. 2003-12-17 21:08:29 +00:00
tls 0c041019a4 Add support for some more Marvell-based adapters to the sk driver:
D-Link DGE-530T
	Linksys EG1032v2
	Linksys EG1064v2

The Linux driver treats all of these the same.  Tested with a DGE-530T;
it works, though performance on at least one of my systems is atrocious.

Fix setting of ethernet capabilities into interface capabilites word in
attach routine.

Manual page: note that jumbo support doesn't work and checksum support
doesn't exist.
2003-12-17 09:17:07 +00:00
dyoung 59eb8ab913 Synchronize with FreeBSD:
* add constants to enums

 * HAL update: stops panics, fixes ad hoc-mode beacons, some API
   changes

 * get and use mac/phy/rf front-end revision codes

 * add a custom ath(4) ic_node_getrssi callback which does RSSI
   averaging

 * do not immediately scan, but re-associate after missing beacons.

 * bug fix: don't if_init after detach.

 * HAL diagnostics ioctl, SIOCGATHDIAG

 * send DS parameters element in beacons

 * const-ify some pointers

 * consolidate rx-filter settings into ath_calcrxfilter

 * abstract FreeBSD `ticks', NetBSD `hardclock_ticks' with ATH_TICKS()

 * misc. other changes
2003-12-16 06:48:08 +00:00
jmc 43bf89bfc6 Fixes from PR#23177. Various lint/logic fixes:
Fix some non-initialized variables
close the output files when done
Redo the printing for RCS strings so they don't expand in the awk script too
Do proper tests for variables existance before accessing

Verified output from all scripts is identical to original versions
2003-12-15 07:32:20 +00:00
thorpej 1534ca51d1 Remove the notice that was in cmdide.c before SATALink support was split
out.  All of the code in this file was written by me.
2003-12-15 00:37:38 +00:00
thorpej 7fca07b0d8 Use the SControl and SStatus registers to query the SATA PHY for
device detection.
2003-12-15 00:36:23 +00:00
dyoung ea63a1a6cd PR 23428: support National Datacomm Corporation NCP130A2 board.
Thanks T. M. Pederson for sending the patches.
2003-12-14 10:04:33 +00:00
tsutsui 4bad747a15 Regen: added ATI Radeon 9200SE. 2003-12-14 04:58:15 +00:00
tsutsui adedc23811 Add ATI Radeon 9200SE. 2003-12-14 04:57:16 +00:00
jonathan c4e9405150 Do 5704-specific setup of DMA control register for all 5704 variants,
including chips that matched only the asic-revision  fallback table.

When dong DMA setup for 5703 and 5704, use the new BGE_ASICREV() macro
to extract the ASIC revision.
2003-12-14 03:08:12 +00:00
thorpej 2f2ca9e66b Split the Intel i31244 SATA controller ("Artisea") driver out of piixide
into its own driver (artsata).
2003-12-14 01:32:01 +00:00
thorpej a5f1f3523b Liberally apply "static", and wrap a line. 2003-12-14 00:17:05 +00:00
thorpej 98f7d12017 Split out the Silicon Image SATALink support into its own driver,
"satalink".
2003-12-13 23:13:40 +00:00
briggs 3c06a40b83 Power up the card without OE enabled to avoid letting SanDisks enter
True IDE mode.  Hinted at by Charles Hannum a while back.  This lets
my PCI-Cardbus adapter read SanDisk CF cards much more reliably.

Also bring in a few defines from FreeBSD for some more TI registers and such.
2003-12-10 02:55:48 +00:00
briggs 500fd35ba0 Use aprint_*() 2003-12-09 19:51:39 +00:00
ad ee5a33f5aa Match Promise controllers. 2003-12-09 19:43:53 +00:00
ad e4cbd13089 Regen. 2003-12-09 18:58:49 +00:00
ad 237307078f Add second ID for Intel i960 RM. 2003-12-09 18:58:16 +00:00
pooka 34f5b5e378 The highest 16 bits of chipid identify the ASIC, so print only them. 2003-12-09 15:19:33 +00:00
pooka 3c0925818d Match 5703 ASIC A3.
Also, when printing the ASIC ID, print the revision in hex in all
cases to avoid extra confusion if only the "superclass" of the ASIC
is recognized.
2003-12-08 17:09:39 +00:00
pooka a17096b1a3 regen for broadcom 5703a3 2003-12-08 17:05:27 +00:00
pooka 9747421fda Broadcom 5703 A3 2003-12-08 17:00:48 +00:00
scw 0695d77aa5 Regen 2003-12-08 11:07:27 +00:00
scw 5379b99913 Add an entry for Intersil's Prism-54 (ISL3890) WLAN mini-PCI card. 2003-12-08 11:06:36 +00:00
dyoung 609617af90 Enable RSSI-based rate-adaptation for wi(4). This enables wi(4)-based
APs to run at "full speed" where before they ran at just 1 or 2Mb/s.
The AP will adapt the data rate for each client based on packet
losses and the received signal strength.

I have also enabled rate adaptation for STA mode and for IBSS mode,
but the hardware gives us less control over the data rate in those
modes.
2003-12-07 05:44:49 +00:00
bouyer 464de24c0e Clone artisea_chip_map() for use by the ICH5 SATA controllers.
The 31244 is really different from the ICH5, and one day the map function
could be incompatibles. Suggested by thorpej@
2003-12-06 22:40:03 +00:00
jdolecek d9c37aa325 regen:
add NetMos NM9805 and NM9815
2003-12-06 11:20:55 +00:00
jdolecek 89d301d92d add NetMos NM9805 and NM9815 2003-12-06 11:19:17 +00:00
jdolecek d8065a9e15 add entry for another NetMos card - NetMos NM9815 Dual 1284 Printer port 2003-12-06 11:18:08 +00:00
itohy 315a88c214 Back out the following commit and apply the real fix.
A variable was actually used in a wrong way.

> revision 1.20
> date: 2003/10/25 21:31:43;  author: christos;  state: Exp;  lines: +3 -3
> Fix uninitialized variable warnings.
2003-12-06 09:32:22 +00:00
bouyer b42d959140 Add support for the Intel 82801ER Serial ATA/Raid Controller.
From Simas Mockevicius on current-users@.
2003-12-05 23:12:41 +00:00
cube d8aa4bc899 Remove bitbang code that was taken from FreeBSD to support recent SiS
chipsets and use mii_bitbang interface instead.  Reflect sip dependency in
the config file.

Support for SiS96x needs broader testing.
2003-12-05 22:34:44 +00:00
grant 0a49c48fe4 remove some extraneous \'s to shut up warning from gawk. 2003-12-05 04:33:27 +00:00
grant a586448d86 regen 2003-12-05 04:28:47 +00:00
grant efde88a60f add Adaptec AAR-1210SA Serial ATA RAID controller. 2003-12-05 04:28:04 +00:00
keihan b8702f530b netbsd.org -> NetBSD.org
This was the last commit of this kind to src/sys, which is now totally
"NetBSD.org clean".  Thanks for the patiance, and sorry for all the commits.
2003-12-04 13:57:30 +00:00
thorpej c0ddd8220b Bump the Tx DMA segment count to 40. Apparently, it's common to have
DMA segment counts in this ballpark when using jumbo frames (so says
the "ti" driver).
2003-12-04 06:57:37 +00:00
thorpej ca75be9eb7 When performing command pass-through for management tools, don't poll
for CCB completion.  Instead, sleep, and use a CCB callback to wake the
sleeper.
2003-12-04 05:46:47 +00:00
cube a00292cf94 o Add support for accessing the PHY through MDIO for recent SiS chips
o Add support for the recent SiS96x chipsets that have a new revision.
  That includes a new bit of code to access the EEPROM, since it is
  shared with the ieee1394 controller on those chipsets.

Mostly taken from FreeBSD (rev. 1.62 and 1.64 of sys/pci/if_sip.c).  I
tried to make the code look less ugly, but couldn't invent documentation.

Fix PR #23481.  Thanks to Stephane ENGEL <sengel AT melshake DOT com> for
the report and the cheerful testing.
2003-12-03 21:58:49 +00:00
briggs a4f6bad750 Configure PCI-Cardbus bridges, too.
Patch from KIYOHARA Takashi on current-users.
2003-12-02 16:31:06 +00:00
bouyer 0041177a45 Use a different interrupt routine for the CSB6. The CSB6 doens't
assert IDEDMA_CTL_INTR for non-DMA commands.
It would be nice to have a way to know if the interrupt was for us or not at
this point, but for now let wdcintr() deal with it.
Problem reported and patch tested by Martti Kuparinen.
2003-12-02 12:20:06 +00:00
chs 669d2bb92c add support for HPT302 and HPT371. simplify timing selection.
adapted from OpenBSD.  tested on an HPT302, review by bouyer@.
2003-11-28 20:08:29 +00:00
chs 3bf428ce23 regen 2003-11-28 20:05:14 +00:00
chs 9bff23d0a5 add Tandem ServerNet II and various HPT IDE controllers. 2003-11-28 20:04:16 +00:00
cube c5529ef807 Add support for the 3com OfficeConnect 10/100B card, which has an ADMtek
AN985 controller, handled by tlp(4).

From Mike M. Volokhov <mishka AT terabyte DOT com DOT ua> in
current-users.
2003-11-28 06:03:09 +00:00
cube 5146829d44 Regen. 2003-11-28 06:00:16 +00:00
cube 5c88862075 Add 3c910 OfficeConnect 10/100B Ethernet. 2003-11-28 05:59:41 +00:00
fvdl 6242a54566 There are some cards that map the ATA control and IDE DMA registers
in a different fashion. Individually, they have the same functionality,
but their layout is different. An example of such a chipset is
the Promise 203xx.

To be able to deal with this, transform the cmd and dma bus_space handles
into an array of handles, each seperately created with bus_space_subregion.
The code generated by using the extra indirection shouldn't change much,
since the extra indirection is negated by having the offset calculation
already done in bus_space_subregion. E.g.

	bus_space_write_4(tag, handle, offset, value)

becomes

	bus_space_write_4(tag, handles[offset], 0, value)

Reviewed by Manuel Bouyer. Tested on wdc_isa, wdc_pcmcia, viaide, piixide (i386)
and on cmdide (sparc64).
2003-11-27 23:02:40 +00:00
matt 0c6481e8c4 Regen. 2003-11-26 18:47:16 +00:00
matt b0e13d0fdc Add pcHDTV HD-2000 HDTV video capture card. 2003-11-26 18:44:16 +00:00
tsutsui 1508a7290a Call bus_space_{read,write}_1() directly to access ncr53c9x common registers. 2003-11-23 04:34:26 +00:00
fvdl 370056a0f6 Use the redefined Promise product ids. 2003-11-22 20:57:18 +00:00
fvdl e7fcb7da4d Regenerate after rearranging the Promise ids. 2003-11-22 20:56:53 +00:00
fvdl ac92051a0b Clean up the Promise IDE controller defines. 2003-11-22 20:54:01 +00:00
itohy 1b7b873248 - Correctly handle bit 24 of miscellaneous control register, which has
different meanings for read and write.
  This fixes 48kHz playback to SPDIF.
- Fix the problem where the SPDIF output voltage setting (0.5V, 5V)
  was swapped.  The default value is changed from 0.5V to 5V, which
  correctly selects 5V (so the default physical behavior is unchanged).

Should fix PRs kern/16047 and kern/16817
(but not tested since I don't have other SPDIF hardware to test with).
Approved by tshiozak.
2003-11-22 16:48:14 +00:00
kent f9ae2a22c1 For ICH4/ICH5, use native BARs instead of compatible BARs.
The patch was provided by Lars Heidieker.
2003-11-22 08:49:41 +00:00
thorpej f6c3c3450e Add a missing i82541 ID to the table. 2003-11-22 08:32:12 +00:00
briggs 3a312a4033 Use aprint_* instead of printf. 2003-11-18 21:40:13 +00:00
tsutsui da9776152f Misc cleanup:
- tweak some attach messages
- establish interrupt after all dma resouces are successfully allocated
- wrap an assertion with #ifdef DIAGNOSTIC
- assume NCRCFG2_FE bit is always enabled
- call bus_dmamap_sync for mdldmap at POSTWRITE for consistency
- pass proper dmamapsize for mdldmap
2003-11-16 18:31:45 +00:00
dyoung 23d8f48692 Add data-link type DLT_IEEE802_11_RADIO to wi and atw. DLT_IEEE802_11_RADIO
lets you monitor radio stats like received signal strength, which
diversity antenna was used, channel/frequency, modulation, and data
rate.
2003-11-16 09:02:42 +00:00
jonathan 3638f1686a Support symmetric crypto ops, including AES, on hifn 7955 and 7956.
Not tested on 795[56],  but compiles and matches FreeBSD-tested diffs.

Suggested by Sam Leffler <sam@errno.com>, as imported into FreeBSD by Sam.
Submitted to FreeBSD by Rajesh Vaidyanath <RVaidyanath@hifn.com>.
2003-11-16 00:22:09 +00:00
bouyer 5741c101e5 Clear interrupts at end of attach, in case there is one pending.
Avoid "bogus intr" messages when interrupts are enabled later.
Patch tested by myself and Chuck Silvers.
2003-11-15 16:40:46 +00:00
jmcneill 1708376e44 Don't set VR_EECSR_LOAD before reading the MAC address on the VT6102 either. 2003-11-14 22:33:29 +00:00
scw c86e508708 On Rhine III, don't set VR_EECSR_LOAD before reading the MAC address.
This reloads the entire EEPROM, not just the MAC address, which can
cause problems for the host PCI bus under certain circumstances. The
chip already loads the EEPROM at powerup/reset anyway.

XXX: This probably applies to the other Rhine variants too, but I don't
have a data sheet to confirm this behaviour.
2003-11-13 22:29:09 +00:00
chs e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
fvdl 9d4e217e09 From FreeBSD:
* erratum: disable the nocrc RX bit, as it may cause problems on the 570{1-4}.
  adjust the length of the incoming packet accordingly to trim it.
* the 5704 has a smaller MBUF_POOL, so set a smaller value

Local change:
* Pass the autoneg force flag to mii_attach. Some PHYs need to be kicked
  out of their falsely autoneged 10baseT state with this.
2003-11-11 22:28:58 +00:00
thorpej 9a0c12a504 Correct the size passed to a malloc() call when performing command
passthrough for userland management tools.
2003-11-10 15:35:39 +00:00
wiz ee1b406595 Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00
enami 063c7653e3 Sync with sys/dev/pci/pcidevs change (ProductID 0x0213 was renamed
to CSB6_RAID from CSB6_IDE).  And exclude the device of RAID subclass
(i.e., match IDE subclass only).
2003-11-07 10:44:42 +00:00
thorpej 32ddb3f486 Fix brain'o in PCIX speed detection. kern/23375 (John R. Shannon). 2003-11-07 06:03:52 +00:00
mycroft 2ef56c13e8 Force the codec into a known state before trying to determine its speed. 2003-11-06 07:13:33 +00:00
fvdl aad37eaff6 Apparently, Dell PERC 4/Di controllers can have two memory BARs, with the
second one empty. The previous revision made it pick the empty one.
Reinstate the BAR size check.
2003-11-05 16:03:27 +00:00
thorpej 73fea8467b Enable i82541 and i82547 chips - it works well enough to get broader
testing.  Update the TODO list.
2003-11-04 19:09:39 +00:00
mycroft 94d9caaae4 Re-add ServerWorks IDE support, as "rccide". Note: this is untested, as I no
longer have a ServerWorks-based motherboard.
2003-11-04 16:57:57 +00:00
cube 78677ac649 Regen. 2003-11-03 15:58:48 +00:00
cube bda71e9e81 Add some IDs for the EPIA-M 10000 motherboard. 2003-11-03 15:57:46 +00:00
ichiro 8b115395c7 Fix uninitialized variable warnings 2003-11-03 03:05:25 +00:00
wiz 218b6186ff deferred, not deffered. Inspired by Tom Cosgrove. 2003-11-02 10:50:40 +00:00
wiz d88f7b1d62 boundary, not boundry. Inspired by Tom Cosgrove. 2003-11-02 10:31:06 +00:00
kent 26aa3703e4 auich_calibrate():
- make the buffer longer to improve the precision of measurement
 - round off the result to the nearest multiple of 1000.
2003-10-31 08:15:53 +00:00
nisimura 51cdfee682 Added stpcide(4) driver for STMicroelectronics STPC IDE controllers. 2003-10-31 06:49:58 +00:00
kent d96125aa86 For ICH4/ICH5, set IOSE flag to make them compatible to old ICHs. 2003-10-30 19:33:51 +00:00
kent c88bf03d33 For ICH4/ICH5, set IOSE flag to make them compatible to old ICHs. 2003-10-30 19:30:26 +00:00
hannken c0818405f1 Complete last commit: Remove assigned-to but otherwise unused variable. 2003-10-30 10:02:16 +00:00
briggs 3c59c821ae Make sure we can transmit larger packets correctly.
Don't initialize extra fields of the ifp.
Use strcpy() instead of bcopy() for copying the device name.
Handle if_timer a bit better.
2003-10-30 04:11:36 +00:00
simonb b6abb6ab1d Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
mycroft 6e4d40343c Don't bother with one of the loops if the data to move is too narrow. 2003-10-29 04:43:18 +00:00
mycroft 75061b28a8 Calculate lastx and lastleft outside the loops... 2003-10-29 04:40:17 +00:00
mycroft cb4f7a1d86 Bogus initializers suck. 2003-10-29 03:46:10 +00:00
mycroft 5ef2e1b264 Fix the real cause of the uninitialized warning -- we were looking for the VLAN
tag in the wrong place!
2003-10-29 03:31:22 +00:00
mycroft 035a25dd52 Simplify a little. 2003-10-29 02:33:51 +00:00
mycroft 1f63a53cea Rework to remove bogus initializers. Also fixes a potential problem with
amr_teardown() unmapping too much.
2003-10-29 02:27:32 +00:00
mycroft e4bad7fff5 Rework slightly to remove bogus initializer. 2003-10-29 01:54:24 +00:00
mycroft 39c696c2e6 Remove unnecessary code. 2003-10-28 23:56:00 +00:00
mycroft c976b0b592 Eliminate bogus initializer (the code was technically wrong). 2003-10-28 22:56:19 +00:00
pooka f18fbee457 fix uninitialized uses caught by gcc 2003-10-28 17:01:19 +00:00
thorpej db71356cd1 - Change callout_setfunc() to require that the callout handle is already
initialized.  Update the txp(4) to compensate.
- Statically initialize the TCP timer callout handles in the tcpcb
  template.  We still use callout_setfunc(), but that call is now much
  less expensive.  Add a comment that the compiler is likely to unroll
  the loop (so don't sweat that it's there).
2003-10-27 16:52:01 +00:00
chs 3b6d3c710c uninitialized variables 2003-10-27 07:07:34 +00:00
fvdl e645b8b032 Add definitions for 8139C+ and 8169 chips. Not used yet. From FreeBSD. 2003-10-25 23:48:45 +00:00
christos b132a6334c Fix uninitialized variable warnings. 2003-10-25 21:31:43 +00:00
christos 9350ac9046 return not break. 2003-10-25 21:31:20 +00:00
christos 5945f04b69 Fix completely bogus printf that used uninitialized variables. 2003-10-25 21:30:47 +00:00
christos 125ccd91b1 Fix uninitialized variable warnings 2003-10-25 18:29:12 +00:00
chs 7d1b5d21fd regen 2003-10-25 16:22:25 +00:00
chs 897a586840 add some misc cards I've got. 2003-10-25 16:21:31 +00:00
chs 0e9360f160 NULL -> 0 2003-10-25 16:15:07 +00:00
tsutsui 6c2bb73613 Add support for Acard ATP865/A Ultra100 IDE Controllers. From Tsubai Masanari. 2003-10-24 15:50:02 +00:00
tsutsui 723afbe9db Remove trailing whitespace. 2003-10-24 15:47:49 +00:00
kent cc9f31d5b2 auich_reset_codec:
wait for readiness of one of all codecs.
2003-10-24 04:06:44 +00:00
mycroft a480189bf8 Remove IDE_PCI_CLASS_OVERRIDE -- it wasn't actually used anywhere. In lieu of
it, add a class/subclass check to drivers that do not (appear) to have a unique
ID for the IDE controller.  This includes aceride, cypide and optiide.
2003-10-24 00:24:15 +00:00
fvdl d85a7f8656 Need the NOCRC bit, or my 5704B5 will start acting up. 2003-10-23 20:36:36 +00:00
bouyer e0f02bb281 If we found a compat channel disabled, unmap the registers. There may be
an ISA IDE adapter at the same address.
2003-10-23 19:29:35 +00:00
fvdl 4df6c69646 * match more cards (from FreeBSD)
* don't set the NOCRC bit in the mode control register, it can cause
  problems on some chips (from the broadcom errata via FreeBSD)
* implement a fallback quirktable that is searched only using the
  major asic revision, so that the driver has a shot at supporting
  newer versions properly without modification
* rename asicrev -> chipid, like the FreeBSD driver
2003-10-23 17:41:59 +00:00
kent 5286b24afb Change the short names of nForce:
nForce-MCP -> nForce
 nForce-MCP-T -> nForce2
 nForce-MCP-T -> nForce3

Use snprintf() and strlcpy() instead of sprintf() and strcpy().
2003-10-23 17:14:54 +00:00
kent 3afd3b3671 - remove unused code
- print diagnostic messages if the primary codec does not get ready in
auich_reset_codec().
2003-10-23 17:05:26 +00:00
fvdl 142de57c80 Regen. 2003-10-23 16:02:09 +00:00
fvdl ef2ab367bd Add a few more broadcom 57xx ids. From FreeBSD. 2003-10-23 15:54:13 +00:00
fvdl b4c1912d80 * match the nForce3 controller
* search the whole current PCI bus for the VIA bridge, can't rely on
  it to be function 0 of the same device
2003-10-23 14:27:09 +00:00
ragge c4690aa593 Set snd queue size to max(WM_IFQUEUELEN, IFQ_MAXLEN), instead of hard to
WM_IFQUEUELEN.
2003-10-23 12:53:02 +00:00
kent 27d4af4355 No need to check the codec ready flag in read_codec() and write_codec().
According to the ICH datasheets, the flag is unchanged unless resetting
the codec.

The flag is useless after enabling bus mastering.  This behavior is common
to all ICH chips.  The quirk handling code is removed.
2003-10-23 05:25:29 +00:00
briggs 193b74f006 Regenerate for ENE Cardbus product IDs. 2003-10-23 00:47:45 +00:00
briggs cdb1c2e5bf Add some ENE Cardbus bridges from FreeBSD. 2003-10-23 00:46:56 +00:00
briggs 3448998b43 Try to deal better with card removal during the card enabling process. 2003-10-23 00:04:03 +00:00
manu 8beb6e32ae Patch from http://mail-index.netbsd.org/current-users/2003/09/04/0018.html
to fix problems with a sound card
2003-10-22 15:57:33 +00:00