summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Rearrange #includes to make more sense. This is still not the reformgrog2000-12-201-8/+10
| | | | that bde is waiting to see, but at least it works.
* Rename detached plexes and subdisks correctly (off by one error)grog2000-12-201-6/+16
| | | | Submitted by: Terry Glanfield <Terry.Glanfield@program-products.co.uk>
* open_drive: Add support for more than 32 devices of a particular kind.grog2000-12-201-6/+11
| | | | | | | | | | | | Requested by: Bernd Walter <ticso@cicely8.cicely.de> Cor Bosman <cor@xs4all.net> Kai Storbeck <kai@xs4all.net> Joe Greco <jgreco@ns.sol.net> Add support for Compaq SMART-2 RAID (idad) as storage device for Vinum subdisks. Reported by: Aaron Hill <hillaa@hotmail.com>
* give_plex_to_volume: Recalculate volume size after attaching.grog2000-12-202-5/+14
| | | | Cosmetics.
* Add flag XFR_BUFLOCKED to identify buffers which have been locked.grog2000-12-201-1/+2
| | | | | | Part of fix to ensure that we unlock buffers we lock. In principle submitted by: tegge
* ahc_eisa.c:gibbs2000-12-2013-222/+710
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ahc_pci.c: Add detach support. Make use of soft allocated on our behalf by newbus. For PCI devices, disable the mapping type we aren't using for extra protection from rogue code. aic7xxx_93cx6.c: aic7xxx_93cx6.h: Sync perforce IDs. aic7xxx_freebsd.c: Capture the eventhandle returned by EVENTHANDER_REGISTER so we can kill the handler off during detach. Use AHC_* constants instead of hard coded numbers in a few more places. Test PPR option state when deciding to "really" negotiate when the CAM_NEGOTIATE flag is passed in a CCB. Make use of core "ahc_pause_and_flushwork" routine in our timeout handler rather than re-inventing this code. Cleanup all of our resources (really!) in ahc_platform_free(). We should be all set to become a module now. Implement the core ahc_detach() routine shared by all of the FreeBSD front-ends. aic7xxx_freebsd.h: Softc storage for our event handler. Null implementation for the ahc_platform_flushwork() OSM callback. FreeBSD doesn't need this as XPT callbacks are safe from all contexts and are done directly in ahc_done(). aic7xxx_inline.h: Implement new lazy interrupt scheme. To avoid an extra PCI bus read, we first check our completion queues to see if any work has completed. If work is available, we assume that this is the source of the interrupt and skip reading INTSTAT. Any remaining interrupt status will be cleared by a second call to the interrupt handler should the interrupt line still be asserted. This drops the interrupt handler down to a single PCI bus read in the common case of I/O completion. This is the same overhead as in the not so distant past, but the extra sanity of perforning a PCI read after clearing the command complete interrupt and before running the completion queue to avoid missing command complete interrupts added a cycle. aic7xxx.c: During initialization, be sure to initialize all scratch ram locations before they are read to avoid parity errors. In this case, we use a new function, ahc_unbusy_tcl() to initialize the scratch ram busy target table. Replace instances of ahc_index_busy_tcl() used to unbusy a tcl without looking at the old value with ahc_unbusy_tcl(). Modify ahc_sent_msg so that it can find single byte messages. ahc_sent_msg is now used to determine if a transfer negotiation attempt resulted in a bus free. Be more careful in filtering out only the SCSI interrupts of interest in ahc_handle_scsiint. Rearrange interrupt clearing code to ensure that at least one PCI transaction occurrs after hitting CLRSINT1 and writting to CLRINT. CLRSINT1 writes take a bit to take effect, and the re-arrangement provides sufficient delay to ensure the write to CLRINT is effective. The old code might report a spurious interrupt on some "fast" chipsets. export ahc-update_target_msg_request for use by OSM code. If a target does not respond to our ATN request, clear it once we move to a non-message phase. This avoids sending a MSG_NOOP in some later message out phase. Use max lun and max target constants instead of hard-coded values. Use softc storage built into our device_t under FreeBSD. Fix a bug in ahc_free() that caused us to delete resources that were not allocated. Clean up any tstate/lstate info in ahc_free(). Clear the powerdown state in ahc_reset() so that registers can be accessed. Add a preliminary function for pausing the chip and processing any posted work. Add a preliminary suspend and resume functions. aic7xxx.h: Limit the number of supported luns to 64. We don't support information unit transfers, so this is the maximum that makes sense for these chips. Add a new flag AHC_ALL_INTERRUPTS that forces the processing of all interrupt state in a single invokation of ahc_intr(). When the flag is not set, we use the lazy interrupt handling scheme. Add data structures to store controller state while we are suspended. Use constants instead of hard coded values where appropriate. Correct some harmless "unsigned/signed" conflicts. aic7xxx.seq: Only perform the SCSIBUSL fix on ULTRA2 or newer controllers. Older controllers seem to be confused by this. In target mode, ignore PHASEMIS during data phases. This bit seems to be flakey on U160 controllers acting in target mode. aic7xxx_pci.c: Add support for the 29160C CPCI adapter. Add definitions for subvendor ID information available for devices with the "9005" vendor id. We currently use this information to determine if a multi-function device doesn't have the second channel hooked up on a board. Add rudimentary power mode code so we can put the controller into the D0 state. In the future this will be an OSM callback so that in FreeBSD we don't duplicate functionality provided by the PCI code. The powerstate code was added after I'd completed my regression tests on this code. Only capture "left over BIOS state" if the POWRDN setting is not set in HCNTRL. In target mode, don't bother sending incremental CRC data.
* Fix the PR. Getting a dma channel equal to 0 remains a problem though.nsouch2000-12-191-1/+1
| | | | PR: i386/22568
* Fix testing reboot howto flags in acpi_shutdown_final().iwasaki2000-12-191-1/+1
| | | | | | | This sould make the system power-off correctly where the howto had more bits set than RB_POWEROFF, e.g. RB_NOSYNC. Submitted by: Peter Pentchev <roam@orbitel.bg>
* Proberly back down DMA modes on the Acer Aladdin.sos2000-12-192-5/+13
|
* un-staticize M_AGP so that it can be used in agp*.cassar2000-12-191-1/+1
|
* Convert the sio driver to use a spin mutex instead of a s_lock. This isjhb2000-12-181-123/+58
| | | | | | going to hurt sio(4) performance for the time being. As we get closer to release and have more of the kernel unlocked we can come back to doing arcane optimizations to workaround the limitations of the sio hardware.
* Attempt to read and verify the card's status in wi_stop() before sending itjhb2000-12-181-2/+9
| | | | | | | the disable command. On some systems, writing to the card after it has been ejected causes the machine to hang. Reviewed by: wpaul
* Add power state manipulation to the fxp driver. Some people havewpaul2000-12-181-0/+20
| | | | | | claimed that their Intel NIC is comatose after a warm boot from Windoze. This is most likely due to the card getting put in the D3 state. This should bring it back to life.
* Use pci_get_powerstate()/pci_set_powerstate() which now exists in thewpaul2000-12-181-24/+16
| | | | | | | | PCI code. This saves each driver from having to grovel around looking for the right registers to twiddle. I should eventually convert the other PCI drivers to do this; for now, these three are ones which I know need power state handling.
* Divorce the kernel binary ABI version number from the messagejulian2000-12-187-166/+164
| | | | | | | | | format version number. (userland programs should not need to be recompiled when the netgraph kernel internal ABI is changed. Also fix modules that don;t handle the fact that a caller may not supply a return message pointer. (benign at the moment because the calling code checks, but that will change)
* Linksys Fast Ethernet PCCARD cards supported by the ed driver nowtoshi2000-12-183-39/+44
| | | | | | | | require the addition of flag 0x80000 to their config line in pccard.conf(5). This flag is not optional. These Linksys cards will not be recognized without it. Reviewed by: imp, iwasaki
* kobjify.cg2000-12-1835-2826/+2787
| | | | | | | | | | this gives us several benefits, including: * easier extensibility- new optional methods can be added to ac97/mixer/channel classes without having to fixup every driver. * forward compatibility for drivers, provided no new mandatory methods are added.
* Call ed_probe_Novel in the AX88190 case as well.imp2000-12-171-1/+1
| | | | | | Remove stary blank line. Submitted by: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp>
* Add a cloning function to vn(4) which triggers on "vn%d.ctl". Give thephk2000-12-161-52/+112
| | | | | | | .ctl devices their own cdevsw since no I/O can or should be done on them. Vn(4) is still not entirely DEVFS friendly since it only creates vn%d nodes.
* Switch off some debugging code.paul2000-12-162-3/+1
|
* Fixup some problems with the merged code of the previous commit.paul2000-12-163-5/+4
|
* Newbusify.paul2000-12-166-544/+627
| | | | Temporarily disable PC98 until I bring it up to date.
* Apply some contributed patches to reduce number of tx buffer allocationwpaul2000-12-152-3/+156
| | | | | | failures and add some support for WEP on Prism II chip. Submitted by: YAMAMOTO Shigeru <shigeru@iij.ad.jp>
* Enforce disk unit numbers upper limit in cloning.phk2000-12-151-0/+2
|
* Fix with debugging option.takawata2000-12-151-2/+2
| | | | Submitted by: haro@tk.kubota.co.jp
* Make Embedded Controller driver interrupt driven.takawata2000-12-141-19/+77
|
* Fix include directories for crossbuilding.marcel2000-12-131-1/+1
| | | | | | | | | | | | | | aicasm is run on the build machine and therefore needs to be compiled and linked against the headers and libraries (resp) of the build machine. Since normally the default include directories are search after any specified on the command line, make sure we don't accidentally pick up machine dependent headers from the kernel compile directory by specifying /usr/include first. This solves the (cross) build problem for ia64. Approved by: gibbs
* Include vm/vm_zone.h prior to vm/swap_pager.h.tanimura2000-12-131-0/+1
| | | | | Noticed by: Michael Harnois <mdharnois@home.com> Submitted by: assar
* Remove unnecessary includes found by phk's script. I've been buildingimp2000-12-134-5/+0
| | | | these locally for ages.
* Fix problem with ax88190 based cards trying to probe further afterimp2000-12-131-0/+1
| | | | matching the ax88190.
* Remove unnecessary includes found by phk's script a long time ago.imp2000-12-132-4/+0
|
* Add module dependencies on CAM module.imp2000-12-133-0/+3
| | | | Submitted by: Michael Reifenberger
* Remove a redundant prototype.msmith2000-12-131-1/+0
|
* Don't try to free the now-nonexistent hdrspec field. This one snuck bymsmith2000-12-132-4/+0
| | | | me in the previous round of patches. Oops.
* Add isa support:imp2000-12-134-20/+18
| | | | | o write isa driver routines. o factor detach routine in sn_detach.
* Updates to match changes elsewhere in the PCI subsystem:msmith2000-12-133-98/+34
| | | | | | | | | - Remove redundant header-type-specific support in the cardbus pcibus clone. The bridges don't need this anymore. - Use pcib_get_bus instead of the deprecated pci_get_secondarybus. - Implement read/write ivar support for the pccbb, and teach it how to report its secondary bus number. Save the subsidiary bus number as well, although we don't use it yet.
* Next round of PCI subsystem updates:msmith2000-12-136-694/+930
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Break out the /dev/pci driver into a separate file. - Kill the COMPAT_OLDPCI support. - Make the EISA bridge attach a bit more like the old code; explicitly check for the existence of eisa0/isa0 and only attach if they don't already exist. Only make one bus_generic_attach() pass over the bridge, once both busses are attached. Note that the stupid Intel bridge's class is entirely unpredictable. - Add prototypes and re-layout the core PCI modules in line with current coding standards (not a major whitespace change, just moving the module data to the top of the file). - Remove redundant type-2 bridge support from the core PCI code; the PCI-CardBus code does this itself internally. Remove the now entirely redundant header-class-specific support, as well as the secondary and subordinate bus number fields. These are bridge attributes now. - Add support for PCI Extended Capabilities. - Add support for PCI Power Management. The interface currently allows a driver to query and set the power state of a device. - Add helper functions to allow drivers to enable/disable busmastering and the decoding of I/O and memory ranges. - Use PCI_SLOTMAX and PCI_FUNCMAX rather than magic numbers in some places. - Make the PCI-PCI bridge code a little more paranoid about valid I/O and memory decodes. - Add some more PCI register definitions for the command and status registers. Correct another bogus definition for type-1 bridges.
* Remove a couple of leftover unused variables.msmith2000-12-132-2/+0
|
* Another mismatch found by Gcc:julian2000-12-122-2/+0
| | | | | This is what happenss when you let the patches pile up too long without committing them.. brain rot..
* remove unused variablejulian2000-12-121-1/+0
|
* I always forget this file. It's netgraph, but not one of mine.....julian2000-12-121-3/+4
|
* Add a missing include of <sys/proc.h>.jhb2000-12-121-0/+1
|
* Grrrrr. That last commit was supposed to be to the head, not to -stablewpaul2000-12-1212-3/+27
| | | | | | (even though I want the fixes in -stable anyway). I'm sure I'm going to get flamed now for committing to -stable and -current too quickly. *sigh*
* Reviewed by: Archie@freebsd.orgjulian2000-12-126-17/+36
| | | | | | | | | | | | | This clears out my outstanding netgraph changes. There is a netgraph change of design in the offing and this is to some extent a superset of soem of the new functionality and some of the old functionality that may be removed. This code works as before, but allows some new features that I want to work with and evaluate. It is the basis for a version of netgraph with integral locking for SMP use. This is running on my test machine with no new problems :-)
* Catch up with the recent conversion the per-eventhandler list mutex toiwasaki2000-12-122-0/+2
| | | | a lockmgr lock.
* - We have access to our own device_t here, so use pci_read_configmsmith2000-12-122-30/+77
| | | | | | | | | | | | | | rather than finding our parent pcib and using its PCI_READ_CONFIG method. - Fix the defines for the 32-bit I/O decode registers, and properly process the 16-bit versions. Now we will correctly check that I/O resources behind the bridge are going to be decoded. - Bring the quirk for the Orion PCI:PCI bridge in here (since it seems to want to set the secondary/supplementary bus numbers). - Use PCI_SLOTMAX rather than a magic number.
* Don't try to fix up the Orion here; the interface we use is wrong for themsmith2000-12-121-16/+0
| | | | new code (and about to disappear too).
* make sure we tear down the devnodes for the endpoints 1 and aboven_hibma2000-12-121-46/+74
| | | | when switching configuration.
* - Don't return early from the PCI:EISA bridge attachment, or we will losemsmith2000-12-122-42/+41
| | | | | | | | | the ISA bus. - Don't expect that a PCI:ISA bridge will have a correct class value; if we're checking PCI IDs, only depend on these. This should fix the loss of ISA on machines with PCI:EISA bridges like the AS4100.
* fix problem with vmware DAD. reported by many, tested @ IETF49 withume2000-12-111-5/+15
| | | | | | help from Florent Parent <Florent.Parent@viagenie.qc.ca>. Obtained from: KAME
OpenPOWER on IntegriCloud