aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Introduce a device flags value of 0x1 to always pretend a 1.44 MBJoerg Wunsch1997-10-191-2/+15
| | | | | | | | | | | | | | | | floppy drive #0, regardless of what the CMOS says. This is intended as a bandaid for those plagued with Compaq's idea to not announce the floppy drive on their `Aero' notebook. Using the device flags is not very nice (in particular since they aren't per-drive but per-controller), but still looks a lot better to me than the disgusting guesswork hack that was recently posted to -hackers. Doc update will follow shortly. Notes: svn path=/head/; revision=30574
* Add an $Id$Peter Wemm1997-10-181-0/+1
| | | | Notes: svn path=/head/; revision=30557
* Merge in changes from Matt. Accton EN12xx support, bugfixes. There isPeter Wemm1997-10-182-43/+192
| | | | | | | | | a change that might have an effect on the problems some have seen with older chips, it looks like the driver may have mistakenly thought there was an SIA when there isn't. Notes: svn path=/head/; revision=30556
* Import Matt's current de driver... He appears to be maintaining it inPeter Wemm1997-10-181-7/+27
| | | | | | | | the NetBSD source tree now. This is slightly newer than the updated .tar.gz on the 3am-software web site. Notes: svn path=/head/; revision=30549
* Fixed a bug where input packets were counted twice - messing up theDavid Greenman1997-10-171-2/+1
| | | | | | | stats. Notes: svn path=/head/; revision=30505
* Hide a silly ``unknown board type'' message behind bootverbose. TheJoerg Wunsch1997-10-151-3/+4
| | | | | | | ``ie0: not found'' message is sufficient as a default. Notes: svn path=/head/; revision=30435
* if_ep.c clarification/simplification.Jun-ichiro itojun Hagino1997-10-142-272/+91
| | | | | | | | | | | | | | | | | - irq = 9 problem (PR 4693) - mbuf chaining oddity fixed. (PR 4693) - trailer protocol has gone. (PR 4693) - removed mbuf kludge, we got higher performance. (PR 4693) - some indentation fixes I'm sorry that I couldn't make a 2.2.5-RELEASE deadline. PR: 4693 Reviewed by: babkin@hq.icb.chel.su Submitted by: hamada@tom-yam.or.jp Notes: svn path=/head/; revision=30398
* Last major round (Unless Bruce thinks of somthing :-) of malloc changes.Poul-Henning Kamp1997-10-123-4/+4
| | | | | | | | | | | Distribute all but the most fundamental malloc types. This time I also remembered the trick to making things static: Put "static" in front of them. A couple of finer points by: bde Notes: svn path=/head/; revision=30354
* Back out my LALT -> META change until we figure out a way to make itJordan K. Hubbard1997-10-121-2/+2
| | | | | | | work sympathetically with the function keys. Notes: svn path=/head/; revision=30351
* Attempt to support IPX.Peter Wemm1997-10-121-1/+22
| | | | | | | | Suggested patch by: Vasily V. Grechishnikov <bazilio@ied-vorstu.ac.ru> (plus cut/paste, whitespace and typo fixes) Notes: svn path=/head/; revision=30342
* Remove a #ifndef __FreeBSD__ chunk.Poul-Henning Kamp1997-10-111-5/+1
| | | | Notes: svn path=/head/; revision=30294
* Change default keymap (I left all the international ones alone) soJordan K. Hubbard1997-10-101-2/+2
| | | | | | | | that LALT is META by default. This will make the emacs users happy. Approved by: sos Notes: svn path=/head/; revision=30266
* Despam 1.11, 1.12 and 1.13 caused by no sync between author/committer/CURRENTMark Murray1997-10-081-14/+36
| | | | Notes: svn path=/head/; revision=30216
* Latest round of patches from the author.Mark Murray1997-10-073-18/+102
| | | | | | | | | | | | | | | | This driver includes the following patches submitted by: 1.0 Hideyuki Suzuki <hideyuki@sat.t.u-tokyo.ac.jp> Japanese Cable support 2.0 Keith Sklower <sklower@CS.Berkeley.EDU> Minor update to the BSDI section so it compiles cleanly on BSDI 3.0 Joao Carlos Mendes Luis <jonny@coppe.ufrj.br> ioctl interface to select video format , NTSC, PAL, etc... Notes: svn path=/head/; revision=30193
* Make the blank screen saver work with MDA and CGA. The fade and greenKazutaka YOKOTA1997-10-043-37/+169
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | savers are also modified so that they behave in the same way as the blank saver on MDA and CGA, although it's not the way these screen savers are supposed to work, but fading monitor and tickling green monitor cannot be done on MDA and CGA, AFAIK. So, this is the second best solution. As of this change, the current state of support of screen savers is summarized in the following table. MDA CGA EGA VGA blank OK OK NA OK daemon OK OK OK OK fade * * NA OK green * * NA OK snake OK OK OK OK star OK OK OK OK OK: works NA: doesn't work, the module cannot be loaded for this adapter. *: behave the same way as the blank saver. As you can see, EGA is left out for now. But, we can do no better, as EGA registers cannot be read... Reviewed by: sos Notes: svn path=/head/; revision=30095
* Backed out part of a previous change: don't set ZWS on '790 chips; it hasDavid Greenman1997-10-031-6/+1
| | | | | | | | | shown to be harmful in that it results in the card not being detected properly on warmboot due to the station address failing to be read correctly from the NVRAM. Notes: svn path=/head/; revision=30084
* Add a new keyboard mode K_CODE. Returns a single byte for each keySøren Schmidt1997-10-012-13/+25
| | | | | | | | | | | much like the scancode mode. However the keys that (for no good reason) returns extension codes etc, are translated into singlebyte codes. Needed by libvgl. This makes life ALOT easier, also the XFree86 folks could use this. Notes: svn path=/head/; revision=30043
* To obey the traditional practice in mbuf chaining.Jun-ichiro itojun Hagino1997-10-011-10/+15
| | | | | | | | PR: 4020 Reviewed by: hamada@astec.co.jp Notes: svn path=/head/; revision=30022
* Killed a gratuitous assignment in a NetBSD case.David Greenman1997-09-301-5/+1
| | | | Notes: svn path=/head/; revision=29998
* Two changes which should make the system less suseptible to receiverDavid Greenman1997-09-301-29/+29
| | | | | | | | | | overruns (not that it was a problem, but it could be): 1) Doubled the number of receive buffers in the DMA chain to 64. 2) Do packet receive processing before transmit in the interrupt routine. Notes: svn path=/head/; revision=29997
* Work around a bug in the 82557 NIC where the receiver will lock upDavid Greenman1997-09-293-57/+198
| | | | | | | | | | | | | | | | | | | | | | | | | | if it is in 10Mbps mode and gets certain types of garbage prior to the packet header. The work-around involves reprogramming the multicast filter if nothing is received in some number of seconds (currently set at 15). As a side effect, implemented complete support for multicasting rather than the previous 'receive all multicasts' hack, since we now have the ability to program the filter table. Fixed a serious bug which crept in with the timeout() changes; the cookie was only saved on the first timeout() call in fxp_init() and wasn't updated in the most common place in fxp_stats_update() when the timeout was rescheduled. This bug would have resulted in an eventual panic if fxp_stop() was called (which happens when any interface flags are changed, for example). Fixed a bug in Alpha support that would have caused the TxCB descriptor chain to span a page boundry, causing serious problems if the pages didn't happen to be contiguous. Removed some gratuitous bit masking that was left over from an older implementation. Fixed a bug where too much was copied from the configuration template, spilling over into memory that followed it. Fixed handling of if_timer...it was cleared too early in some cases. Notes: svn path=/head/; revision=29974
* Add support to aicasm for "downloaded constants". These are immediateJustin T. Gibbs1997-09-2713-62/+211
| | | | | | | | | | | | | | | | | | | | | | | | | | | operands that are set during seqeuncer program download instead of at assembly time. Convert the sequencer code to use" downloaded constants" for four run time constants that vary depending on the board type. This frees up 4 bytes of sequencer scratch ram space where these constants used to be stored and also removes the additional instructions required to load their values into the accumulator prior to using them. Remove the REJBYTE sram variable. The host driver can just as easly read the accumulator to get this value. The scratch ram savings is important as the old code used to clober the SCSICONF register on 274X cards which sits near the top of scratch ram space. The SCSICONF register controls bus termination, and clobbering it is not a good thing. Now we have 4 bytes to spare. This should fix the reported problems with cards that don't have devices attached to them failing with a stream of "Somone reset bus X" messages. Doug Ledford determined the cause of the problem, fixes by me. Notes: svn path=/head/; revision=29897
* Clustered read and write are switched at mount-option level.KATO Takenori1997-09-271-3/+3
| | | | | | | | | | | | | | | | | | | 1. Clustered I/O is switched by the MNT_NOCLUSTERR and MNT_NOCLUSTERW bits of the mnt_flag. The sysctl variables, vfs.foo.doclusterread and vfs.foo.doclusterwrite are deleted. Only mount option can control clustered I/O from userland. 2. When foofs_mount mounts block device, foofs_mount checks D_CLUSTERR and D_CLUSTERW bits of the d_flags member in the block device switch table. If D_NOCLUSTERR / D_NOCLUSTERW are set, MNT_NOCLUSTERR / MNT_NOCLUSTERW bits will be set. In this case, MNT_NOCLUSTERR and MNT_NOCLUSTERW cannot be cleared from userland. 3. Vnode driver disables both clustered read and write. 4. Union filesystem disables clutered write. Reviewed by: bde Notes: svn path=/head/; revision=29888
* The previous commit broke support for the Pro/10; detect which sort ofMike Smith1997-09-261-7/+25
| | | | | | | card we are using and calculate the IRQ accordingly. Notes: svn path=/head/; revision=29877
* tiny update of ESC sequence parser.Jun-ichiro itojun Hagino1997-09-261-5/+23
| | | | | | | | | | - some addition of comments (for readability) - iso-2022 G0 designation support. This does almost nothing. Just for avoiding garbled screen when got "ESC ( B". (how about G1/2/3 designation? I'm not sure) Notes: svn path=/head/; revision=29875
* Fix a call to timeout that wasn't properly saving it's callout handle.Justin T. Gibbs1997-09-231-2/+2
| | | | | | | Submitted by: durian@plutotech.com Notes: svn path=/head/; revision=29752
* Update for new callout interface.Justin T. Gibbs1997-09-212-4/+6
| | | | Notes: svn path=/head/; revision=29681
* aha1542.c aic6360.c cy.c fd.c ft.cJustin T. Gibbs1997-09-219-83/+107
| | | | | | | | | | | | | | | if_ie.c if_wl.c if_zp.c isa.c isa_device.h labpc.c mcd.c ncr5380.c scd.c seagate.c si.c sio.c tw.c ultra14f.c wcd.c wd.c: Update for changes in the callout interface. apic_vector.s icu_vector.s ipl.s ipl_funcs.c: Add CAM software/hardware interrupt support. Notes: svn path=/head/; revision=29677
* ipl.h:Justin T. Gibbs1997-09-211-1/+4
| | | | | | | | | | Add CAM software/hardware interrupt support. si.h: Update for changes in the callout interface. Notes: svn path=/head/; revision=29676
* Add shared EISA interrupt support.Justin T. Gibbs1997-09-215-92/+127
| | | | | | | Clean up the match routines so that they return const char * Notes: svn path=/head/; revision=29674
* Convert to the new callout interface.Justin T. Gibbs1997-09-212-5/+15
| | | | | | | Guard against scheduling more than one callout. Notes: svn path=/head/; revision=29671
* Recognize the CS4326 on the Intel PR440FX motherboard. (It works just likePeter Wemm1997-09-212-22/+48
| | | | | | | | | the normal CS4326 except that it's had it's ID's tweaked for some reason) Also mark the device as alive in the attach routine so that the pnp system doesn't think the attach failed. Notes: svn path=/head/; revision=29652
* Fix a comment-within-a-commentPeter Wemm1997-09-214-4/+4
| | | | Notes: svn path=/head/; revision=29651
* Addition of support of the slightly rogue Promise IDE interface(Dyson), supportJohn Dyson1997-09-201-1/+2
| | | | | | | | | | | | | | of multiple PCI IDE controllers(Dyson), and some updates and cleanups from John Hood, who originally made our IDE DMA stuff work :-). I have run tests with 7 IDE drives connected to my system, all in DMA mode, with no errors. Modulo any bugs, this stuff makes IDE look really good (within it's limitations.) Submitted by: John Hood <cgull@smoke.marlboro.vt.us> Notes: svn path=/head/; revision=29636
* ``oops''. I cut/pasted the original free()'s based on mark's suggestionPeter Wemm1997-09-201-4/+4
| | | | | | | | | | | rather than extracting the diff from Mark's patch, but it turns out that I was freeing one allocation twice due to a previous cut/paste braino. My botch, not Mark's. Pointed out by: Mark Valentine <mv@pobox.com> Notes: svn path=/head/; revision=29627
* teach sio how to attach to isa PnP cards. This is mainly for use withJohn-Mark Gurney1997-09-191-13/+122
| | | | | | | | | | | | | | | | | | | internal modems. Currently detects a USR modem, and a couple Supra modems... vendor id's for sio capabile cards welcomed... document new option EXTRA_SIO that will increase sio's internal data structures to support X more serial ports... these are used by the PnP part of sio for attaching... If you don't have it specified, it will default to 2... This is defaulted to 0 if you don't have PnP compiled into your kernel... also document that if you set the PnP flags (pnp x flags y) to 0x1 that the modem will be refused to be recognized by the sio driver... this is for people that want the traditional isa driver to probe and attach the modem... (for keeping legacy sio numbering) Notes: svn path=/head/; revision=29614
* Missed a place where the extra descriptor buffers would need to bePeter Wemm1997-09-181-1/+3
| | | | | | | | | freed. Submitted by: Mark Valentine <mark@linus.demon.co.uk> Notes: svn path=/head/; revision=29570
* update Luigi's driver to poll interface (Peter, you might want to checkJohn-Mark Gurney1997-09-186-70/+46
| | | | | | | | | | | that I've done this properly, it does work though :) )... a few minor fixes to code part-Submitted-by: Luigi Notes: svn path=/head/; revision=29565
* Enable the FIFO on enhanced floppy controllers. This reduces theTor Egge1997-09-172-2/+58
| | | | | | | | | | | number of dma overruns/underruns for systems under heavy dma load. As a side effect, broken enhanced floppy controllers that sometimes don't detect dma overruns/underruns will give less errors. Reviewed by: j@uriah.heep.sax.de (J Wunsch) Notes: svn path=/head/; revision=29543
* Fixed gratuitous ANSIisms.Bruce Evans1997-09-161-1/+3
| | | | Notes: svn path=/head/; revision=29506
* Make FDC_DEBUG a supported option.Joerg Wunsch1997-09-161-10/+21
| | | | | | | | | | Hide the bogus FDC ``chip type'' display behind a (mostly) undocumented option, since people started to trust the bogus claim. Once we're going to handle 2.88 MB controllers, we have to redo the chip detection, by now just leave it hidden. Notes: svn path=/head/; revision=29494
* Import of Luigi Rizzo's sound code. For more information about the driverJohn-Mark Gurney1997-09-1410-0/+8612
| | | | | | | | | check out the README that is included. Submitted by: Luigi Rizzo <luigi@labinfo.iet.unipi.it> Notes: svn path=/cvs2svn/branches/LUIGI/; revision=29415
* Bruce wants the warning.Peter Wemm1997-09-141-2/+2
| | | | Notes: svn path=/head/; revision=29381
* Update select -> poll in drivers.Peter Wemm1997-09-1410-33/+37
| | | | Notes: svn path=/head/; revision=29368
* Convert select handler to poll stylePeter Wemm1997-09-141-14/+13
| | | | Notes: svn path=/head/; revision=29355
* Fix a warning.Peter Wemm1997-09-131-2/+2
| | | | Notes: svn path=/head/; revision=29325
* Support Intel EtherExpress Pro 10+Mike Smith1997-09-121-4/+10
| | | | | | | | PR: kern/4335 Reviewed by: Stephen Roznowski (sjr@home.net) Notes: svn path=/head/; revision=29313
* malloc() the rx and tx descriptors seperately rather than as part of thePeter Wemm1997-09-112-2/+17
| | | | | | | | | | | | | | | | | | | | | large (over 4KB) softc struct. The descriptor array is accessed by busmaster dma and must be physically contiguous in memory. malloc() of a block greater than a page is only virtually contiguous, and not necessarily physically contigious. contigmalloc() could do this, but that is a bit on the overkill side. I'm not sure of the origins of the problem report and diagnosis, I learned of the problem via mail forwarded from Jim Shankland <jas@flyingfox.com>. Jim said that Matt Thomas's workaround was to reduce the number of transmit descriptors from 128 to 32, but I was concerned that it might cost performance. Anyway, this change is my fault, not Jim's. :-) Reviewed by: davidg Notes: svn path=/head/; revision=29306
* Change the address for the low end of what we permit from c0000 downDavid Greenman1997-09-101-2/+2
| | | | | | | | to a0000 so that people can put their cards in the middle of their video memory if they want. :-) Notes: svn path=/head/; revision=29261
* Amancio's latest in the Brooktree driver.Mark Murray1997-09-093-236/+353
| | | | | | | | This fixes the european frequency set, separates this further from the Meteor driver and fixes bugs. Notes: svn path=/head/; revision=29233