summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Add SmartLink 5634PCV SurfRidersanpei2001-05-201-0/+1
| | | | | PR: kern/26952 Submitted by: Simon Dick <simond@irrelevant.org>
* #include <digi/*.h> -> #include <dev/digi/*.h>brian2001-05-193-9/+9
| | | | Suggested by: bde
* Fairwell digiio.h (moved to src/sys/sys)brian2001-05-191-61/+0
|
* digiio.h has moved to /usr/include/sysbrian2001-05-193-7/+7
|
* Introduce a global lock for the vm subsystem (vm_mtx).alfred2001-05-198-0/+8
| | | | | | | | | | | | | | | | | | | vm_mtx does not recurse and is required for most low level vm operations. faults can not be taken without holding Giant. Memory subsystems can now call the base page allocators safely. Almost all atomic ops were removed as they are covered under the vm mutex. Alpha and ia64 now need to catch up to i386's trap handlers. FFS and NFS have been tested, other filesystems will need minor changes (grabbing the vm lock when twiddling page properties). Reviewed (partially) by: jake, jhb
* Add a new ioctl to syscons, CONS_SCRSHOT. Given a userland buffer, itnik2001-05-181-0/+18
| | | | | | | | | | | copies out the current contents of the video buffer for a syscons terminal, providing a snapshot of the text and attributes. Based heavily on work originally submitted by Joel Holveck <joelh@gnu.org> for 2.2.x almost 30 months ago, which I cleaned up a little, and forward ported to -current. See also the usr.bin/scrshot utility.
* Add workaround for embedded NICs, in particular, the 815E boards.jlemon2001-05-172-17/+44
| | | | | There appears to be a bug where the chip will lock up when running in 10Mb/s mode.
* Primary purpose of this commit is to enable support for the Aviatordmlb2001-05-174-300/+715
| | | | | | | | | | | | | | | | | | | | | | Pro and Raylink cards with version 5 firmware. Only infra-structure mode has been tested. Specific changes for this feature are: o Add RFC1042 encapsulation of IP datagrams o Add authentication and association o Decode of the beacon (although not used) Other changes have been made: o Pass command completion status to *_done (in place for adding proper error recovery) o Move a couple of state variables into the current network parameters structure. This is in prep. for dealing with roaming. MFC after: 1 week
* Disable the wi driver locking for now. The driver tries to tsleep with thejhb2001-05-171-2/+2
| | | | driver lock held on detach which can lead to annoying and useless panics.
* Update to use the changed ioctl interface.sos2001-05-171-45/+42
|
* digiModel_t -> enum digi_modelbrian2001-05-173-10/+5
| | | | Remove a forgotton and unused structure.
* Remove unneeded includes of sys/ipl.h and machine/ipl.h.jhb2001-05-154-5/+0
|
* Fix instance of (struct ti_softc *) that should have beenwpaul2001-05-151-1/+1
| | | | | | (struct nge_softc *), which the compiler never complained about. I guess it doesn't matter, a pointer is a pointer, but looked weird to me.
* Adjust the descriptor structures a little by making the software partswpaul2001-05-151-4/+12
| | | | | | | | | | be unions with enough padding to make sure they always end up being a multiple of 8 bytes in size, since the 83820/83821 chips require descriptors to be aligned on 64-bit boundaries. I happened to get it right for the 32-bit descriptor/x86 case, but botched everything else. Things should work properle on 32-bit/64-bit platforms now. Note that the 64-bit descriptor format isn't being used currently.
* Remove a bogus comment which I forgot to get rid of after testinggreid2001-05-151-1/+1
|
* ahc_eisa.c:gibbs2001-05-1514-323/+506
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ahc_pci.c: Prepare for making ahc a module by adding module dependency and version info. aic7770.c: Remove linux header ifdefs. The headers are handled differently in Linux where local includes (those using "'s instead of <>'s) are allowed. Don't map our interrupt until after we are fully setup to handle interrupts. Our interrupt line may be shared so an interrupt could occur at any time. aic7xxx.c: Remove linux header ifdefs. current->curr to avoid Linux's use of current as a #define for the current task on some architectures. Add a helper function, ahc_assert_atn(), for use in message phases we handle manually. This hides the fact that U160 chips with the expected phase matching disabled need to have SCSISIGO updated differently. if (ahc_check_residual(scb) != 0) ahc_calc_residual(scb); else ahc_set_residual(scb, 0); becomes: ahc_update_residual(scb); Modify scsi parity error (or CRC error) handling to reflect expected phase being disabled on U160 chips. Move SELTO handling above BUSFREE handling so we can use the new busfree interrupt behavior on U160 chips. In ahc_build_transfer_msg() filter the period and ppr_options prior to deciding whether a PPR message is required. ppr_options may be forced to zero which will effect our decision. Correct a long standing but latent bug in ahc_find_syncrate(). We could choose a DT only rate even though DT transfers were disabled. In the CAM environment this was unlikely as CAM filters our rate to a non-DT value if the device does not support such rates. When displaing controller characteristics, include the speed of the chip. This way we can modify the transfer speed based on optional features that are enabled/disabled in a particular application. Add support for switching from fully blown tagged queing to just using simple queue tags should the device reject an ordered tag. Remove per-target "current" disconnect and tag queuing enable flags. These should be per-device and are not referenced internally be the driver, so we let the OSM track this state if it needs to. Use SCSI-3 message terminology. aic7xxx.h: The real 7850 does not support Ultra modes, but there are several cards that use the generic 7850 PCI ID even though they are using an Ultra capable chip (7859/7860). We start out with the AHC_ULTRA feature set and then check the DEVSTATUS register to determine if the capability is really present. current -> curr ahc_calc_residual() is no longer static allowing it to be called from ahc_update_residual() in aic7xxx_inline.h. Update some serial eeprom definitions for the latest BIOS versions. aic7xxx.reg: Add a combined DATA_PHASE mask to the SCSIPHASE register definition to simplify some sequencer code. aic7xxx.seq: Take advantage of some performance features available only on the U160 chips. The auto-ack feature allows us to ack data-in phases up to the data-fifo size while the sequencer is still setting up the DMA engine. This greatly reduces read transfer latency and simplifies testing for transfer complete (check SCSIEN only). We also disable the expected phase feature, and enable the new bus free interrupt behavior, to avoid a few instructions. Re-arrange the Ultra2+ data phase handling to allow us to do more work in parallel with the data fifo flushing on a read. On an SDTR, ack the message immediately so the target can prepare the next phase or message byte in parallel with our work to honor the message. aic7xxx_93cx6.c: Remove linux header ifdefs. aic7xxx_freebsd.c: current -> curr Add a module event handler. Handle tag downgrades in our ahc_send_async() handler. We won't be able to downgrade to "basic queuing" until CAM is made aware of this queuing type. aic7xxx_freebsd.h: Include cleanups. Define offsetof if required. Correct a few comments. Update prototype of ahc_send_async(). aic7xxx_inline.h: Implement ahc_update_residual(). aic7xxx_pci.c: Remove linux header ifdefs. Correct a few product strings. Enable several U160 performance enhancing features. Modify Ultra capability determination so we will enable Ultra speeds on devices with a 7850 PCI id that happen to really be a 7859 or 7860. Don't map our interrupt until after we are fully setup to handle interrupts. Our interrupt line may be shared so an interrupt could occur at any time.
* Use " |= " to enable special media handling for fxp with no MII, insteadjlemon2001-05-152-2/+2
| | | | | | | of " &= ". Also change the MII PHY device mask to check the correct bits. Cookie to: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> Pointy hat to: me
* Implement a few more floppy ioctl commands and IO options, namely:joerg2001-05-141-23/+40
| | | | | | | | | | | | | | | | | | | | | . FD_CLRERR clears the error counter, thus re-enables kernel error printf()s, . FD_GSTAT obtains the last FDC operation state, if any, . FDOPT_NOERRLOG (temporarily) turns off kernel printf() floppy error logging, . FDOPT_NOERROR makes the kernel ignore an FDC error, thus can enable the transfer of an erroneous sector to the user application All options are being cleared on (last) close. Prime consumer of the last features will be fdread(1), to be committed shortly. (FD_CLRERR should be wired into fdcontrol(8), but then fdcontrol(8) needs a major rewrite anyway.)
* Close PR 22208: bring chip out of suspend mode, because Windows mightwpaul2001-05-142-0/+15
| | | | | have put the chip to sleep at shutdown. This is really only for the VT6102, but it doesn't hurt the older chips.
* Add support for the AMD 766 southbridge incl ATA100 supportsos2001-05-142-3/+24
| | | | Fix ATA66 mode for the AMD756, the timing was way to slow
* Remove safety belt that checks for miibus in the config file. Thisjlemon2001-05-131-11/+0
| | | | was only intended for -stable, not -current.
* Add few cosmetic style fixes, and some debug information for SCB timeouts.jlemon2001-05-131-4/+62
| | | | Add VLAN support, obtained from Pedro J. Lobo (through Mike Tancsa).
* Add a few more register definitions.jlemon2001-05-121-0/+12
|
* Unbreak release. *sigh*wpaul2001-05-121-1/+1
|
* It's vlan.h, not opt_vlan.h.wpaul2001-05-111-1/+1
|
* Regenerate.jlemon2001-05-111-3/+7
|
* Correctly recognize the i82562{EM} PHYs.jlemon2001-05-112-15/+20
| | | | Obtained from: OpenBSD
* Regeneratewpaul2001-05-111-1/+5
|
* Add support for gigabit ethernet cards based on the NatSemi DP83820wpaul2001-05-115-0/+3357
| | | | | | | | | | | | | | | | | | | and DP83821 gigabit ethernet MAC chips and the NatSemi DP83861 10/100/1000 copper PHY. There are a whole bunch of very low cost cards available with this chipset selling for $150USD or less. This includes the SMC9462TX, D-Link DGE-500T, Asante GigaNIX 1000TA and 1000TPC, and a couple cards from Addtron. This chip supports TCP/IP checksum offload, VLAN tagging/insertion. 2048-bit multicast filter, jumbograms and has 8K TX and 32K RX FIFOs. I have not done serious performance testing with this driver. I know it works, and I want it under CVS control so I can keep tabs on it. Note that there's no serious mutex stuff in here yet either: I need to talk more with jhb to figure out the right way to do this. That said, I don't think there will be any problems. This driver should also work on the alpha. It's not turned on in GENERIC.
* Fix world-breaking typo in previous commit.grog2001-05-111-1/+1
|
* Try to read the station address twice during the probe. I've seenwpaul2001-05-101-1/+7
| | | | | | | a LinkSys card here in the office where reading the station address fails the first time, but works find afterwards. Without this, the probe fails. I don't think this will negatively impact any existing cards, but I want to confirm this before MFC'ing.
* Fix the panics for real this time. When something can't be allocated,imp2001-05-101-24/+27
| | | | | | | | | | | | | we need to delete the info from the list as well as zero out the res pointer we saved in the code. Also made a few style(9) changes while I was at it. Don't use if (ptr) or if (!ptr), but compare against NULL. Compare against NULL rather than 0. Don't have useless blocks. There are likely other problems as well, but at least the wi based wireless card with memory listed in its cis doesn't panic the system when the card is inserted.
* The sk driver developed a bug when the multicast code was changed towpaul2001-05-091-6/+7
| | | | | | | | | | | | | | use TAILQ macros. The sk_attach_xmac() routine calls sk_init_xmac() before doing the transceiver probe, but *before* ether_ifattach() is called. This causes sk_init_xmac() to call sk_setmulti(), which tries to do a TAILQ_FOREACH(), which it can't do because ether_ifattach() hasn't done a TAILQ_INIT() yet. This causes a NULL pointer dereference and panic in sk_setmulti() at driver load/initialization time. Fixed by calling ether_ifattach() before the MII probe. The code in RELENG_4 still uses the old way of enumerating the multicast list and doesn't have this problem. Yet.
* Remove the error var, it hides the real one.sos2001-05-091-1/+1
| | | | | | | PR 27213. BTW the CDIOCREADAUDIO ioctl is deprecated, its not longer needed and was an ugly hack from start on.
* Eliminate some panics for errors we can recover from.dmlb2001-05-092-164/+121
| | | | | | | | | | | Reduce the verbose memory map setup reports and work with pccardd to set the common memory map up. Use enumeration values for CARD_SET_RES_FLAGS. Use DELAY when spinning waiting for the card to come free instead of a loop. MFC: after 1 week
* Use enumeration types for CARD_SET_RES_FLAGS.dmlb2001-05-081-1/+2
| | | | Approved by: imp
* Add additional enumeration types for CARD_SET_RES_FLAGS.dmlb2001-05-081-1/+5
| | | | | Approved by: imp MFC: after 1 week
* - Eliminate locks in functions called only during probe and attach.tanimura2001-05-081-10/+15
| | | | | | - Finish transmitting data to mpu when a buffer gets empty. Submitted by: KUROSAWA Takahiro <fwkg7679@mb.infoweb.ne.jp>
* Polish error handling with biofinish().phk2001-05-081-14/+15
|
* Polish error handling code using biofinish()phk2001-05-081-6/+1
|
* Remove all the mutex stuff - suggested by jhbbrian2001-05-084-49/+12
| | | | | | Tidy up includes, credit Slawa Olhovchenkov, John Prince and Eric Hernes for their efforts and add a couple of missing parenthesis around return expressions.
* sys/mutex.h requires sys/lock.h for LINTbrian2001-05-071-0/+1
| | | | Re-spotted by: phk
* Minor updates:msmith2001-05-075-30/+47
| | | | | | | | - Rework of twe_report_request to use the command status value rather than the flags register. (Joel Jacobson @ 3ware) - Update to match some changes in -current vs. stable. MFC in: 1 week
* Remove if_ray_oldcard.h because pccard support multiple windows now.dmlb2001-05-073-140/+11
| | | | | Setup attribute memory resource in ray_probe so that it is added to the print out of the resource list on card insertion.
* Change COM_LOCK/COM_UNLOCK to a regular mutex - still conditional onbrian2001-05-074-25/+25
| | | | SMP being defined.
* Make the disk mini-layer check for and handle zero-length transfersphk2001-05-068-50/+0
| | | | instead of the underlying drivers.
* Make LINT compile again.brian2001-05-061-0/+1
| | | | Spotted by: phk
* Actually biofinish(struct bio *, struct devstat *, int error) is more generalphk2001-05-0611-75/+30
| | | | | | than the bioerror(). Most of this patch is generated by scripts.
* Fix a panic if MD devices were left half-created.phk2001-05-061-14/+12
| | | | | | | XXX: the real bug is that devstat isn't part of the disk minilayer. PR: 27158 Submitted by: Anders Nordby <anders@fix.no>
* Restore I/O port resources to the condition before adv_isa_probe() isnyan2001-05-061-10/+17
| | | | | | called. Submitted by: yokota
OpenPOWER on IntegriCloud