aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Submitted by: Michael Petry <petry@netwolf.NetMasters.com>Steve Passe1997-03-212-828/+1256
| | | | | | | | | | | | | Michael submitted code to activate the audio muxes. fsmp: extended those changes for different boards. auto-detection of board types. auto-detection of tuner types. auto-detection of stereo option. Notes: svn path=/head/; revision=24087
* Submitted by: Michael Petry <petry@netwolf.NetMasters.com>Steve Passe1997-03-211-14/+31
| | | | | | | | | | | | | Michael submitted code to activate the audio muxes. fsmp: extended those changes for different boards. auto-detection of board types. auto-detection of tuner types. auto-detection of stereo option Notes: svn path=/head/; revision=24086
* Added support for newer cards that have the DP83840A PHY chip.David Greenman1997-03-212-9/+46
| | | | | | | | | | | | | | | | | | | | | Fixed a bug in fxp_mdi_write - a hex number was missing a preceding 0x and this was causing the routine to not wait for a PHY write to complete. Added support for link0, link1, and link2 flags to toggle auto- negotiation, 10/100, and half/full duplex: link0 disable auto-negotiation When set, these flags then have meaning: -link1 10Mbps link1 100Mbps -link2 half duplex link2 full duplex ...needs a manual page. Notes: svn path=/head/; revision=24079
* Added Allied Telesis CenterCOM LA100-PCI support. Currently, fullKATO Takenori1997-03-201-1/+5
| | | | | | | duplex mode doesn't work. Notes: svn path=/head/; revision=24061
* additions for table-driven frequency calculation.Steve Passe1997-03-191-196/+202
| | | | | | | | | addition of colorbar ioctl. removed unneeded disable_intr()/enable_intr() wrappers in i2c code. minor cleanup. Notes: svn path=/head/; revision=24046
* additions for table-driven frequency calculation.Steve Passe1997-03-191-0/+11
| | | | | | | addition of colorbar ioctl. Notes: svn path=/head/; revision=24045
* aic7xxx.seq:Justin T. Gibbs1997-03-184-36/+263
| | | | | | | | | | | | | | Stick 4 more, twin channel only, instructions behind .if ( TWIN_CHANNEL) aic7xxx_asm.c: Add the -O options which allows the specification of which options to include in a program listing. This makes it possible to easily determine the address of any instruction in the program across different hardware/option configurations. Updated usage() as well. Notes: svn path=/head/; revision=23991
* Submitted by: Doug White <dwhite@gdi.uoregon.edu>Steve Passe1997-03-171-1/+1
| | | | | | | | | | | I broke the cable tuning with my 'TEST_A' code. Remove TEST_A define till I finish this change for both tuning modes. Note that this will effectively break the new TVTUNER_SETFREQ/TVTUNER_GETFREQ ioctl()s. These aren't used by anyone but me yet (attempt to provide full resolution fine tuning for "fringe" stations) so it should be no problem Notes: svn path=/head/; revision=23972
* Fixed two deficiencies in the driver that have existed since it wasDavid Greenman1997-03-172-23/+116
| | | | | | | | | | | | | | | written: 1) Full duplex mode is now supported (and works!) 2) The 10Mbps-only PCI Pro/10 should now work (untested, however) Thanks to Justin Gibbs for providing a PCI bus analyzer trace while the Intel Windows driver was configuring the board...this made it possible to figure out the mystery bit that I wasn't setting in the PHY for full duplex to work. Notes: svn path=/head/; revision=23964
* Fixed null pointer panic in devtotty(). Fixed bounds checking inBruce Evans1997-03-161-7/+13
| | | | | | | | | | devtotty(). devtotty() must check its arg carefully since the arg is supplied as ioctl data. This should fix PR3004. Renamed devtotty() to snpdevtotty(). Notes: svn path=/head/; revision=23950
* Don't depend on <sys/types.h> being (bogusly) included by <stdio.h>.Bruce Evans1997-03-163-3/+9
| | | | Notes: svn path=/head/; revision=23942
* patches for bt848 specific hue/bright/contrast/satu/satv.Steve Passe1997-03-161-2/+68
| | | | Notes: svn path=/head/; revision=23936
* Submitted by: Amancio Hasty <hasty@rah.star-gate.com>Steve Passe1997-03-162-44/+182
| | | | | | | | | addition of bt848 specific ioctl()s for hue/bright/contrast/satu/satv. patches by Amancio Hasty to fix "screen freeze" problem. Notes: svn path=/head/; revision=23935
* Missed one.Justin T. Gibbs1997-03-163-0/+204
| | | | Notes: svn path=/head/; revision=23934
* Makefile gram.y scan.l sequencer.h symbol.c symbol.h aic7xxx_asm.c:Justin T. Gibbs1997-03-1622-3239/+9185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New sequencer assembler for the aic7xxx adapters. This assembler performs some amount of register type checking, allows bit manipulation of symbolic constants, and generates "patch tables" for conditionalized downloading of portions of the program. This makes it easier to take full advantage of the different features of the aic7xxx cards without imposing run time penalies or being bound to the small memory footprints of the low end cards for features like target mode. aic7xxx.reg: New, assembler parsed, register definitions fo the aic7xxx cards. This was done primarily in anticipation of 7810 support which will have a different register layout, but should be able to use the same assembler. The kernel aic7xxx driver consumes a generated file in the compile directory to get the definitions of the register locations. aic7xxx.seq: Convert to the slighly different syntax of the new assembler. Conditionalize SCB_PAGING, ultra, and twin features which shaves quite a bit of space once the program is downloaded. Add code to leave the selection hardware enabled during reconnects that win bus arbitration. This ensures that we will rearbitrate as soon as the bus goes free instead of delaying for a bit. When we expect the bus to go free, perform all of the cleanup associated with that event "up front" and enter a loop awaiting bus free. If we see a REQ first, complain, but attempt to continue. This will hopefully address, or at least help diagnose, the "target didn't send identify" messages that have been reported. Spelling corrections obtained from NetBSD. Notes: svn path=/head/; revision=23925
* Various stylistic improvements regarding num_eisa_slots & co.:Joerg Wunsch1997-03-132-8/+10
| | | | | | | | | | . properly declare the variable in in a .h file, as opposed to using a private extern declaration in userconfig.c; . move the definition of EISA_SLOTS and therefore the inclusion of opt_eisa.h into eisaconf.c. Notes: svn path=/head/; revision=23855
* Since i don't see that anybody is implementing a more correct EISAJoerg Wunsch1997-03-121-1/+5
| | | | | | | | | | probing anytime soon, make EISA_SLOTS a fully supported option. It's required for the HP NetServer LC series machines. Next stop: make dset(8) aware of it as well. Notes: svn path=/head/; revision=23801
* Initial import of the Brooktree PCI-TV drivers. I have not testedMark Murray1997-03-103-0/+2664
| | | | | | | | | these, they may not even compile. I am importing them on behalf of the submitters. Submitted by: amancio, smp Notes: svn path=/head/; revision=23599
* make sure that the user supplied signals in struct vt_mode are actuallyJohn-Mark Gurney1997-03-011-8/+18
| | | | | | | | | | | | | valid signals, else return EINVAL for ioctl VT_SETMODE. this fixes a problem that anybody with vty access can panic the system. 2.2-Candidate (and 2.1.0 I believe) Reviewed-by: sos Notes: svn path=/head/; revision=23248
* Fixed spelling error in a variable name.Bruce Evans1997-02-281-2/+2
| | | | Notes: svn path=/head/; revision=23209
* Removed an obsolete test which prevented mouse movement from quitingKazutaka YOKOTA1997-02-281-7/+6
| | | | | | | | | screen saver. Added a missing `break' statement in set_normal_mode(). Reviewed by: sos Notes: svn path=/head/; revision=23194
* No longer clear all interrupt status when the sequencer is reset. The onlyJustin T. Gibbs1997-02-281-40/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | time that we really want to do this is when a bus reset causes the sequencer to be reset and the kernel driver now handles this case. Remove some reordering in the select2 routine that wasn't necessary. It was an experimental fix for a race condition I fixed elsewhere, and confused the code flow. Don't bother looping on a parity error in the mesgout loop since we can't see parity errors on out phases. Clean up the mesgin_identify code. In the old days, we "snooped" for tag messages and used this as an indicator of whether or not the target was using tagged transactions. This forced the sequencer to ack the identify before determining if a valid SCB matched the target meaning that an abort message to handle this case might not be seen before the target entered a data phase. Since we can determin the "tagged-ness" of a target by looking it up in the array of busy targets (recently introduced), we can determine this up front simplifying the search code as well as ensuring we can follow the SCSI specs method for rejecting a reselection. When an SCB is placed on the free list, set its SCB_TAG to SCB_LIST_NULL. This makes it much easier for the kernel driver to find active SCBs on the card during error recovery. Notes: svn path=/head/; revision=23168
* Leave reselections on all the time.Justin T. Gibbs1997-02-252-10/+21
| | | | | | | | If we are aborting an SCB from findSCB, don't add it back to the free list - the kernel driver will do this for us. Notes: svn path=/head/; revision=23098
* Add support for the SMC9332BDT that's using the DE21140A chip. ThisJoerg Wunsch1997-02-231-1/+15
| | | | | | | | | | | | is merely a stop-gap measure until we can import an upgraded driver from Matt Thomas. Closes PR # 2696, and most likely also 2767. OKed by: core Notes: svn path=/head/; revision=23040
* Revert $FreeBSD$ back to $Id$Peter Wemm1997-02-225-5/+5
| | | | Notes: svn path=/head/; revision=22982
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-2270-70/+70
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Enlarge the message out buffer from 6 to 8 bytes. Now that sync and wideJustin T. Gibbs1997-02-182-18/+11
| | | | | | | | | | | | | | | negotiation messages may be tagged, we were overrunning the old buffer. The variable that was getting squashed is updated before the message goes out, causing corrupted SDTR or WDTR messages. Depending on the phases traversed before message out, this could cause the wrong offset to be negotiated allowing data overruns to occur. The problem is easier to detect with wide targets on the chain since the allowed offset is smaller. Also removed the unnecessary clearing of SPIORDY during the message out phase. We don't rely on SPIORDY any more. Notes: svn path=/head/; revision=22895
* Oops, cut/paste could be done on tthe WRONG vty :(Søren Schmidt1997-02-131-1/+1
| | | | | | | pointed out by Kazu. Notes: svn path=/head/; revision=22640
* Clear the DFCNTRL register after every busfree.Justin T. Gibbs1997-02-111-23/+26
| | | | | | | | | | | | | | | | | | | | When setting the HCNT registers, do so in ascending order. When performing tagged queueing in non-paging mode, also check the disconnected bit in the SCB as extra sanity during a reconection. Make the labels in the DMA routine more sane. When doing a DMA, if we see the DMADONE condition come true, we can simply turn of the DMA enable bits in DFCNTRL without testing the FIFO state as HDONE is true when DMADONE is true and this emplies the FIFO is empty. These changes clear up the data overrun error messages and seem to prevent the "timed out in data-in phase" problems. Notes: svn path=/head/; revision=22568
* really minor cleanupJulian Elischer1997-02-111-1/+1
| | | | | | | sc is set to ifp->if_softc so use it.. Notes: svn path=/head/; revision=22557
* Make ccd compile again after the Lite2 merge.Mike Pritchard1997-02-101-4/+4
| | | | | | | VOP_UNLOCK was being called with the wrong number of arguments. Notes: svn path=/head/; revision=22538
* This is the kernel Lite/2 commit. There are some requisite userlandJohn Dyson1997-02-102-3/+3
| | | | | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org> Notes: svn path=/head/; revision=22521
* Clear the channel after (re)selection instead of once we see the bus goJustin T. Gibbs1997-02-092-30/+31
| | | | | | | | | | | | | | | | | | | | | | | | | free. When we clear SCSIRATE, also clear the FAST20 bit in SXFRCTL0. This also allowed me to clean up some of the ULTRA code. ULTRAENB->FAST20 to follow the convention in the Adaptec data books. Fix the data-overrun code to set both stcnt and hcnt otherwise, the transfer will just hang until we get a timeout. Add implicit support for the NOOP message. I've never heard of the driver issueing a reject for one, but its silly to reject NOOP and who knows how a device might react. In the dma routine, check SDONE before cleaing SDMAEN. The data books mention SDONE possibly being cleared when SDMAEN is reset. Clients of dma now need to check if SINDEX is cleared to know if a phasemis occured. Fix some comments to be correct. Notes: svn path=/head/; revision=22451
* Fixed missing ioport offset from the reading/updating of the PLXDavid Greenman1997-02-051-1/+1
| | | | | | | | | interrupt control/status register. Submitted by: Brian McGovern <bmcgover@cisco.com> Notes: svn path=/head/; revision=22309
* Fix misspelled variable name, -current build stopperAndrey A. Chernov1997-02-051-1/+1
| | | | Notes: svn path=/head/; revision=22283
* Add interface revision field to pci_register_lkm parameter list.pci.c pcibus.hStefan Eßer1997-02-041-1/+5
| | | | | | | | | | This parameter is intended to allow new kernels to work with old LKM binaries, provided the revision ID is incremented whenever the PCI LKM interface is changed. The revision ID does not at all protect against changes in data structures accesses by the driver. Notes: svn path=/head/; revision=22260
* Changed several configuration options:David Greenman1997-02-041-7/+7
| | | | | | | | | | Disabled the DMA byte counters - I had it this way originally and this is the recommended setting. Set crscdt to CRS only (0) since this is what it should be for an MII PHY. Also fixed some comments. Notes: svn path=/head/; revision=22257
* Do "selective" reset rather than full reset...the manual specificallyDavid Greenman1997-02-042-3/+8
| | | | | | | | | says not to do the full reset because it can lock up the PCI bus if the chip is active. Added various PORT command definitions to facilitate this. Notes: svn path=/head/; revision=22255
* Don't include the short-frames counter in with the input errors. ThisDavid Greenman1997-02-041-3/+1
| | | | | | | | counter is incremented on all short frames, including those that are the result of collisions. Notes: svn path=/head/; revision=22253
* In dma_finish, don't disturb the direction bit in DFCNTRL when turning offJustin T. Gibbs1997-02-031-6/+3
| | | | | | | | | | host DMAs. The additional test to ensure that the DMA has stopped is also unnecessary since we've already waited for the DMA to complete. Update my copyright for the new year. Notes: svn path=/head/; revision=22234
* Fixed the SMC fifo bug fix. sioopen() hung while input was streaming inBruce Evans1997-02-011-3/+15
| | | | | | | | | | | | | with <= 100 usec between each character arrival time. This didn't happen until rev.1.75 of clock.c because DELAY(100) used to delay for closer to 80 usec than 100 usec, and the minimum time between character arrivals is 87.8 usec at the maximum supported speed of 115200 bps 8N1. Clear DCD timestamp flag on close (the input timestamp flag is already cleared). Notes: svn path=/head/; revision=22179
* Fixed the "switch to next screen" command (normally bound to theSøren Schmidt1997-01-301-1/+10
| | | | | | | | | | key "print scrn". It used to stop at the first non-open vty, now it skips the non-open ones and thereby enable one to cycle around all open vty by pressing "print scrn". Notes: svn path=/head/; revision=22128
* Fixes and workarounds for Hayes ESP:Bruce Evans1997-01-291-7/+25
| | | | | | | | | | | | | | | | | | - don't uselessly initialize the fifo "DMA" bit at attach time. - initialize the fifo "DMA" bit at open time. Without this, the device interrupts for every character received, reducing input performance to that of an 8250. - don't uselessly initialize the fifo trigger level to 8 (scaled to 256) at attach time. - don't scale the fifo trigger level to 512 bytes. The driver's pseudo- dma buffer has size 256, so it can't handle bursts of size 512 or 256. It should be able to handle the second lowest ftl (2 scaled to 64). - don't reset the fifos in siostop(). Reset triggers a hardware bug involving wedging of the output interrupt bit This workaround unfortunately requires ESP support to be configured. Notes: svn path=/head/; revision=22104
* Add 1997 to my copyright.Justin T. Gibbs1997-01-292-16/+7
| | | | | | | | | | | | Expand the boundaries of a pause disabled region to close of possible race condition. Revert a portion of the DMA code to fix false overruns. Add a missing "add_scb_to_free_list" so we don't leak SCBs. Notes: svn path=/head/; revision=22078
* Some of these cards are always in promiscous mode :-(Poul-Henning Kamp1997-01-281-15/+12
| | | | | | | | If you enable ip forwarding your net melts down. This is a workaround, probably not the correct fix. Notes: svn path=/head/; revision=22062
* Improve on previous fix: Clean up getirq() as well, and remove redundantStefan Eßer1997-01-251-9/+8
| | | | | | | warning messages. Notes: svn path=/head/; revision=21988
* Change the way DMA is handled during the command phase. Only test onJustin T. Gibbs1997-01-242-7/+30
| | | | | | | | | | | | | | | SDONE, not HDONE. In the data phase dma handler, mask off just the enable bits instead of clearing the whole register. Clearing the direction bit could be bad. Also don't stop a DMA until MREQPEND goes false. Doing this may cause an ABORT on the PCI bus although I have yet to see this happen. Add definitions for MREQPEND and the BRDCTL register. The BRDCTL register is used to handle high byte termination and automatic termination testing. Notes: svn path=/head/; revision=21982
* Make IRQ 0 invalid in pci_map_int(), since it is hardwired to theStefan Eßer1997-01-231-1/+1
| | | | | | | programmable interval timer chip in PC systems. Notes: svn path=/head/; revision=21965
* Add save/restore cursor as pr SCO screen(HW) manpage.Søren Schmidt1997-01-232-1/+30
| | | | | | | | | | | Fix ESC[2J to not move cursor home Clear mouse cutmarking on more cases. Minor changes by me. Submitted by: ache Notes: svn path=/head/; revision=21964
* Put newlines after log messages.Garrett Wollman1997-01-231-3/+3
| | | | | | | | Submitted by: seki@sysrap.cs.fujitsu.co.jp PR#2563 (but the patch didn't apply) Notes: svn path=/head/; revision=21963