Commit Graph

4525 Commits

Author SHA1 Message Date
skrll a626c5afb2 Whitespace and change a comment slightly. 2005-09-25 15:29:37 +00:00
skrll 443f1937a0 Don't try to bus_dmamem_alloc everytime we want to load the firmware as
it can fail all too easily. Instead bus_dmamap_load the cached copy and
create the command blocks for the device to load it accordingly.

Thanks to scw and mrg for reviewing this.

Closes PR 29892 (I hope).
2005-09-25 15:18:21 +00:00
skrll 1d01574af3 Support hidden ESSID APs.
Use the newer scan command as this one doesn't crash the firmware when
scanning 802.11a channels.

Thanks to scw and blymn for testing.

Closes PR 31295.
2005-09-25 11:55:05 +00:00
skrll b453f6ca4f Resolve conflicts. 2005-09-25 06:49:54 +00:00
macallan cc58522caf - avoid using global variables unless necessary, this should fix weird
problems when more than one mach64 is present
- check memory BARs in mach64_mmap() and adjust allowed ranges in case
something ( XFree86 for instance ) changed them
- disable 'standard' framebuffer mapping at offset 0 on sparc64 because some
Sun/ATI firmware likes to map PCI resources there. May be necessary on other
64bit architectures as well.
2005-09-21 18:49:16 +00:00
christos 51f092ffb7 PR/31364: Douglas Fraser: cmd680 IDE controller not configured properly. 2005-09-21 14:32:46 +00:00
skrll fbe43fd3d2 KNF. That is change u_intN_t to uintN_t. 2005-09-17 12:40:27 +00:00
skrll 609c167c77 Correct a debug message. 2005-09-15 19:56:50 +00:00
skrll 81eeab7ea5 Fix spello. 2005-09-12 21:15:04 +00:00
skrll 180eb637a5 Use the correct length parameter when capturing rx packets. 2005-09-12 21:11:11 +00:00
xtraeme db1dafba87 Fix from OpenBSD:
rev 1.56:

Don't initialize the card (and start an autonegotiation!) every time
the IP address changes. Makes 'dhclient sk0' invocations way faster
and more consistant. i.e. one DHCPREQUEST elicts the DHCPACK.

Fix from FreeBSD:

rev 1.109:

Solve "No PHY found" problem for more Yukon Lite variants.

These changes fixed the problem on my sk(4) trying to get an IP
via dhclient(8).
2005-09-11 23:49:39 +00:00
drochner 1af44f3c6e remove the useless (always 0) device number from cardbus driver state,
autoconf attach structures and configuration cycle functions
(just leave the kernel configuration attribute for now to avoid breaking
 config(1) files)
2005-09-09 14:50:58 +00:00
ragge 0217dc7934 Device driver for the Neterion (S2io) Xframe-I 10Gbit ethernet card.
Still missing: VLAN + IPv6 checksum support.
2005-09-09 10:30:27 +00:00
christos e4efddfa8b PR/31130: FUKAUMI Naoki: Fix vge(4) SIOC{ADD,DEL}MULTI handling 2005-09-08 18:18:10 +00:00
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
tsarna da085b10b3 Allow reception of VLAN sized frames. From FreeBSD.
Reviewed by cube.
2005-09-06 15:42:21 +00:00
tron d8dc729287 Regen. 2005-09-04 19:44:09 +00:00
tron 30e04c8382 Add PCI ids for ATI Radeon 9600 LE. 2005-09-04 19:42:26 +00:00
skrll d465bfe236 Re-organise a bit to reduce diff to FreeBSD. 2005-09-04 06:58:20 +00:00
skrll 3a28b8e5de Let the net80211 layer handle the transition to INIT as well.
Testing by salo and me suggests that PR 31010 is fixed.
2005-08-30 21:18:47 +00:00
skrll 95c40e1648 Disestablish the power and shutdown hooks when detaching. 2005-08-30 21:14:29 +00:00
skrll acd9563ce6 KNF (and reduced diff to FreeBSD) 2005-08-30 21:05:47 +00:00
drochner f8a97e785b remove the interface attribute (defining the "channel" locator) from
all the XXXide mutants -- this is handled by the "ata" attribute already
2005-08-29 19:11:33 +00:00
thorpej 3876130b24 Remove unused and incorrect macro BGE_HOSTADDR(). 2005-08-28 19:24:57 +00:00
skrll d308c43536 Be explicit about which cards to setup .11a rates for.
hi matt.
2005-08-27 07:26:47 +00:00
drochner 49a3609892 kill some more simple submatch() functions, use config_stdsubmatch() 2005-08-26 11:20:33 +00:00
drochner 49126e9efe use XXXCF_NLOCS constants instead of magic numbers 2005-08-26 11:01:42 +00:00
drochner e6a178f21f kill a number of autoconf submatch functions which follow the
standard scheme:
if (<configured> != <wildcard> && <configured> != <real>)
	then fail
else
	ask device match function

This is handled by config_stdsubmatch() now.
2005-08-25 22:33:18 +00:00
drochner fa3cb84d62 replace the "locdesc_t" structure carrying the number of locators
explicitely by a plain integer array
the length in now known to all relevant parties, so this avoids
duplication of information, and we can allocate that thing in
drivers without hacks
2005-08-25 18:35:38 +00:00
gavan 84c672e259 Add quirk for BGE_CHIPID_BCM5751_A1. From Kurt Schreiner <ks at ub.uni-mainz
dot de> via PR kern/31028.
2005-08-22 18:18:25 +00:00
rpaulo 061ff0e0af Use #ifdef AUICH_DEBUG instead of #if 0/#if 1. Suggested by perry@. 2005-08-22 01:15:12 +00:00
rpaulo f8799a3e8f PR#31030: debug printf in auich_halt_pipe. From lmneto@gmail.com.
It was under #if 1, so I just replaced the if by 0.
2005-08-21 23:57:32 +00:00
chs d6e0b5fcb6 regen 2005-08-21 23:19:04 +00:00
chs edd620cbec add nvidia devices found on an ASUS K8N-DL motherboard,
plus various other cards.
2005-08-21 23:18:40 +00:00
gavan 0216bccfb3 Recognise Broadcom 5751M Gigabit Ethernet, as found on ThinkPad T43p. 2005-08-21 21:32:26 +00:00
gavan 19269ca4c1 regen 2005-08-21 21:21:48 +00:00
gavan 756529f056 Add BCM5751M 2005-08-21 21:20:20 +00:00
skrll 74929b7809 Add shutdown and power hooks. 2005-08-19 14:26:38 +00:00
skrll c6f82057ed More sync with the FreeBSD driver. 2005-08-19 08:50:06 +00:00
bouyer 13f098d5de Not add PIIX are wired to compat mode these days. Problem reported and fix
tested by Havard Eidnes.
2005-08-10 13:23:38 +00:00
yamt c4717bee9b add ipv6 tx checksum offloading support for wm driver.
reviewed by Jason Thorpe.
2005-08-10 12:59:43 +00:00
bouyer 27d425f60f To disable a channel we need to clear bit 2 or 3, not all other bits but
bit 2 or 3. Thanks to Takeshi Nakayama for catching it.
(With this mistake the code was still working for the first channel, because
the reset of the second channel would disable/enable the first one).
2005-08-07 10:12:39 +00:00
yamt 8988782aa6 wm_rxintr: ignore h/w assisted checksum results if WRX_ST_IXSM is set. 2005-08-07 05:18:42 +00:00
yamt 7b11b076da fix a typo(?) in an unused macro. (WRX_ST_ISXM -> WRX_ST_IXSM) 2005-08-07 04:56:25 +00:00
bouyer 9c635d80b4 remove debug printf 2005-08-06 22:25:32 +00:00
bouyer d1278fcba8 Add an optionnal controller callback for channel reset. If the callback
is set to NULL, use the generic reset code.
Use this to work around a bug in some Acer IDE controllers (like the
one found in some sparc systems) where a controller disable/enable
is required after a reset to avoid data corruption when Ultra-DMA is
used. Workaround from opensolaris, thanks to Hiroki Sato for testing.
2005-08-06 22:07:24 +00:00
skrll bb9f6f5786 Fix a typo. 2005-08-04 06:17:26 +00:00
kent 969266b7d7 * azalia_mixer_init()
set AUDIO_MAX_GAIN/2 to all of volume items.
2005-08-02 13:20:50 +00:00
kent 98532e5e3e - handle widgets without `format override' or `amp param override'
- support for volume knob
2005-08-02 11:17:56 +00:00
macallan af63a6798e fix a stupid typo 2005-08-02 01:35:05 +00:00
macallan ddb036e135 disable mmap()ing the framebuffer at offset 0 on sparc64 because some ATI
firmware likes to put PCI memory resources into this range, notably a Rage
IIc which puts the 2nd register aperture to 0x2000.
This should allow a few graphics chips to work with XFree86 which previously
failed with something like this:
(WW) ATI:  PCI/AGP Mach64 in slot 2:5:0 could not be detected!
No devices to configure.  Configuration failed.

Thanks to Florian Stoehr for doing most of the work tracking this down.
2005-08-02 01:32:13 +00:00
skrll cbdc27bb6a - Match more product ids.
- Don't initialise ic_phytype twice and do initialise ic_state.
- announce available rates.
- mark interface down if firmware crashes for the radio transmitter
  gets turned off.
2005-08-01 15:14:54 +00:00
kent b5db3a23de - make sure the power state of a node is D0
- ignore unsoliticited responses
2005-07-31 06:48:15 +00:00
christos 5fc171f88e Partially fix. Now it comes up, associates with wep, but something is wrong
with tcp since it crashes in wep encryption when I cvs update.
2005-07-30 21:15:51 +00:00
grant 7dab65d668 regen 2005-07-30 01:14:51 +00:00
grant d48996a15a use same form for secondary display as other ATI devices 2005-07-30 01:14:38 +00:00
grant 4201215f6f regen 2005-07-30 01:13:23 +00:00
grant c9944d0dc8 add some device ids for the ATI Radeon 9200 Pro. 2005-07-30 01:12:59 +00:00
kent a69b665329 make this compile with AZALIA_DEBUG.
thanks to cube@
2005-07-29 16:20:53 +00:00
cube ad858fce1a New Dell Day, continued: add support for the fxp(4) variant in the
802801G* family of SB.
2005-07-29 13:13:34 +00:00
cube c11bfdfb36 Regen. 2005-07-29 13:11:59 +00:00
cube 7edfbab2fc New Dell day: add missing device IDs, and order one correctly. 2005-07-29 13:11:09 +00:00
christos 292dcda123 Don't use a global variable to indicate that we are stge1023. Use an sc member.
Pointed out by thorpej.
2005-07-28 16:04:24 +00:00
ross d4a5f77997 Fix compilation nits with WM_DEBUG. 2005-07-25 18:26:24 +00:00
kleink 5b0cd10c45 Add missing brace to previous. 2005-07-25 05:44:36 +00:00
christos 9ebf9ba020 regen. 2005-07-25 00:41:48 +00:00
christos 5a8da30681 PR/29925: Mihai CHELARU: Fix for stge 1023. 2005-07-25 00:41:12 +00:00
tron 3cc55e5b70 Add support for PATA and SATA ports in the Intel ICH7 southbridge (82801G).
Patch supplied by Marcello Balduccini in PR port-i386/30795.
2005-07-21 07:09:31 +00:00
rpaulo ca2db1fe2b If the DEC board name is not known, remove the leading whitespace in
sc_name.
This closes PR#30458.

ok'ed Jason Thorpe.
2005-07-17 00:44:13 +00:00
kiyohara c1a84a4d12 ieee1394 import from FreeBSD. 2005-07-11 15:29:05 +00:00
christos d39684a368 make the isdn drivers compile again with -Wconst, -Wshadow 2005-07-09 02:05:09 +00:00
thorpej 0be3d66be4 Apply const and static where appropriate. 2005-07-07 18:43:47 +00:00
dyoung 0b81c10899 Cosmetic: use the idiom &ic->ic_nw_keys[0] instead of ic->ic_nw_keys,
just be a little more parallel to &ic->ic_nw_keys[IEEE80211_WEP_NKID]
on the same line.
2005-07-07 00:43:01 +00:00
dyoung 707b2b4ae1 Avoid an unnecessary API difference between NetBSD and FreeBSD:
back out my change to ieee80211_crypto_encap that made it free its
mbuf argument on error.  I had thought it was a bug.  It was not.
It's the drivers that are broken.  Make an(4), atw(4), ipw(4),
iwi(4), ral(4), rtw(4), ural(4), and wi(4) free the mbuf when
ieee80211_crypto_encap returns NULL.  Also, return ath(4) to the
way it was---i.e., free the mbuf.

Thanks to Sam Leffler to pointing out my mistake.
2005-07-06 23:44:15 +00:00
thorpej 527d62e0a2 - When starting an ATA or ATAPI transfer, handle the case where (*dma_init)()
returns EINVAL, indicating that DMA cannot be done for this transfer.
  Fall back to PIO in this case.
- Add a geodeide_dma_init() routine that checks to make sure that transfers
  start on a 16 byte boundary, returning EINVAL if not.  Works around a chip
  bug that causes a hard system hang.

Problem reported and patch tested by Erik Fair.
2005-07-06 01:46:52 +00:00
drochner 6d8bb016f7 update PCI/Cardbus ral wlan driver, and adapt to new FreeBSD/NetBSD
80211 framework, from FUKAUMI Naoki per mail to tech-net
2005-07-04 17:50:09 +00:00
augustss dd0aaa93b5 The SB400 SATA controllers seem to work fine for me with this driver. 2005-07-04 01:20:37 +00:00
drochner 8728cee448 add autoconf glue for the ralink wireless drivers, basically from
PR kern/30449, but changed so that pci/cardbus and usb devices
are all called "ral" to the user, so that code can be shared eventually
2005-07-01 20:11:20 +00:00
drochner c1834d85c2 add drivers for Ralink RT2500-based wireless adapters, written by
Damien Bergamini, ported and submitted by FUKAUMI Naoki per PR kern/30449
I've modified the USB "ural" driver for recent changes to the NetBSD
ieee80211 framework, possibly not completely, but with an ASUS wireless
adapter I'm getting some signs of life.
Didn't care about pci/cardbus for now, hopefully someone with hardware
will do it.
2005-07-01 20:06:56 +00:00
drochner 13d05c6f40 regen 2005-07-01 19:39:13 +00:00
drochner 35afa0f995 add ralink dev IDs, from FUKAUMI Naoki per PR kern/30449 2005-07-01 19:37:59 +00:00
augustss 6f150bbce9 Regen. 2005-07-01 11:00:23 +00:00
augustss 7f1e7d90e6 Add the ATI SB400 chip set and the Radeon X850 XT graphics card. 2005-07-01 10:59:32 +00:00
thorpej 6483ec61df Regen -- static'ify pci_vendors[] and pci_products[] 2005-06-28 00:31:14 +00:00
thorpej 032d48d156 static'ify pci_vendors[] and pci_products[] 2005-06-28 00:29:48 +00:00
thorpej d36c43c511 Use ANSI function decls and static. 2005-06-28 00:28:41 +00:00
thorpej 6da1229118 Use ANSI function decls and static. Fix a memory leak uncovered by
doing so (auixp_freemem() was never called).
2005-06-27 21:13:09 +00:00
seb 1bc84e0800 Regen. 2005-06-26 20:04:10 +00:00
seb 4b6c4203cc Add ATI Radeon Mobility X600.
Add Mobile Intel 915PM/GM/GMS and 910GML Express Chipset.
2005-06-26 20:02:48 +00:00
dyoung 6a0e52d84e Move the definitions in dev/pci/files.ath into dev/pci/files.pci.
Stop including dev/pci/files.ath in arch/i386/conf/files.i386,
since we get the same definitions by including dev/pci/files.pci,
now.  Remove dev/pci/files.ath.

Add arch/macppc/conf/Makefile.macppc with directives for linking
the Atheros HAL for PowerPC.

In athhal-powerpc-be-eabi.opt_ah.h, #define AH_REGOPS_FUNC 1, since
otherwise the linker complains that the PowerPC HAL cannot link
with register-read/write subroutines.

Add ath(4) to the GENERIC macppc kernel configuration; comment it
out.
2005-06-25 22:08:54 +00:00
bouyer 61f82d5486 Write the station address using 8-bits writes instead of 16-bits.
This is what the linux driver does, and makes the DGE-550T work without the
STGE_CU_BUG hack. So remove the STGE_CU_BUG hack.
Set bit 0x0020 in STGE_DebugCtrl too, the linux driver does it (the comments
note this as a workaround, without more details. This doesn't seem to make
things worse).
Also initialize STGE_RxDMABurstThresh and STGE_RxDMAUrgentThresh, using
values from the linux driver.

Approved by Jason Thorpe.
2005-06-25 21:43:38 +00:00
kent d091e19a34 - free all of allocated resources when an error occurs
- code cleanup
2005-06-25 16:32:39 +00:00
fair 1adffc6d99 According to FreeBSD and other references, the cs5530 IDE controller,
while capable of UDMA mode 2, is swamped if you actually go that
fast, which is not good for the other functions on this multifunction
southbridge chip, so limit UDMA to mode 1.
2005-06-25 05:04:01 +00:00
dyoung f3574e6c00 Let ieee80211_input do WEP-decapsulation.
Make iwi(4) provide a key-allocator that returns valid indices for
the four global keys.  Now net80211 should let the h/w do WEP
encryption/decryption.
2005-06-25 04:02:45 +00:00
seb 716f8f5ee2 Regen. 2005-06-24 21:41:16 +00:00
seb af3a92ca00 Add Texas Instruments PCI6515A Cardbus Controller with Smart Card Controller.
Approved by gimpy@
2005-06-24 21:39:25 +00:00
rpaulo ec4e36b7c2 Add support for ASIX AX88140A/AX88141 chipsets using only
the 10/100 MII with inspiration from FreeBSD dc(4) driver.

Tested on i386 and macppc.

Reviewed by Jason Thorpe and ok'ed by Hubert Feyrer.
2005-06-23 23:51:41 +00:00
wiz 006993c282 s/PCIBIOS_FIXUP/PCI_FIXUP/ in printf, from Patrick Welche in PR 30583. 2005-06-23 14:20:23 +00:00
sekiya 090f77819b Oops, a unilateral DEBUG define crept in with my last commit. 2005-06-22 22:57:17 +00:00
martin adc4b94498 Remove unused <atomic.h> include; add <sys/device.h> includes where
needed.
2005-06-22 22:07:48 +00:00