Commit Graph

4925 Commits

Author SHA1 Message Date
tsutsui
9c9326fb6d Free one more resource on attach failure. 2006-04-28 15:42:18 +00:00
rpaulo
35acb56df5 bzero -> memset
bcopy -> memcpy
2006-04-28 14:17:13 +00:00
rpaulo
e0a9e3e48a Print the Ethernet address on attachement. 2006-04-28 13:59:59 +00:00
rpaulo
921f82874c Use aprint family of functions. 2006-04-28 13:43:15 +00:00
jonathan
faecb6a29c Add an default entry to bge_majorrevs[] for bge chips with the 5780
ASIC revision.

Add (accidentally omitted) PCI product-ID entries for the BCM5780 and
BCM5780 (Serverworks HT-2000 to bge_products[], so that bge_probe()
will attach bcm5780 variants.  Tested on a bcm5780.

Handling for the bcm5780S with 1000base-X PHY  almost certainly has the
wrong quirks; our quirk entries are driven off ASIC ID. However, the
5780 (usually integral copper) and 5780S (TBI?)  have the same ASIC ID.
The Linux drivers ascertain whether to use integral copper phy or external
PHY via EEPROM bits.

I suspect the only way we're going to handle the 5780 vs. 5780S
properly is to add exact chip-id matches for all 5780/5780S variants
to bge_revisions[]. However, I don't know those ids until other users
with bcm5780s hardware can get this revision, try it, and report the output.
So, here  goes.
2006-04-27 18:09:54 +00:00
jmcneill
ecfb43361d Disable my aggressive power saving changes; they're causing too many
problems.
2006-04-27 12:21:39 +00:00
rpaulo
81cff25ae9 In tgamatch(), ifdef tag test under __alpha__ || arc. 2006-04-26 14:30:27 +00:00
rpaulo
3f247e811d Comment out glxt. 2006-04-26 13:04:02 +00:00
wrstuden
72a22e2da8 Regen to catch change for 3ware cards. 2006-04-25 23:57:13 +00:00
wrstuden
45d4d97a21 Tweak 3ware 9500 ID, and add 3ware 9550 ID. 2006-04-25 23:55:58 +00:00
dyoung
425bb71b7d Fix a typo in register definitions: looks like somebody copied the
CB_SOCKET_STAT_3VSOCK definition to CB_SOCKET_STAT_XVSOCK and
CB_SOCKET_STAT_YVSOCK definitions without updating the numbers.

It doesn't look like CB_SOCKET_STAT_XVSOCK and CB_SOCKET_STAT_YVSOCK
are used anywhere, so this will not make any functional difference.
2006-04-25 04:22:15 +00:00
christos
700c4bf2b7 Put back the code that avoids matching the lmc card. As pointed out by David
Boggs, it does not matter if the lmc driver routine returns 100 for the match,
because if the lmc driver is loaded via an LKM after boot, the other drivers
would have claimed the card already.
2006-04-20 17:08:20 +00:00
christos
3d76b885e1 New version from David Boggs. 2006-04-20 16:51:57 +00:00
gdamore
c5c8b2714a Regen. 2006-04-20 01:15:19 +00:00
gdamore
62e9e94873 Add a bunch of additional Radeon entries, and correct/cleanup a few of them
for consistency and to match Xorg.  I am assuming that Xorg contains the
correct information, since it actually makes use of this information.
2006-04-20 01:13:47 +00:00
macallan
29f4f9865a fix some ugly mixup of virtual and physical addresses 2006-04-19 17:41:24 +00:00
rittera
be97fc5a95 A number of minor changes for NDIS. (OK'd by phil)
1. Removed the makeoptions line from arch/i386/conf/GENERIC.  Now
ndis_driver_data.h is simply copied into the kernel build directory instead
of editing the config file to specify its location.

2. Uncommented lines in files.i386 and files.pci related to NDIS.  NDIS will
not be compiled into the kernel unless the two lines are uncommented from
GENERIC (I checked using nm), so there is no reason for this to be commented
out.

3. Added ndiscvt to usr.sbin/Makefile.
2006-04-18 16:49:19 +00:00
christos
1736325575 PR/33828: Pawel Chwalowski: Add support for Broadcom BCM5789 chip 2006-04-18 14:53:43 +00:00
pavel
dc9694f7fa VLAN tags were sent byte-swapped by the gsip driver, because the driver
forgets to convert them from the host to the network byte order. Use
bswap16 to convert them. (Not htons, because on a big-endian machine, they
are in the correct byte order initially, but then, they are byte-swapped
by a htole32 call when written to the transmit descriptor. So
byte-swapping is needed in this case too, to compensate for this htole32
call.)

For a similar reason, tags were seen byte-swapped when received on a
big-endian machine. Replace ntohs by bswap16 in the input path too.
(Again, it is needed to compensate for a le32toh call when the receive
descriptor is read.)

Fixes PR 32644.

Tested on 3.0/i386, 3.0/sgimips and current/alpha.

OK by martin@.
2006-04-18 13:07:03 +00:00
rpaulo
2f81fede5b Use strlcpy instead of strncpy and sizeof. Requested by Luke. 2006-04-18 12:49:02 +00:00
rpaulo
6f2308417e Remove SIOCKILLFW. 2006-04-17 20:57:24 +00:00
rpaulo
3f57889bb2 Oops, 16 is not enough to store the firmware filenames, use 24. 2006-04-17 19:06:51 +00:00
rpaulo
d9a55567aa Pull firmload on ipw. 2006-04-17 17:31:43 +00:00
rpaulo
f32518359d Use the firmload API to retrive the firmware from the filesystem. 2006-04-17 17:29:08 +00:00
elad
00b7ea1b74 Fix typos. 2006-04-17 13:31:02 +00:00
christos
b42fa2b7b2 Fix typo. Pointed out by brad. 2006-04-17 13:02:01 +00:00
jmcneill
ab7dc1d38d Use AC97_HOST_INVERTED_EAMP on the Sony VAIO VGN-B1XP. From PR#33272 by
Dieter Roelants.
2006-04-16 23:07:16 +00:00
macallan
8c1e0d461d correct a cast to avoid a warning. Pointed out by he. 2006-04-16 15:41:52 +00:00
christos
e331189f4e Deal with machines that have inverted eamp power. Data from the FreeBSD
driver. Finally sound works on my vaio vgn-t250p.
2006-04-16 07:40:00 +00:00
jmcneill
758e32ed76 Add support for the Turtle Beach Santa Cruz. Special thanks to Stephane
Witzmann for spending so much time debugging this.

Fixes: kern/18880, kern/24488, port-i386/14260, kern/12603, kern/12723,
       kern/24957, kern/23584

Tested on i386 (Stephane Witzmann), alpha (me).
2006-04-15 21:20:47 +00:00
jmcneill
9832e74c3e Regen. 2006-04-15 21:15:27 +00:00
jmcneill
d1cc57cfd4 Add entry for Turtle Beach Santa Cruz, and Cirrus Logic CS4615 while we're
here.
2006-04-15 21:14:32 +00:00
rpaulo
6885ff5af3 s/#ifdef DEBUG/#ifdef AGP_DEBUG/ 2006-04-15 20:23:32 +00:00
jmmv
aec18036fd Remove the getwschar and putwschar accessops from wsdisplay drivers as
requested by uwe@.  These were wrong because they were receiving an
emulcookie yet they were accessops (thus having to receive an accesscookie).
Instead, just handle the WSDISPLAYIO_{GET,PUT}WSCHAR ioctls from the
driver's ioctl accessop.

As this reduces the amount of code needed to handle these operations to
two small functions in each driver, remove the WSDISPLAY_CHARFUNCS kernel
option.

Reviewed by, at least, uwe@ and macallan@.  No objections in tech-kern@.
2006-04-15 17:48:23 +00:00
he
5c4bf9a124 The type returned by __arraycount() is a size_t, not an int, so print it
with %zd and not %d.
2006-04-15 16:36:03 +00:00
tsutsui
ce21617f93 Add AHC_USETARGETDEFAULTS to ahc_flag, which enables to
use default target (but not for host) device settings on
ahc(4) interface without its SEEPROM (mostly on-board one).

This flag could be useful if host's BIOS (firmware) initializes
ahc(4) chip with some conservative (async, no tagged queuing etc.)
target settings for minimum support to load its primary loader etc.,
and it will be enabled in each attachment according to MD device
properties(9). Currently this property is set only on sgimips for
O2 on-board aic7880 adapters.

No objection on tech-kern (and netbsd-bugs), and closes PR kern/23276.
2006-04-15 14:22:52 +00:00
christos
df1efb824a Coverity CID 1122: Add KASSERT to clarify this NULL deref can't happen. 2006-04-14 22:23:52 +00:00
christos
0b7afdf301 Coverity CID 1535: Avoid reading past the end of arrays because we don't
pay proper attention to the number of logical drives each controller can
support.
2006-04-14 19:51:21 +00:00
christos
eeb80698dd Coverity CID 1537: Make it clear to coverity that there is no overflow. 2006-04-14 19:33:12 +00:00
christos
9bada1d31d Coverity CID 1538: Avoid array overrun. 2006-04-14 19:25:37 +00:00
christos
1ad1deedf5 Coverity CID 1102: Make the code more coverity friendly. 2006-04-14 19:08:30 +00:00
christos
8b787180c1 Coverity CID 1539: Remove bogus test that caused array overrun. 2006-04-14 19:03:32 +00:00
christos
63a52e1ca5 Coviery CID 1108: Avoid NULL pointer deref. 2006-04-14 18:54:51 +00:00
christos
abb62e86a3 Coverity CID 1105: Avoid NULL deref. 2006-04-14 18:50:18 +00:00
christos
7881347975 Coverity CID 2314: Free memory if we fail to allocate rings. 2006-04-14 18:45:53 +00:00
christos
53daf02156 Coverity CID 1103: Avoid NULL pointer deref. 2006-04-14 17:58:01 +00:00
christos
cbf7d00ad2 Coverity CID 2439: Remove bogus test. 2006-04-14 17:54:26 +00:00
rpaulo
650c02ea97 s/#ifdef DEBUG/#ifdef AUICH_DEBUG/ 2006-04-14 13:02:57 +00:00
macallan
0c6c2553d0 whitespace nits
( no, perry didn't steal my account )
2006-04-12 23:11:56 +00:00
macallan
176b72244c convert to vcons
while there, attach an fb device when running on sparc
2006-04-12 20:35:42 +00:00
jmmv
7a51d4dddc Add an extra cookie to the ioctl and mmap wsdisplay accessops that points
to the screen on which they are being called.  The driver cannot guess
this by itself but it is needed to implement, at least, the getwschar and
putwschar functions in the correct place.  There are no functional changes
yet.

Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64.
Suggested and reviewed by macallan@.
2006-04-12 19:38:22 +00:00
tsutsui
0761a7c180 Free resources if attach fails. 2006-04-11 18:10:27 +00:00
rpaulo
70a6f82fa4 Coverity ID 2311: in auixp_allocate_dma_chain() free dma variable if
we are unable to allocate hardware dma descriptors.
2006-04-11 16:34:57 +00:00
rpaulo
9fb903cf69 Coverity ID 2313: free ``asc'' on error. 2006-04-11 16:19:39 +00:00
macallan
82ce0b1388 A driver for 3Dfx Voodoo3 graphics boards, may or may not work with Voodoo4,
Voodoo5 or Banshee boards.

So far it supports:
- full acceleration in 8bit graphics mode
- video mode switching
- virtual consoles via vcons

So far it hasn't been tested on anything else than macppc and even there it
needs a hack to overload ofb.

TODO:
- test on i386
- don't hardcode video mode
2006-04-11 16:11:07 +00:00
rpaulo
f7d1c1a028 Coverity ID 2440: in trm_timeout(), check if srb and xs are NULL
before trying to dereference them.
2006-04-11 15:49:00 +00:00
rpaulo
3fd310011d Coverity ID 2442: check if one can dereference ifp before calling
iwi_stop() in iwi_detach().
2006-04-11 15:42:56 +00:00
rpaulo
ab299cced2 Coverity ID 2859: Don't leak ccb, move the allocation a few lines
lower next to where it'll be used for the first time.
2006-04-11 14:17:09 +00:00
pavel
3b08981d4d In rev. 1.98, the ioctl method of the (g)sip drivers was optimized for
SIOCSIFFLAGS: it compares the new flags with the old flags and avoids
reset if there are only certain changes. This was done to fix PR 29126.

It does not take into account, though, that there is other state which
can change and SIOCSIFFLAGS is called to inform about it.  Namely,
if_capenable, ec_capenable and ec_nvlans. For all three, the _init
method must program the hardware specially. Not doing it resulted in:
- VLAN frames getting truncated
- hw checksumming not working
- outgoing VLAN frames not being tagged when they should
- incoming VLAN frames being treated as untagged.

Fix by keeping all the old state in the softc and initializing the
hardware if any of it changes.

Tested on gsip. Also tested by Nino Dehne and Martin J. Laubach
on sip, thanks.

Fixes PRs 32900 and 33216.

Approved by martin@ .
2006-04-10 16:37:22 +00:00
simonb
1af5057c87 Regen. 2006-04-06 04:07:31 +00:00
simonb
36c6a8850d Sort some Intel GigE nics by product ID. 2006-04-06 04:06:52 +00:00
dyoung
9f1cdb7a4a Fix typo in comment, s/will be never/will never/. 2006-04-05 22:16:42 +00:00
nonaka
91dcd880bc Regen. 2006-04-05 20:09:47 +00:00
nonaka
fd5e23a861 Added "Faraday Technology" in vendor list. 2006-04-05 20:09:22 +00:00
drochner
8390dd2605 update for accessops change (get/serborder removed) 2006-04-05 15:23:06 +00:00
uwe
ccf4b50a2c KNF: no parentheses around return value. 2006-04-05 01:13:50 +00:00
uwe
a31a2f7d75 ANSI'ify. 2006-04-05 01:05:50 +00:00
gdamore
9a2b9dd63b Reorganize ath layout as requested by sam@ and suggested by dyoung@ in
http://mail-index.netbsd.org/tech-net/2006/03/15/0000.html.

The new layout almost precisely matches FreeBSD, and should make
future imports much easier.

At the same time, import the current 0.9.16.16 HAL from FreeBSD.  According
to sam@, this is the proper version we should be using.
2006-04-02 05:52:14 +00:00
rittera
ace2baad8b Updated to the latest NDIS code. I added commented out lines in the files
arch/i386/conf/GENERIC, arch/i386/conf/files.i386 and dev/pci/files.pci which
can simply be uncommented to compile NDIS into the kernel.  I'll write some
documentation on this soon.

Note that NDIS is still somewhat experimental.  It is currently tested and
functions relatively well on on two cards:
1. Dell (Broadcom) TrueMobile 1400 Dual Band WLAN Mini-PCI
2. Intel EtherExpress Pro/100
2006-03-31 00:03:57 +00:00
thorpej
78ffd948be Replace device_locators() with device_locator(), and use it. 2006-03-29 06:00:46 +00:00
thorpej
5470d2a488 mpt_pci_link_peer(): Rather than testing if the candidate device is attached
with mpt_pci (by comparing the dv_cfattach pointer), check to see if it has
the same parent.  If so, then it is guaranteed to have the same attachment
(which is mpt_pci).
2006-03-29 04:32:09 +00:00
thorpej
2be6494fc9 Use device_cfdata(). 2006-03-29 04:16:44 +00:00
riz
fee50493a2 Add jumbo frames support, from OpenBSD (mcbride). As seen on tech-net
for the last N months.
2006-03-28 18:29:42 +00:00
thorpej
39cd836ee1 Use device_unit(). 2006-03-28 17:38:24 +00:00
bouyer
be6fc949c1 MCLAIM() mbufs allocated here. 2006-03-27 18:45:03 +00:00
jonathan
0dec89ac9b Regen pcidevs{,_data}.h from pcidevs rev 1.778 (fixes cut-and-paste typo
in description of bcm5780S).
2006-03-26 20:23:27 +00:00
jonathan
c767100863 Fix cut-and-paste typo in human-readable description of bcm5780S
(used to say bcm5782s, should be bcm5780s; make it so).
2006-03-26 20:21:55 +00:00
chs
c5e2153c1e work around another mbuf leak, the hardware doesn't seem
to work quite the way that the driver expects.
2006-03-26 00:34:14 +00:00
rpaulo
4ed37fa0d7 Add support for the Conexant RS7112. From Frank Wille <frank@phoenix.owl.de>. 2006-03-25 23:10:50 +00:00
rpaulo
843592e4df regen 2006-03-25 22:32:55 +00:00
rpaulo
6deeed92fe Add Conexant LANfinity. From Frank Wille <frank@phoenix.owl.de> on
port-i386.
2006-03-25 22:31:13 +00:00
thorpej
4d51b7cce7 Use device_parent(). 2006-03-25 04:08:45 +00:00
he
77c27ad055 Add a driver, ciss(4), for the HP/Compaq drivers using the newer
"Command Interface to SCSI-3 Support" command interface.  Driver
ported from OpenBSD by Tonnerre Lombard -- thanks!
2006-03-21 20:42:14 +00:00
he
39e2cda308 Regenerated files after adding IDs for HP/Compaq Smart Array controllers. 2006-03-21 20:20:59 +00:00
he
88fd4ab2a0 Add a bunch of IDs for Compaq/HP Smart Array controllers supported
by the soon to be added ciss(4) driver.
2006-03-21 20:19:21 +00:00
chs
a940d15b3c handle another difference between the BSDs:
free the original mbuf in the jumbo-free callback too.
2006-03-16 17:26:13 +00:00
chs
11921f1910 add nfe. 2006-03-12 22:57:01 +00:00
chs
388c5496c2 add nfe driver and manpage from OpenBSD. 2006-03-12 22:40:42 +00:00
chs
abfe2afbd4 regen 2006-03-12 22:35:32 +00:00
chs
097466ce91 fix name of Radeon 9000 Pro.
add Radeon 9200 Secondary ID.
add Comtrol, Magma and SIIG multi-port serial cards.
add more Dolphin SCI cards.
add IBM ServeRAID 4/5.
add Mitsubishi Tornado 3000.
add or rename various NVIDIA IDs to match openbsd.
add SafeNet SafeXcel.
2006-03-12 22:34:41 +00:00
jmcneill
bbd8f9b955 Add Intel AGP powerhook. Tested on an 82855PM. 2006-03-11 02:35:06 +00:00
jmcneill
f4578655f4 On suspend, capture PCI configuration registers. On resume, restore them
as well as explicitly reclaiming ownership of the UHCI/EHCI from the BIOS.
2006-03-10 17:21:20 +00:00
christos
5e6b1075e2 PR/33049: OKANO Takayoshi: Fix the spelling of NetBSD RCS tags. 2006-03-10 15:53:55 +00:00
he
17acd2c1c5 Add recognition of Nortel Baystack 21 as an rtk8139 variant.
Rest of information submitted in PR#33044.
2006-03-09 22:17:49 +00:00
he
09dd8aa07e Commit regenerated files after adding Nortel Baystack 21 info. 2006-03-09 22:15:19 +00:00
he
ca9813a911 Add vendor code for Nortel and Baystack 21 id. Part of info
submitted in PR#33044.
2006-03-09 22:14:48 +00:00
jmcneill
777ce723e2 Save and restore PCI configuration state on suspend/resume. 2006-03-09 16:02:55 +00:00
hamajima
2e79c90835 Add support for EXAR XR17D15x serial.
(I tested only XR17D154.)
2006-03-09 15:16:13 +00:00
hamajima
3762b561e7 Regen: Add EXAR devices, and fix duplicated NVIDIA product id 0x0057. 2006-03-09 15:09:13 +00:00
hamajima
190c7ab6ea Add EXAR devices.
Fix duplicated NVIDIA product id 0x0057.
2006-03-09 15:06:45 +00:00
lukem
a1f606d3fd Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings.
Add a space between numbers and Hz unit.
2006-03-08 23:46:22 +00:00
jmcneill
e20bf2a14d Don't try to suspend while already suspended. 2006-03-07 23:16:20 +00:00
bouyer
c743cbc911 Regen: added more serverwork SATA controllers. 2006-03-07 22:12:14 +00:00
bouyer
d43ac7ad9d Also support Serverwork Frodo4, Frodo8 and HT-1000 in svwsata.
From OpenBSD.
2006-03-07 22:11:25 +00:00
jmcneill
d5491c459e Put the device in D3 state when it's not in use to save power. 2006-03-07 15:18:59 +00:00
bouyer
6fd7d5ae1b Regen for serverworks K2 SATA addition. 2006-03-07 08:56:44 +00:00
bouyer
f656fa41eb Add svwsata(4), a driver for Serverworks K2 SATA controllers. From
OpenBSD via Joerg Sonnenberger.
2006-03-06 18:35:24 +00:00
martin
60e2115aff Add support for Moxa CP104 serial card, from Olivier Cherrier 2006-03-06 08:26:20 +00:00
martin
013227eddd Regen (MOXA devices added) 2006-03-06 08:24:13 +00:00
martin
eb0fe4f28c Add MOXA devices, from Olivier Cherrier 2006-03-06 08:23:00 +00:00
christos
1b2709754a cleanup more SET/CLR/ISSET lossage 2006-03-05 17:33:33 +00:00
thorpej
e49323e509 Static'ify. 2006-03-04 19:20:50 +00:00
dogcow
d52723dd8c add a bunch of Nvidia nForce ethernet IDs (via OpenBSD.) 2006-03-01 22:22:36 +00:00
gdamore
6e5dbc3f2f Add pci_find_rom() API as discussed on tech-kern. 2006-03-01 18:53:39 +00:00
gdamore
7ddac1f73a Regen. 2006-02-28 20:57:14 +00:00
gdamore
a0fea31083 Add Radeon 7000/VE (QZ). 2006-02-28 20:56:52 +00:00
gdamore
9978357901 Add PCI_MAPREG_TYPE_ROM and allow it to be used with pci_mapreg_map().
Fix to configure (but do not enable) BARs for expansion ROMs.
Reviewed by briggs@
2006-02-27 16:11:58 +00:00
thorpej
9bc69fdb97 cfg1, cfg2, and swdpin are not generic properties the same way that
mac-addr is.  Prefix them with i82543-
2006-02-27 04:50:47 +00:00
wiz
5d1e8b2745 Fix some typos. 2006-02-25 02:28:55 +00:00
uwe
9aa1f72d95 Whitespace cleanup (hi, macallan). 2006-02-24 22:39:15 +00:00
macallan
31038cb7db Add support for virtual consoles to igsfb.
Works fine on a Krups, needs testing on other ports.
2006-02-23 08:01:59 +00:00
simonb
146e189f89 Fix memory leak in the TWEIO_GET_PARAM ioctl.
Tested by gendalia@.
2006-02-23 03:59:59 +00:00
rpaulo
be393d0ce0 In bge_ioctl(), don't call bge_init() if the interface is already up.
Makes ifwatchd work on this interface.
2006-02-22 15:18:55 +00:00
garbled
5c869c790e IBM makes a pcn card that shows up as:
Trident Microsystems 4DWAVE DX (ethernet network, revision 0x25)
Unfortunately, this is an autri sound card.  Special case the match routines
for both drivers so if_pcn properly picks it up, and autri doesn't.
2006-02-22 02:57:26 +00:00
gavan
fc631497e1 Convert MD hook to device property reads.
Device properties, if present, take precedence over EEPROM values.
2006-02-22 00:17:43 +00:00
skrll
14041a25af Fix from Sam Leffler "correct check for whether wpa is enabled".
wpa_supplicant and static WEP doesn't crash the firmware now. YAY!
2006-02-21 07:24:07 +00:00
chuck
c76190d31d regen. 2006-02-21 03:11:12 +00:00
chuck
cd31590889 add entry for LINKSYS PCM200 10/100 ethernet card 2006-02-21 03:09:54 +00:00
xtraeme
a9488074d6 Add __KERNEL_RCSID. 2006-02-19 08:49:45 +00:00
tls
b69125454c Add support for i2c bus on AMD-8111 used on many Opteron server motherboards,
and ADT 7463c thermal and voltage monitor found on the Tyan S2881 and S2882-D
(and probably other boards as well).  We do not currently support any kind
of detection of the i2c address of the thermal monitor; it appears to be
at 0x2D on the S2881 and 0x2E on the S2882-D (kernel config examples
forthcoming).

From PR kern/32463 submitted by Anil Gopinath, anil_public@yahoo.com.
2006-02-19 02:24:20 +00:00
thorpej
680d9eea68 - Don't expose dev_propdb directly -- provide devprop_*() wrappers instead.
- Rework the ARMADILLO / epe device properties interaction so that it actually
  associates the MAC address property with the epe device instance.
2006-02-18 05:04:11 +00:00
perry
fbae48b901 Change "inline" back to "__inline" in .h files -- C99 is still too
new, and some apps compile things in C89 mode. C89 keywords stay.

As per core@.
2006-02-16 20:17:12 +00:00
thorpej
cb468f2eff Remove the ugly algor_get_ethaddr() hack. We have a properties infrastructure
now, so use that to provide the Ethernet address of the built-in Ethernet.
XXX Still a little ugly in the tlp driver, but fixing that would require
XXX reworking the SROM usage in a broader sense.

While here, do the P4032 DMA window hack in device_register() as well.
2006-02-16 18:20:31 +00:00
kochi
e94d605ca4 regen. 2006-02-16 08:39:27 +00:00
kochi
2bf87ae55f add two more ICH7-M LPC device ids from intel document
(Intel I/O Controller Hub 7 (ICH7) Family Specification Update)
2006-02-16 08:36:03 +00:00
gavan
7600be39ae Compute the EEPROM checksum to determine the presence of valid EEPROM data.
If EEPROM data is invalid, allow a MD hook to supply EEPROM data instead.
2006-02-16 00:02:00 +00:00
riz
a4163a9fe4 Not all chips supported by this driver use the same interrupt moderation
timer frequency; Take this into account.  Information gathered from
the sk98lin driver for Linux, from Marvell.

Also add sysctl support for changing the interrupt moderation timer at
runtime; each board is controlled independently.

Discussed on tech-net beginning in November 2005.
2006-02-14 00:19:17 +00:00
martin
73bd099735 Protect parts inside #ifdef _LKM that are only supposed to be there
when building an LKM.
2006-02-13 14:25:05 +00:00
tron
7e0f377097 Regen. 2006-02-12 16:36:58 +00:00
tron
50e5429967 Fix inconsistencies in names for components for recent Intel chipsets. 2006-02-12 16:35:20 +00:00
tron
3ab60a2c88 Regen. 2006-02-12 11:54:00 +00:00
tron
c72bdde37c Correct cut and paste error in last change. 2006-02-12 11:53:26 +00:00
tron
48465288bd Regen. 2006-02-12 11:51:23 +00:00
tron
4b13e8432a Add entries for Intel i955X chipset. 2006-02-12 11:51:07 +00:00
christos
f5e26caf24 new version from David Boggs. 2006-02-11 23:00:06 +00:00
rpaulo
b3e804a9e9 PR 31304: Contribute to the random pool. From Rhialto. 2006-02-11 13:04:44 +00:00
gdamore
8430838831 PCI_NETBSD_CONFIGURE should allocate (but not map) address space expansion
ROMS by default.   Full discussion at
http://mail-index.netbsd.org/tech-kern/2005/12/16/0023.html
Closes PR kern/32467
Reviewed by briggs@
2006-02-10 20:52:56 +00:00
bouyer
c071d3b194 Add another missing ch_ndrive initialization. 2006-02-07 20:37:24 +00:00
cube
6961689092 Regen, correctly this time. Sorry for the mess. 2006-02-07 17:23:23 +00:00
cube
60c0881da6 I wonder how the leading junk arrive there... 2006-02-07 17:21:56 +00:00
xtraeme
ecc3ede39b regen 2006-02-07 17:20:47 +00:00
cube
ed82703cc5 Add PLX's 9054 I/O Accelerator. 2006-02-07 17:15:54 +00:00
thorpej
deb5def967 In the receive interrupt handler, compute the packet length before resetting
m to point to the first buffer in the packet.  The bug would cause the
length of jumbo frames to be incorrect.
2006-02-07 06:20:04 +00:00
abs
51cff5fbfb regen to add SIS 190 ethernet, as found in ASUS T2-AE1 2006-02-06 12:41:02 +00:00
abs
b14514b460 Add SIS 190 Ethernet, as found in ASUS T2-AE1 2006-02-06 12:40:44 +00:00
christos
8e18deb784 regen 2006-02-02 01:40:19 +00:00
christos
d3c467af65 PR/32695: Chuck Tuffli: incorrect PCI device id for CMD Technology (0x1095)
SiI3132 SATALink (0x3132)
2006-02-02 01:39:53 +00:00
xtraeme
38f79c01fe The NVidia nForce430 IDE Controller supports Ultra-DMA Mode 6, enable it.
Patch from MASUDA Hideo via tech-kern.
2006-01-31 16:49:26 +00:00
dsl
6f0f9f8763 Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
kleink
2269235d63 Add support for the AMD8111 RNG; from Nicolas Joly in PR kern/32284. 2006-01-28 23:31:24 +00:00
bouyer
ae41171480 Add support for Promise PDC2057x SATA/150 Ide controllers.
From FreeBSD, tested by Douglas Wade Needham.
2006-01-26 20:58:52 +00:00
bouyer
35ab8a8cc8 Regen: Add Promise PDC2057x 2006-01-26 20:54:19 +00:00
bouyer
f946f2d85d Add Promise PDC2057x SATA/150 controllers, from FreeBSD. 2006-01-26 20:53:19 +00:00
reinoud
aeaada2a1b Duh! If askes to halt the input dont halt the output instead. This also
fixes the timeout on draining when closing.
2006-01-24 23:29:05 +00:00
christos
4478531a98 Add support for more puc chips from Pavel Cahyna.
This might NetMos 9845 card which need the COM_FREQ * 4 hack, but this
can be re-added by a more specific entry (matching subsystem IDs).
2006-01-24 20:10:55 +00:00
xtraeme
e2aca22c8e From OpenBSD:
--
Add a workaround for VIA EHCI controllers which, under load, signal qTD
completion before they have performed writeback from the overlay qTD.

This condition would exhibit itself as a umass stall that never recovers.
--

This fixes the problem reported by Thomas Klausner on current-users@:
http://mail-index.netbsd.org/current-users/2006/01/17/0000.html
2006-01-17 12:30:00 +00:00
bouyer
038345f3e8 Add missing ch_ndrive initialisations. Pointed out by Juan RP. 2006-01-17 00:40:49 +00:00
christos
ac9c2323d2 regen 2006-01-16 23:00:17 +00:00
christos
a39411c0d7 PR/32550: Michael Eriksson: No agp(4) support for i915 integrated graphics 2006-01-16 22:59:36 +00:00
bouyer
bf1a4d2af5 properly use ata_channel->ch_ndrive:
- initialize it properly in the bus front-ends (all 2, exept in wdc_pcmcia.c
  for the "Sandisk CompactFlash Card" where it's set to 1)
- remplace hardcoded '2' by ata_channel->ch_ndrive in MI IDE drivers.

From Christos Zoulas in kern/32501.
2006-01-16 20:30:18 +00:00
kent
1e8e79dd3b readable names for AD1981HD codec 2006-01-16 14:28:38 +00:00
kent
dd89fc8bd6 Don't crash when a connection list has invalid NIDs.
PR#32485 by Samuel Tran
2006-01-16 14:15:26 +00:00
christos
82f14002cb Regen 2006-01-10 20:33:31 +00:00
christos
eec1348ff2 PR/32494: Dennis Chernoivanov: Intel PRO/100 VE (LOM) not detected on Sony Vaio 2006-01-10 20:31:36 +00:00
cdi
bcaee69819 PR/32494: Add ID 0x1068 for Intel PRO/100 VE (LOM) found on Sony Vaio
S4HRP laptops.
2006-01-10 20:30:47 +00:00
kent
225ba2620d add some trace messages in azalia_mixer_init(). 2006-01-08 16:52:42 +00:00
bouyer
6ad7a02d77 Fix forcing use of DMA mode for the generic pciide driver: default_chip_map()
is called from pciide_attach() and at this point we don't know which drives
are here. Just assume all drives are there and allocate DMA ressources for
all of them.
2006-01-04 22:10:10 +00:00
kent
de8198c18c support for 8ch playback with STAC9221D codec.
Thanks to Tomokatsu HAYAKAWA.
2006-01-03 15:43:04 +00:00
kent
ce56ff707e ALC260: improve readability of mixer item names. 2006-01-03 15:31:15 +00:00
kent
a2e0795bf5 - make this compile with AZALIA_DEBUG
Thanks to Tomokatsu HAYAKAWA.
- introduce WIDGET_CHANNELS macro
2006-01-03 14:16:28 +00:00
manu
a4e775f913 regen 2006-01-02 23:12:50 +00:00
manu
8756a32ca6 Add support for nForce430 ATA133 and SATA controllers. My disks now run
at a decent speed.
2006-01-02 23:12:23 +00:00
tron
85c59666a3 Regen. 2006-01-02 21:49:44 +00:00
tron
99e5326f57 Fix cut and paste error. Noted by Bernhard Moellemann. 2006-01-02 21:48:41 +00:00
tron
63f7e82864 Regen. 2006-01-02 12:49:29 +00:00
tron
a406c78c32 - Spell NVIDIA as "NVIDIA" instead of "Nvidia". This matches their
website and viaide(4).
- Add entry for builtin ethernet of NVIDIA nForce4 chipset.
  Information provided by Bernhard Moellemann.
2006-01-02 12:48:34 +00:00
xtraeme
756f4ea6b7 regen 2006-01-01 11:32:41 +00:00
xtraeme
fbd6785430 Fix VIA VT8231 product: it's a PCI-ISA Bridge not an IDE Controller. 2006-01-01 11:32:03 +00:00
mjl
1c357819af This part got lost during merging with the sourceforge bktr
driver: "Also make those variables int instead of char so it
can actually hold 454...".
2005-12-30 00:16:32 +00:00
silke
644e5cbb9e Regen from revision 1.751 of pcidevs. 2005-12-29 11:07:30 +00:00
jonathan
f4ed3d7185 Regen from src/sys/dev/pci/pcidevs rev 1.751, which adds an entry for
the integral PCIe-to-PCIX bridge found in broadcom 5714/5715
PCI-Express dual-port gigabit ethernet chips.
2005-12-29 05:46:34 +00:00
jonathan
bb1c86b2be Add pcidevs entry for the (Serverworks?) PCI-Express to PCI-X bridge
chip integral to Broadcom bcm5714 and bcm5715 PCI-Express dual-port
gigabit Ethernet chips.
2005-12-29 05:44:51 +00:00
wiz
5610637f93 Sync with SourceForge 1.5:
revision 1.5
date: 2003/03/13 22:21:04;  author: emsi;  state: Exp;  lines: +17 -18
Fill in band switch crosspoints and use that instead of hardcoded
values in the band switching code. For now fill in the formerly
hard-coded values 160 and 454 until we can find out the real values
for each tuner. Also make those variables int instead of char
so it can actually hold 454...
2005-12-28 20:41:56 +00:00
christos
3b45b5fde4 We don't have access to in_cksum() if no INET. 2005-12-28 09:15:32 +00:00
rpaulo
333596ccdb PR/32386: Dawid Szymanski (arhea). Add support for the 8169SB chipset. 2005-12-25 19:55:40 +00:00
perry
3d4ed1fbc7 __inline__ -> inline 2005-12-24 23:41:33 +00:00
perry
4a2c58419f __asm__ -> __asm 2005-12-24 23:29:06 +00:00
perry
93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
skrll
74331c1241 Merge the FreeBSD code and adapt to NetBSD:
- add power management.
	- update ioctl handling.

Fix PR 27439 as the FreeBSD code has joerg's fix for when the RX intr
routine can't allocate a new mbuf.

Fix PR 30806. Thanks to cube@ for testing and some struct ipw_soft_hdr
handling code.

XXX The state machine doesn't sync with the net80211 layer, but that's
XXX not a surprise.
2005-12-20 07:51:38 +00:00
skrll
6a270f002d Typo in comment. 2005-12-19 12:35:19 +00:00