summaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Make this build on 4.x machines again (building a -current kernel on aWarner Losh2002-04-193-36/+27
| | | | | | | | | | | | | | | -stable machine via the old-school methods): Use __FreeBSD_version in preference to __FreeBSD__ >= N where possible. Define a single variable mythread which is set to curproc or curthread depending on the OS version (with a comment saying it is a white lie on 4.x since it really is a proc). NB: __FreeBSD__ is the OS level of the host machine, not the target, and should never be used, if possible, as __FreeBSD__ >= N. Notes: svn path=/head/; revision=95074
* - Remove KM_ macro calls and replace with the real function we're calling.Andrew R. Reiter2002-04-194-16/+12
| | | | | | | | | As a note, this driver needs the same updating as the hfa driver was just given; removing these macros since I will be nuking them from netatm. Notes: svn path=/head/; revision=95062
* Some fixes for Symbol card.Atsushi Onoe2002-04-191-2/+20
| | | | | | | | | - The version string doesn't need to start with 'V'. - Symbol firmware doesn't support ROAMING_MODE nor MICROWAVE_OPEN. Obtained from: NetBSD Notes: svn path=/head/; revision=95031
* Fix the breakage of tagged queueing that the busdma integrationSøren Schmidt2002-04-185-27/+32
| | | | | | | | introduced. Since its now only possible to have one DMA control block at a time, we move the setup to dmastart instead. Notes: svn path=/head/; revision=95010
* Add the PCI ID for an upcoming variant of a soon-to-be released series ofScott Long2002-04-181-0/+2
| | | | | | | cards. Notes: svn path=/head/; revision=94999
* Work around an Intel 21143 chip bug.Stephen McKay2002-04-182-14/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rev 1.56 of if_dc.c removed calls to mii_pollstat() from the dc_tick() routine. dc_tick() is called regularly to detect link up and link down status, especially when autonegotiating. The expectation was that mii_tick() (which is still called from dc_tick()) would update status information automatically in all cases where it would be sensible to do so. Unfortunately, with authentic 21143 chips this is not the case, and the driver never successfully autonegotiates. This is because (despite what it says in the 21143 manual) the chip always claims that link is not present while the autonegotiation enable bit is set. Autonegotation takes place and succeeds, but the driver tests the link bits before it switches off the autonegotiation enable bit, and success is not recognised. The simplest solution is to call dcphy_status() more often for MII_TICK calls by dropping out of the switch statement instead of exiting when we are autonegotiating and link appears to not be present. When autonegotiation succeeds, dcphy_status() will note the speed and fdx/hdx state and turn off the autonegotiation enable bit. The next call to dcphy_status() will notice that link is present, and the dc driver code will be notified. Macronix chips also use this code, but implement link detection as described in the manual, and hence don't need this patch. However, tests on a Macronix 98715AEC-C show that it does not adversely affect them. This could be done better but is the minimal effective change, and most closely mimics what was happening prior to rev 1.56 of if_dc.c. (Actually I also deleted a small amount of unnecessary code while I was in the area.) Reviewed by: wpaul Notes: svn path=/head/; revision=94994
* Make delay iteration counts a function of hz as the delay period in eachBrian Somers2002-04-171-25/+21
| | | | | | | | | | | loop is inversly proportional to hz. This makes things more sane for configurations with hz != 100. Cosmetic: Make the loops look similar to the loops in digi.c Notes: svn path=/head/; revision=94950
* Make delay iteration counts a function of hz as the delay period in eachBrian Somers2002-04-171-5/+5
| | | | | | | | | | | loop is inversly proportional to hz. This makes things more sane for configurations with hz > 100. Submitted by: Peter Jeremy <peter.jeremy@alcatel.com.au> Notes: svn path=/head/; revision=94949
* Rework the kernel environment subsystem. We now convert the staticMaxime Henrion2002-04-173-23/+54
| | | | | | | | | | | | | | | | | | | | environment needed at boot time to a dynamic subsystem when VM is up. The dynamic kernel environment is protected by an sx lock. This adds some new functions to manipulate the kernel environment : freeenv(), setenv(), unsetenv() and testenv(). freeenv() has to be called after every getenv() when you have finished using the string. testenv() only tests if an environment variable is present, and doesn't require a freeenv() call. setenv() and unsetenv() are self explanatory. The kenv(2) syscall exports these new functionalities to userland, mainly for kenv(1). Reviewed by: peter Notes: svn path=/head/; revision=94936
* Revert part of revision 1.49 which was supposed to be white spaceJosef Karthauser2002-04-171-1/+1
| | | | | | | | only. In the device probe we don't want to match unless there is an iface structure already set up. Notes: svn path=/head/; revision=94932
* diff reductionJulian Elischer2002-04-171-9/+0
| | | | Notes: svn path=/head/; revision=94905
* Slight diff-reduction to -stable.Julian Elischer2002-04-171-5/+5
| | | | Notes: svn path=/head/; revision=94904
* Add MODULE_VERSION.Matthew N. Dodd2002-04-171-0/+1
| | | | Notes: svn path=/head/; revision=94901
* - Convert the 'hfa' ATM interface driver to newbus.Matthew N. Dodd2002-04-175-0/+966
| | | | | | | | | - Add stubs for EISA and SBUS cards. (VME, FutureBUS, and TurboChannel stubs not provided.) - Add infrastructure to build driver and bus front-end modules. Notes: svn path=/head/; revision=94898
* Scale back # of luns supported for SCC to 16384- oops- top 3 bits are aMatt Jacob2002-04-163-28/+112
| | | | | | | | | | | | | | | lun address modifier of sorts. Only an HP XP-512 seems to have cared. Fix a few misplaced pointers for the new fabric goop, which has been demonstrated to work on newer Brocades and McData switches now. Put in commented out code which would run GFF_ID if the QLogic f/w allowed it. Don't whine about not being able to find a handle for a command if it was a command aborted (by us). Notes: svn path=/head/; revision=94867
* Diff reduction to 4.x version.Julian Elischer2002-04-161-44/+41
| | | | Notes: svn path=/head/; revision=94863
* Add support for the nVIDIA nForce ATA controller.Søren Schmidt2002-04-162-58/+50
| | | | | | | | Collapse the VIA/AMD/nVIDIA support code into one, they are created more or less equal anyway.. Notes: svn path=/head/; revision=94826
* Merge from OpenBSD's fixes:Warner Losh2002-04-162-278/+278
| | | | | | | | | | | | | o move timeout from wihap_info to wihap_sta_info o sprinkle spls into the code (need to use proper -current locking) o better use of le16toh and htole16 o fix a few leaks m_freem(m) o minor knf o minor de-knf to match OpenBSD o de__P Notes: svn path=/head/; revision=94823
* Minor format nitWarner Losh2002-04-161-1/+0
| | | | Notes: svn path=/head/; revision=94822
* Cast another bus_addr_t to long long for a printf to quiet a warning onJohn Baldwin2002-04-161-1/+2
| | | | | | | alpha. Notes: svn path=/head/; revision=94814
* - Nuke fore_pci_device.Andrew R. Reiter2002-04-161-66/+40
| | | | | | | | | | | | - Add a device_method_t array, fore_methods. - Add a fore_ident_table that contains the various FORE Systems PCA-200 series devices. - Rewrite of the fore_probe routine (formerly known as fore_pci_probe). - Minor changes... mostly WIP stuff to get this updated... still much to be done. Notes: svn path=/head/; revision=94813
* - Remove PCA-200E definition -- this will be re-added in the commit toAndrew R. Reiter2002-04-161-1/+0
| | | | | | | | fore_load.c that will add ``fore_ident_table'' which holds various types of FORE Systems PCA-200 series devices. Notes: svn path=/head/; revision=94812
* Recognize the AC97 interface to the onboard sound controller on the NvidiaJohn Baldwin2002-04-151-0/+4
| | | | | | | | | | | nForce chipset. Playback at least seems to work fine with the ich driver out of the box. Sponsored by: The Weather Channel Help from: cg Notes: svn path=/head/; revision=94798
* Use bus_addr_t instead of u_int for local variables that are derived fromJohn Baldwin2002-04-151-5/+5
| | | | | | | | | the per-channel bus_addr_t offset. Also, cast the offset to (long long) and use %#llx instead of %#x to fix printf warnings on architectures where sizeof(bus_addr_t) != sizeof(int). Notes: svn path=/head/; revision=94791
* Fix some nits in AMD AGP driver. Remove excess malloc and move a bzeroColeman Kane2002-04-151-10/+3
| | | | | | | | | | out of the way, so it won't cause trouble. Submitted by: Frank Mayher <frank@exit.com> MFC after: 1 week Notes: svn path=/head/; revision=94790
* Remove a spurious warning as x is always initialised before use.Ollivier Robert2002-04-151-1/+1
| | | | | | | | | | | es137x.c: In function `es1371_rdcd': es137x.c:598: warning: `x' might be used uninitialized in this function PR: kern/35408 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> Notes: svn path=/head/; revision=94767
* Basic OpenFirmware disk driver. It will attach to anything in OpenFirmwareBenno Rice2002-04-151-0/+261
| | | | | | | | | | that declares itself to be a disk, which may be the wrong thing to do in the long term but it works well enough to attach to emulated disks in the PowerPC simulator in gdb now that they have the proper device_type property. Notes: svn path=/head/; revision=94749
* Fix tx-rate setting for Lucent cards.Brooks Davis2002-04-141-0/+15
| | | | | | | Submitted by: Eugene Perevyazko <john@pcs.dp.ua> Notes: svn path=/head/; revision=94695
* Support the Siemens SpeedStream PCI card.Brooks Davis2002-04-141-0/+1
| | | | | | | | PR: kern/35988 Submitted by: Stephen Gunn <csg@waterspout.com> Notes: svn path=/head/; revision=94687
* Fix the play / record rate setting so that it actually works.John Hay2002-04-141-3/+8
| | | | | | | | | | | The extra microphone channel capability is part of the "normal" ac97 capabilities and not an extended ac97 capability. Now recording on codecs without a seperate mic channel works. MFC after: 1 week Notes: svn path=/head/; revision=94647
* Turn on TGA support.David E. O'Brien2002-04-138-18/+64
| | | | | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com> Notes: svn path=/head/; revision=94617
* If the receiver runs out of space for an received frame in the internalPoul-Henning Kamp2002-04-132-22/+8
| | | | | | | | | | | | | | | | | | | | | | FIFO or the in-RAM descriptors it will switch to RX_IDLE from where it is not restarted. We used to deal with RX_IDLE by doing a total reinit but this lost our link and caused a potential 30sec autonegotiation against switches. This was changed to a less heavyhanded approach, but this failed to restart the receiver it it were in the RX_IDLE state. This change adds the RX_IDLE and the RX_FIFO_OFLOW conditions as triggers for interrupts and receive side processing, and restarts the receiver when it is RX_IDLE. Remove the #ifdef notyet'ed nge_rxeoc() function. Sponsored by: Cybercity Internet, Denmark. MFC after: 7 days Notes: svn path=/head/; revision=94612
* Fix an edge case wrt membase, but more changes neededWarner Losh2002-04-131-1/+1
| | | | Notes: svn path=/head/; revision=94573
* Restore NetBSD copyrights that shouldn't have been removed in the first place.Warner Losh2002-04-132-0/+60
| | | | Notes: svn path=/head/; revision=94570
* Add a couble more Promise chip ID's.Søren Schmidt2002-04-121-1/+2
| | | | Notes: svn path=/head/; revision=94508
* After committing the forgotten IFM_IEEE80211_HOSTAP stuff to if_media.h,Warner Losh2002-04-121-10/+2
| | | | | | | no need for the ifdefs here anymore. Notes: svn path=/head/; revision=94490
* unifdef -DWI_HOSTAP, like OpenBSD doesWarner Losh2002-04-125-56/+5
| | | | Notes: svn path=/head/; revision=94486
* ifdef WI_HOSTAP some stuff that seems like it needs to be ifdef'd.Alfred Perlstein2002-04-121-0/+2
| | | | Notes: svn path=/head/; revision=94484
* Replace the original host WEP implementation with the one in OpenBSDWarner Losh2002-04-122-138/+122
| | | | | | | | | | | | | (apparently by markus@, at least committed by him). This has the advantage of not using the bad IV's from Fluhrer/Mantin/Shamir as well as bringing the drivers a little closer together. Also use a few constants in place of magic numbers in one place. Obtained from: OpenBSD 1.25, 1.28, 1.36, 1.38, 1.42 Notes: svn path=/head/; revision=94472
* Add ActionTec HWC01170 and Linksys IWN2Warner Losh2002-04-111-0/+2
| | | | | | | Obtained from: OpenBSD Notes: svn path=/head/; revision=94463
* Catchup to 1.32Warner Losh2002-04-111-1/+7
| | | | Notes: svn path=/head/; revision=94462
* Add ACTIONTEC HWC01170 from OpenBSDWarner Losh2002-04-111-0/+4
| | | | Notes: svn path=/head/; revision=94461
* Make this compile again when UMASS_DEBUG isn't defined.John Baldwin2002-04-111-0/+2
| | | | Notes: svn path=/head/; revision=94458
* Fix a warning due to the code assuming sizeof(int) == sizeof(void *) whichJohn Baldwin2002-04-111-1/+1
| | | | | | | | is not true on the alpha. I think that other parts of this code also make this implicit assumption as well. Notes: svn path=/head/; revision=94433
* Add yet another chip ID for a Promise TX2 chip.Søren Schmidt2002-04-113-0/+4
| | | | Notes: svn path=/head/; revision=94426
* Delay umass_cam_rescan by 200 ms to make sure attach is finished by theNick Hibma2002-04-111-3/+12
| | | | | | | | | | | time we tell CAM to rescan the bus. Together with the previous patch this should avoid the problem where the devices would wedge because they got spoken to over two different pipes. Tested by: Tomas Pluskal <plusik@pohoda.cz> Notes: svn path=/head/; revision=94423
* Fix the I/O performance issues with the ciss driver where CAM was limitingPaul Saab2002-04-111-1/+2
| | | | | | | | | the number of transactions the device could handle to 1. Obtained from: msmith Notes: svn path=/head/; revision=94412
* Only calculate Promise magic if a device is there for info.Søren Schmidt2002-04-111-2/+2
| | | | Notes: svn path=/head/; revision=94408
* Integrate the hostap stuff that Thomas Skibo <skibo@packbell.net>Warner Losh2002-04-118-52/+1768
| | | | | | | | | | | | | wrote. This code was for 4.5-release, so I've ported it to -current and made a few minor tweaks. The biggest non-style tweak was to not make access point the default. More changes will be needed to get this actually working, but I wanted to get a relatively pure baseline. This doesn't seem to break what works now. Notes: svn path=/head/; revision=94405
* better initWarner Losh2002-04-111-4/+6
| | | | Notes: svn path=/head/; revision=94397