aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Don't fiddle with RTS if RTS flow control is off. This gives applicationsBruce Evans1996-11-133-51/+79
| | | | | | | | | | | | | almost complete control over RTS (control of its initial value is still missing). This fixes PR 1644 for sio. The author of PR 1644 wants it in 2.1.6 and 2.2. This may be safe since the complications are only in rarely used cases that I hope I've covered. Notes: svn path=/head/; revision=19718
* Oops I forgot to add the official id for this card.John Hay1996-11-131-2/+3
| | | | Notes: svn path=/head/; revision=19717
* Add support for header type == 1 devices (PCI 2.1 compatible PCI to PCIStefan Eßer1996-11-122-4/+10
| | | | | | | | | | | bridges with support for 64 bit memory addresses and 32 bit I/O addresses). The code is not complete. It ignores the upper half of the long addresses. This is not a problem on PC compatible systems, but has to be fixed for real computers. Notes: svn path=/head/; revision=19696
* Fix PCI to PCI bridge register bit field masks.Stefan Eßer1996-11-122-36/+11
| | | | | | | | Thanks to "Mike Durian" <durian@plutotech.com> for the very good problem report and his support as a beta tester of this patch. Notes: svn path=/head/; revision=19695
* 1. Avoid a race in scclose(). tty.c has kludges so that the race isSøren Schmidt1996-11-111-5/+15
| | | | | | | | | | | | | | | | | | | | | | actually harmless. 2. Fixed code to match comment in scintr(). 3. Don't allow even root to take control of the machine when securelevel > 0. I've secured the accesses to PSL_IOPL in all drivers and asked pst to review it, but he seems to be busy. Write access to /dev/kmem and other critival devices currently leaks across raisings of securelevel via open fd's, so there may as well be a similar leak for PSL_IOPL. 4. (Most important.) Don't corrupt memory beyond the screen buffers if the cursor happens to be off the 80x25 screen when syscons starts. 5. Fix console cursor update (not perfect yet). Submitted by: bruce ~ Notes: svn path=/head/; revision=19658
* Removed 'XT_KEYBOARD' option from syscons. Document new-style way ofNate Williams1996-11-111-4/+1
| | | | | | | | | | | getting the same behavior using the flags, which can be done inside of UserConfig. (Also document other syscons flags which were previously undocumented). Requested by: bde Notes: svn path=/head/; revision=19655
* Fixed pessimized (short) i/o port type.Bruce Evans1996-11-111-2/+2
| | | | | | | | | The change in if_epreg.h affects if_epreg.o and 3c5x9.o. These changes are probably harmless, but I can't test them. Notes: svn path=/head/; revision=19650
* Make snake 3.0-CURRENT here.Jordan K. Hubbard1996-11-111-2/+2
| | | | | | | There's gotta be a better way of syncronizing our release numbers. :-) Notes: svn path=/head/; revision=19643
* Fix two problems with SCB Paging.Justin T. Gibbs1996-11-112-36/+29
| | | | | | | | | | | | | 1) get_free_or_disc_scb was not being passed its argument correctly in one case 2) Add protection in the form of the QOUTQCNT variable to prevent overflowing the QOUTFIFO. This should make SCB Paging work. Really, I mean it now. 8-) Notes: svn path=/head/; revision=19623
* Allow us to enable the 'XT_KEYBOARD' code using a configuration flag.Nate Williams1996-11-102-8/+20
| | | | | | | | | | | This allows the user to add modify syscons's configuration flags using UserConfig that will allow older/quirky hardware (most notably older IBM ThinkPad laptops) to work with the standard boot kernel. Inspired by: The Nomads Notes: svn path=/head/; revision=19613
* Put the packet error printf inside #ifdef DIAGNOSTIC.David Greenman1996-11-101-1/+3
| | | | Notes: svn path=/head/; revision=19610
* A little 80 column cleanup.Justin T. Gibbs1996-11-051-15/+28
| | | | Notes: svn path=/head/; revision=19426
* index_untagged_scb should rely solely on the argument passed in SINDEX andJustin T. Gibbs1996-11-051-3/+3
| | | | | | | | | | not access SCB_TCL directly. This could have caused problems on twin channel adapters. 2.2 Candidate. Notes: svn path=/head/; revision=19421
* New vx driver for:Guido van Rooij1996-11-044-0/+1861
| | | | | | | | | | | | | | | | | | | | | | | 3COM 3C590 Etherlink III PCI, 3COM 3C595 Fast Etherlink PCI, 3COM 3C592 Etherlink III EISA, 3COM 3C590 Fast Etherlink EISA, 3COM 3C900 Etherlink XL PCI and 3COM 3C905 Fast Etherlink XL PCI. This driver is based on OpenBSD's driver. I modified it to run under FreeBSd and made it actually work usefully. Afterwards, nao@tom-yam.or.jp (HAMADA Naoki) added EISA support as well as early support for 3C900 Etherlink XL PCI and 3C905 Fast Etherlink XL PCI. He also split up the driver in a bus independant and bus dependant parts. Especially the 3c59X support should be pretty stable now. Submitted by: partly nao@tom-yam.or.jp (HAMADA Naoki) Obtained from:partly OpenBSD Notes: svn path=/head/; revision=19410
* Fix the hanging keyboard problem under Xaccel. Apprently we are loosingSøren Schmidt1996-11-041-29/+44
| | | | | | | | an interrupt somewhere. The solution here is to check for keyboard input each time the screen update timer ticks. Not pretty, but works. Notes: svn path=/head/; revision=19405
* Fix the broken EOF handling in the floppy driver. The most obviousJoerg Wunsch1996-11-021-28/+36
| | | | | | | | | | | | appearance of this bug was the malfunctioning -M option in GNU tar (it worked only by explicitly specifying -L). Reviewed by: bde, and partially corrected accoring to his comments Candidate for 2.2, IMHO even for 2.1.6. Notes: svn path=/head/; revision=19341
* add in CONSPEED option which controls console serial port speedPaul Traina1996-11-022-6/+13
| | | | Notes: svn path=/head/; revision=19325
* if_sr.c corrupted the global variable `ticks'.John Hay1996-10-314-40/+18
| | | | | | | | | | Cosmetic changes: if_sr_.c won't compile with a K&R compiler, so there is no need to cast the timeout arg to the (wrong) type. Submitted by: bde Notes: svn path=/head/; revision=19296
* More merge and update.Satoshi Asami1996-10-301-2/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | (1) deleted #if 0 pc98/pc98/mse.c (2) hold per-unit I/O ports in ed_softc pc98/pc98/if_ed.c pc98/pc98/if_ed98.h (3) merge more files by segregating changes into headers. new file (moved from pc98/pc98): i386/isa/aic_98.h deleted: well, it's already in the commit message so I won't repeat the long list here ;) Submitted by: The FreeBSD(98) Development Team Notes: svn path=/head/; revision=19269
* Add support for the SDL RISCom N2pci cards. Bring in the enhancementsJohn Hay1996-10-294-1583/+4364
| | | | | | | made to the Arnet driver. Notes: svn path=/head/; revision=19242
* Remove some unnecessary code in the interrupt handler.John Hay1996-10-282-24/+30
| | | | | | | | | | Check that a received packet isn't longer than MCLBYTES. This will sometimes happen if a cable is plugged into or removed from a live system. Try to cater better for early receive interrupts. Notes: svn path=/head/; revision=19236
* A #define really don't need a ; at the end.John Hay1996-10-281-2/+2
| | | | Notes: svn path=/head/; revision=19235
* In data_phase_reinit when I converted the code to use bcopy, I should haveJustin T. Gibbs1996-10-281-3/+3
| | | | | | | | | used mvi instead of mov. Luckily this code is most likely never executed since it is only there for sanity should a target goes into the data phase twice during a single selection or reselection. Notes: svn path=/head/; revision=19231
* Fix problems dealing with non-tagged devices when SCB paging is enabled.Justin T. Gibbs1996-10-282-48/+53
| | | | | | | | Mostly this involved changing the semantics of the findSCB routine so that it could be used at times other than handling a reconnection. Notes: svn path=/head/; revision=19218
* Use the calibrated/adjustable i8254 frequency `timer_freq' instead ofSøren Schmidt1996-10-261-23/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TIMER_FREQ. Fixed missing splx() in scrn_timer(). The bug was harmless because of the undocumented behaviour that the ipl is automatically restored for timeout functions (see softclock()). Perhaps we should depend on this behaviour. Fixed the ddb fix in rev.1.176. The in_debugger flag was no use because it only works when the debugger is entered via the keyboard hotkey. The debugger may be entered for breakpoints and traps, and the console putc routine has no way of knowing when it was, so the console putc routine must (almost?) always remove the cursor image. Not fixed: console switching in ddb doesn't work (ISTR it working), and console 0 shouldn't be switched to for the debugger hotkey unless console 0 is /dev/console. Fixed side effects from calling add_keyboard_randomness() in the console getc routine by not calling it. add_keyboard_randomness() currently always reenables interrupts on 386's and 486's. This is very bad if the console getc routine is called from the debugger and the debugger was entered with interrupts disabled. Fixed preservation of initial screen and now-bogus comment about it. It was broken by setting the initial scr_buf to `buffer' instead of Crtat. `buffer' was full of nulls and the first scroll cleared everything above the things written through syscons. Submitted by: bruce (bde@freebsd.org) Notes: svn path=/head/; revision=19197
* Use macros from timmerreg.h instead of private ones.Bruce Evans1996-10-251-28/+7
| | | | | | | | | | | Use global timer_freq instead of private TIMER_CLK. Removed unused #includes. Fixed some comments. Notes: svn path=/head/; revision=19174
* Go back to using DMA to get SCBs down to the adapter.Justin T. Gibbs1996-10-252-354/+483
| | | | | | | | | | | | | SCB paging is now handled almost entirely by the sequencer and also uses DMA. This should make SCB paging at least an order of magnitude more efficient and vastly simplifies the implementation. Add a few space optimizations so this code still fits on aic7770 chips. Update comments. Notes: svn path=/head/; revision=19164
* Remove SC_KBD_PROBE_WORKS option and replace it with a simple run-time flagPaul Traina1996-10-233-8/+12
| | | | | | | | | | | | bit (0x0008) in the sc driver configuration line. This way it's easy to boink a generic kernel. Also, document and place in an opt_ file the #define's for overriding which serial port is the system console. Approved by: sos Notes: svn path=/head/; revision=19123
* Add support for ioctl() accesses to PCI config space registers.Stefan Eßer1996-10-222-4/+167
| | | | | | | | | | | | Garrett Wollman sent me this code a few weeks ago for review, and I made some significant changes, which he in turn accepted ... In order to make use of these changes, a device entry has to added to /dev. Submitted by: wollman Notes: svn path=/head/; revision=19101
* Changed mouse functionality a bit, now the pointer disappears ifSøren Schmidt1996-10-182-17/+39
| | | | | | | | | | | | | there is keyboard input. The mousepointer is shown again immediately if moved. Also a function pointer used to install a userwritten extra ioctl handler (sc_user_ioctl). This way its is possible to install user defined videomodes etc etc. No further changes should be in the kernel. Notes: svn path=/head/; revision=19022
* This patch attempts to make the pccard probe in if_ed.c work withNate Williams1996-10-171-96/+24
| | | | | | | | | | non-memory-mapped cards. Submitted by: Michael Smith <msmith@atrad.adelaide.edu.au> Reviewed by: phk,dg Notes: svn path=/head/; revision=18979
* Corrected the setting of winsize on open().Søren Schmidt1996-10-151-5/+10
| | | | | | | Problem pointed out by David Nugent - davidn@blaze.net.au. Notes: svn path=/head/; revision=18948
* Updated #includes to 4.4lite style.Bruce Evans1996-10-153-6/+7
| | | | Notes: svn path=/head/; revision=18946
* Fixed a bug that got introduced when I changed the CY16_RESET andDavid Greenman1996-10-142-6/+6
| | | | | | | | CY_CLEAR_INTR definitions. This might have affected probing of ISA versions of the Cyclom 16/32-Y. Notes: svn path=/head/; revision=18926
* Make this compile again for the CyDebug case.David Greenman1996-10-142-12/+14
| | | | Notes: svn path=/head/; revision=18925
* pci_map_mem() did a too restrictive check on the mapping type:Stefan Eßer1996-10-141-2/+4
| | | | | | | | | PCI_MAP_MEMORY_TYPE_32BIT_1M should be accepted as well as PCI_MAP_MEMORY_TYPE_32BIT (and now is). (Problem reported by David Greenman.) Notes: svn path=/head/; revision=18922
* Change DEVFS device naming convention for cuac*, ttyc*.David Greenman1996-10-132-14/+26
| | | | Notes: svn path=/head/; revision=18903
* Changes to add support for the PCI version of the Cyclades Cyclom-YDavid Greenman1996-10-134-270/+467
| | | | | | | serial adapter, and support for multiple Cyclom controllers. Notes: svn path=/head/; revision=18901
* Removed nested include if <sys/socket.h> from <net/if.h> andBruce Evans1996-10-122-2/+4
| | | | | | | | | | <net/if_arp.h> and fixed the things that depended on it. The nested include just allowed unportable programs to compile and made my simple #include checking program report that networking code doesn't need to include <sys/socket.h>. Notes: svn path=/head/; revision=18892
* Staticized. Things exported by linker sets should always be static.Bruce Evans1996-10-121-2/+2
| | | | Notes: svn path=/head/; revision=18887
* Implement the RFC 1650 MIB.Garrett Wollman1996-10-111-6/+64
| | | | Notes: svn path=/head/; revision=18869
* Implement the 802.3 MIB in a way that uses the generic interfaceGarrett Wollman1996-10-101-3/+17
| | | | | | | defined in if_mib.h. Notes: svn path=/head/; revision=18857
* Don't claim the console when the driver is disabled. The getc/putcBruce Evans1996-10-091-2/+2
| | | | | | | | part of the console driver usually works when the driver is disabled, but the normal read/write part doesn't (it caused a panic). Notes: svn path=/head/; revision=18831
* Fix padding of short packets (PR#1701).Garrett Wollman1996-10-071-12/+10
| | | | | | | Submitted by: seki@sysrap.cs.fujitsu.co.jp Notes: svn path=/head/; revision=18794
* Advanced Systems Inc. SCSI Controller driver and ISA/VL front end.Justin T. Gibbs1996-10-075-0/+2816
| | | | | | | | | | | | | | | | | | | | | | I have only tested the ABP5140 card and only with a single CDROM drive but it seems to work fine. This driver relies on features found only in the SCSI branch so will not work in -current until those changes are brought in. It also doesn't have any error handling code *yet*. The goal is to use this driver as the development platform for the new generic SCSI layer error recovery/handling code. PCI and EISA front ends will show up as soon as I get my hands on the cards. There are also a few issues in the driver that I need to clear up with AdvanSys before I can suggest sticking one of these cards in your server. 8-) Thanks to AdvanSys for releasing this code under a suitable copyright. Obtained from: Ported from the Linux driver writen by bobf@advansys.com (Bob Frey). Notes: svn path=/cvs2svn/branches/GIBBS/; revision=18781
* Bring aic7xxx driver bug fixes from 'SCSI' into current.Justin T. Gibbs1996-10-062-164/+71
| | | | Notes: svn path=/head/; revision=18762
* Oops, missed a chunk in that last commit.David Greenman1996-10-042-6/+6
| | | | Notes: svn path=/head/; revision=18685
* Implemented a more sophisticated mechanism for finding the chip iobaseDavid Greenman1996-10-043-124/+144
| | | | | | | | so that 32Y boards will work. Fixed bogus indenting and added a pair of parens. Notes: svn path=/head/; revision=18679
* scresume erroneously used before declared. Move the functionJordan K. Hubbard1996-10-031-10/+10
| | | | | | | | rather than add another APM ifdef just for the forward decl. [Boy, sure a lot of warnings in here!] Notes: svn path=/head/; revision=18647
* Fixed the userconfig problem (and one with ddb as well).Søren Schmidt1996-10-021-153/+157
| | | | | | | | The rudimentary support for a splash page is there, and works, it just needs a splash page... Notes: svn path=/head/; revision=18646