aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Added a check for the ISA memory address range being valid. Fixes PR#835.David Greenman1997-09-081-2/+9
| | | | Notes: svn path=/head/; revision=29226
* Turn on the 0WS option for 16bit cards. Newer machines insert enoughDavid Greenman1997-09-081-18/+27
| | | | | | | | | | | | delay that without this the performance is unacceptable. The 83C690, 83C790, and 83C795 chips which this affects are all designed to work with 0 waitstates in 16bit mode. Also cleaned up the toggling of 16bit access mode that occurs during normal operation; the previous code may not have done the right thing in all cases. Notes: svn path=/head/; revision=29221
* Changes to support NetBSD and the new ifmedia extensions.David Greenman1997-09-053-243/+842
| | | | | | | Submitted by: Jason Thorpe <thorpej@netbsd.org> Notes: svn path=/head/; revision=29138
* Add a new compile option SC_HISTORY_SIZE to specify the history bufferKazutaka YOKOTA1997-09-042-14/+19
| | | | | | | | | | | | | | | size in terms of lines (instead of bytes). When changing video mode in ioctl SW_XXX commands, syscons checks scp->history_size and allocate a history buffer at least as large as the new screen size. (This was unnecessary before, because HISTORY_SIZE was as large as 100 lines and this is bigger than the maximum screen size: 60 lines). Similar adjustment is done in ioctl CONS_HISTORY command too. PR: kern/4169 Reviewed by: sos Notes: svn path=/head/; revision=29121
* Make the aic7xxx sequencer assembler compile in the kernel's objectJustin T. Gibbs1997-09-0316-2763/+50
| | | | | | | | | | directory. Rename (via repository copy) some files so that the potential for future conflicts is minimized. PR: conf/4363 Notes: svn path=/head/; revision=29050
* Cleaned up revs 1.36-1.40 (mainly disordered declarations, non-bogusBruce Evans1997-09-032-242/+294
| | | | | | | indentation (it is supposed to be bogus to match sio.c), and long lines). Notes: svn path=/head/; revision=29047
* Removed unused #includes.Bruce Evans1997-09-024-27/+3
| | | | Notes: svn path=/head/; revision=29041
* Struct arpcom should be in the beginning of a softc struct for arp andJohn Hay1997-09-021-1/+1
| | | | | | | | ether_ioctl() to work correctly. Tested by: Joao Carlos Mendes Luis <jonny@mailhost.coppe.ufrj.br> Notes: svn path=/head/; revision=29037
* Added used #include - don't depend on <sys/mbuf.h> includingBruce Evans1997-09-028-7/+15
| | | | | | | <sys/malloc.h> (unless we only use the bogusly shared M*WAIT flags). Notes: svn path=/head/; revision=29024
* Oops, the previous change applied a reversed patch.Bruce Evans1997-09-011-1/+3
| | | | Notes: svn path=/head/; revision=29020
* General cleanup of the sub-system locking macros.Steve Passe1997-09-013-75/+56
| | | | | | | | | | | Eliminated the RECURSIVE_MPINTRLOCK. clock.c and microtime use clock_lock. sio.c and cy.c use com_lock. Suggestions by: Bruce Evans <bde@zeta.org.au> Notes: svn path=/head/; revision=29000
* Removed unused #includes.Bruce Evans1997-09-012-22/+1
| | | | Notes: svn path=/head/; revision=28987