summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa
Commit message (Collapse)AuthorAgeFilesLines
* Fixed restoral of nsscons variable. The tty for /dev/console was lost.bde1996-08-281-2/+2
| | | | A warning was introduced.
* Unconditionally null-terminate string read into spkr driver.peter1996-08-241-3/+6
| | | | | Submitted by: Ikuo Nakagawa <ikuo@isl.intec.co.jp>, PR#1488, but using Bruce Evans <bde@zeta.org.au>'s fix.
* Another attempt at making multi-sector mode work.dyson1996-08-231-16/+35
|
* restore nsccons variable from rev 1.115 that was deleted in rev 1.136peter1996-08-161-1/+2
| | | | | | during phk's staticize/cleanup commits. pstat needs it, the MAXCONS option is not visible anywhere else, and pstat uses it to find the bounds of the sccons[MAXCONS] array, which varies.
* Fix two minor oddities introduced by my yesterday's patches:joerg1996-08-122-9/+15
| | | | | | | | | . preserve a multi-char sequence in a small static buffer inside pccngetc(), so it won't be clobbered later (used to happen when breaking into DDB user Ctrl-Alt-ESC), and . simplify the ``keystroke is present'' determination in sgetc(), thus making pccncheck() actually working without waiting for a keystroke.
* Extend the poll code so that it can periodically scan the host cardspeter1996-08-121-4/+11
| | | | | | | for work regardless of whether there was an interrupt. This needs more work, it should be able to run better when there are more than 3 host cards present, ie: all cards in polling-only mode with no IRQ. (The host cards have a choice of 3 irq's, 11, 12, or 15, or just polling)
* Apply my small patch to make detection of ATAPI CD-ROMs happen awpaul1996-08-121-3/+11
| | | | | | | | | | | | | | | | | | | | | little more reliably. So far I've received a couple of positive responses and no objections to these changes. There are two one-line changes: - In wdprobe(), when testing the error status of drives, don't unconditionally decide that there is no controller present if we read back a value of 0x81 (drive 0 okay, drive 1 failed) twice in a row. This may be caused by having an ATAPI CD-ROM jumpered as a master on the controller with no slave. - In wdgetctlr(), when checking for a status of WDCS_READY, check the value twice. The first time may be bogus. This stops a phantom wd2 device from being detected when an ATAPI CD-ROM is attached to the secondary controller alone as a slave. (This can cause installation to fail when sysinstall attempts to open the phantom device and wedges the system as a result. This has bitten me a couple of times on some Gateway 2000 machines.)
* Fix many long-standing bugs and problems with pcvt, namely:joerg1996-08-104-19/+40
| | | | | | | | | | | | | | | | | | . make pccncheck() work even when interrupts are disabled, so the ``Press a key on the console...'' procedure will work, . make kernel colors #ifndef, so they can be overridden from the config file, . use shutdown_nice() instead of cpu_reset() if Ctrl-Alt-Del is enabled, . allow pccngetc() to return more than a single character, so the arrow keys will work (and thus visual UserConfig!), . fix a warning. This closes all know PRs related to pcvt, in particular #845, #1236, and #1265. PR #991 is a duplicate for 845, and PR #1283 has already been fixed earlier in rev 1.11 of pcvt_conf.h. Submitted by: Ulf Kieber (kieber@sax.de), for the kernel color fix
* This diff adds support for the HP PC Lan+ cards (model numbers: 27247Bdg1996-08-072-32/+778
| | | | | | and 27252A) in FreeBSD's `ed' driver. Submitted by: A JOSEPH KOSHY <koshy@india.hp.com>
* Megacommit to straigthen out ETHER_ mess.phk1996-08-0612-86/+34
| | | | | I'm pretty convinced after looking at this that the majority of our drivers are confused about the in/exclusion of ETHER_CRC_LEN :-(
* Remove a spurious message.phk1996-08-041-1/+1
|
* Reduce reset timeout. "only" 16 seconds (!) for a 512K board.phk1996-08-041-3/+2
|
* Update driver.phk1996-08-042-209/+226
| | | | Obtained from: NetBSD
* Replace about 60 lines of code with a call to ether_ioctl().phk1996-08-041-80/+9
| | | | This can be done for most of our ethernet drivers.
* make si.c compile in kernels without COMPAT_43.peter1996-08-031-2/+5
|
* Eliminated i586_ctr_rate. Use i586_ctr_freq instead.bde1996-08-022-14/+8
|
* When I hit [Ctrl]+8, appeared 9 instead of 8. It may not be critical butnate1996-08-011-1/+1
| | | | | | | surprised me. ;-) Submitted by: tacha@tera.fukui-med.ac.jp <Tatoku Ogaito> Obtained from: NetBSD/GNATS
* Synced with sio.c: added support for TIOCDCDTIMESTAMP and simplifiedbde1996-07-301-40/+32
| | | | timestamp code.
* Fixed the machdep.i8254_freq and machdep.i586_freq sysctls. Writes werebde1996-07-301-18/+41
| | | | | | | handled bogusly. Centralized the setting of all the frequency variables. Set these variables atomically. Some new ones aren't used yet.
* Fix GIO_ATTR ioctl return to match SYSVache1996-07-301-2/+2
|
* Move a couple of the initialization commands to the right place. Multidyson1996-07-271-28/+24
| | | | sector mode was not getting re-initialized when needed.
* Under the heavy load for transmiting condition, it will be write erroramurai1996-07-271-2/+2
| | | | | | | and then never accept for sending packet from upper layer anymore (i.e. ping -f ) Reviewed by: David Greenman <dg@root.com> Submitted by: amurai@spec.co.jp
* ttysleep() can return EWOULDBLOCK, not ETIMEDOUT as the comment in tty.cpeter1996-07-261-2/+2
| | | | | | suggests. Pointed out by: bde
* Apply a bandaid to a problem elsewhere in the driver, when the process ispeter1996-07-261-2/+5
| | | | | | | | blocked in a write() while waiting for the output to drain, sleep only for tp->t_timeout, not forever. This only seems to happen when there is either a modem lockup holding the hardware flow control down, or due to some problem in the driver with processes attempting to write after the modem has hung up (eg: elm, tf).
* Revert my bdevsw change for wcd.c, Bruce pointed out thatphk1996-07-241-2/+12
| | | | this driver has bogus open/close entries.
* Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.phk1996-07-237-95/+20
| | | | | | | | | Saves about 280 butes of source per driver, 56 bytes in object size and another 56 bytes moves from data to bss. No functional change intended nor expected. GENERIC should be about one k smaller now :-)
* Add yet another kludge to this driver. Man page update to follow.phk1996-07-211-1/+9
|
* Post-commit review by Bruce. Mostly stylistic changes.joerg1996-07-211-51/+56
| | | | Submitted by: bde
* Replace the annoying calls to Debugger() by panic()'s in thejoerg1996-07-201-3/+7
| | | | | | | | | #ifdef DIAGNOSTIC case, and a warning only otherwise. People who want them to break into the debugger can always set the breakpoint explicitly. The existing behaviour was a misfeature from the beginning, in the (wrong) assumption that the SCSI controller must always be of essential importance to the entire system.
* Correct the timer2 acquiration and release, it must happen at splclock.joerg1996-07-201-36/+52
| | | | | Also slightly reformatted so that it meets at least partially style(9), and makes navigating through the functions easier.
* Major cleanup of the timerX_{acquire,release} stuff. In particular,joerg1996-07-201-48/+96
| | | | | | | | | | | | | make it more intelligible, improve the partially bogus locking, and allow for a ``quick re-acquiration'' from a pending release of timer 0 that happened ``recently'', so it was not processed yet by clkintr(). This latter modification now finally allows to play XBoing over pcaudio without losing sounds or getting complaints. ;-) (XBoing opens/writes/closes the sound device all over the day.) Correct locking for sysbeep(). Extensively (:-) reviewed by: bde
* Last night (local time :) I accidently checked in an intermediate versionse1996-07-191-85/+69
| | | | | | | | | | | | of this patch, which had not actually been reviewed by Joerg or Paul! (I'll better stop committing files after midnight ...) I'm now commiting the latest code, which has been reported to work. Minor correction to the previous commit message for this file: The first PCI Lance in a system will get a name of lnc1, the second will be known as lnc2 and so on. An arbitrary number of cards is supported in a system ...
* Add interrupt register set up with original register valueamurai1996-07-192-4/+6
| | | | | | | before attaching. Without this fix, 3c579(EISA) never make any H/W inturrupt. Reviewed by: "Justin T. Gibbs" <gibbs@freefall.freebsd.org>, nao@sbl.cl.nec.co.jp and owner-current on mailing list ;-) Submitted by: amurai@spec.co.jp, nao@sbl.cl.nec.co.jp
* FINALLY: PCI support for the Lance Ethernet driver.se1996-07-181-73/+156
| | | | | | | | | | | | | | | | | | This code applies to several systems with integrated Ethernet chip, for example from HP or Compaq. It should also support PCI Ethernet cards based on the AMD PCI Lance chip. This code has been reviewed (visually) by Paul Richards and tested (using an ISA Lance board) by Joerg Wunsch. Since the parameters to nearly each and every single function had to be changed (generally from unit number to lnc_soft*), there is some potential for buglets having crept in ... BEWARE: If you had lnc0 configured to have the ISA probe find your PCI Lance, then it should now be found by the PCI probe, and should be automatically configured as pci1 (!!! note the "1"). Reviewed by: paul, joerg
* some internal modems need LOTS of time to generate an interruptjulian1996-07-171-2/+2
| | | | on demand.. increase DELAY from 1000 uS to 10000uS
* Introduce two /dev/audio compat alias names for flushing and drainingjoerg1996-07-171-1/+3
| | | | the pcaudio device. Now, XBoing sounds much better...
* Fixed adjustment of `time' when timer0 is released. 27465 was 27645 inbde1996-07-171-2/+2
| | | | | a comment and in code that was only used when pcaudio was closed. The maximum error was 66 usec.
* Enable transmit complete interrupt...dg1996-07-131-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | (author's explaination): Bit 15 is the flag to request a transmit complete interrupt. The driver was apparently written to minimize interrupts, and if not for a 3-COM design quirk, everything would be just ducky. Prior to loading the outbound packet into the FIFO, the driver checks to see if there's enough space to contain the packet. If not, the driver requests a transmit-available interrupt when there is sufficient room. Unfortunately, the card is continuing to process the prior FIFO, and by the time the driver sets the threshold for a transmit available interrupt, the space is already available. When this occurs, the 3COM card ignores the interrupt request, and the driver is hung waiting for an interrupt that will never occur. There's probably a more elegant solution, but requesting the transmit complete interrupt was the easiest to implement. An alternative fix might be to check free FIFO space again, after requesting the transmit available interrupt, but I haven't bothered pursuing this. Since the patch, my 3C590 (PCI, same FIFO interface as 3C509) has been rock solid. Submitted by: mevans@candle.com (Mike Evans)
* Staticized a few variables.bde1996-07-122-6/+9
| | | | Fixed warnings about unused variables.
* Don't use NULL in non-pointer contexts.bde1996-07-123-6/+6
|
* This driver supports the SDL Communications RISCom/N2 ISA cards that isjhay1996-07-052-0/+1788
| | | | | | | | | | | | | | | based on the HD64570 chip. Both the 1 and 2 port cards is supported. Line speeds of up to 2Mbps is possible. At this speed about 95% of the bandwidth is usable with 486DX processors. The standard FreeBSD sppp code is used for the link level layer. The default protocol used is PPP. The Cisco HDLC protocol can be used by adding "link2" to the ifconfig line in /etc/sysconfig or where ever ifconfig is run. At the moment only the X.21 interface is tested. The others may need tweaks to the clock selection code.
* Added or restored #include of <machine/md_var.h>. Some declarationsbde1996-07-011-1/+2
| | | | moved from <machine/cpufunc.h> to better places.
* Use the standard timer (interrupt) frequency while calibrating the clocks.bde1996-07-011-7/+4
| | | | | | | | | | Testing with the high frequency of 20000 Hz (to find problems) only found the problem that this frequency is too high for slow i386's. Disable interrupts while setting the timer frequency. This was unnecessary before rev.1.57 and forgotten in rev.1.57. The critical (i8254) interrupts are disabled in another way at boot time but not in the sysctl to change the frequency.
* Fix typo that prevented the initial/lock state devices from workingpeter1996-06-301-2/+2
| | | | correctly (accessing the lock device was not possible).
* Bump various timeouts in scprobe(). This finally fixes the brokenjoerg1996-06-271-6/+6
| | | | keyboard reset one of my earlier commits has been causing.
* Fixed bug in pasting 8bit char (ache).sos1996-06-262-81/+57
| | | | | Added linefeeds in cuts that extend beyond one line. Prepared for the mousefunctions to be used in nontext modes.
* Added #include of <machine/md_var.h>. This will be needed whenbde1996-06-2512-10/+23
| | | | | some declarations are moved from <machine/cpufunc.h> to better places.
* Change the way moused talk to syscons, now its only delivering mouseeventssos1996-06-252-116/+216
| | | | | | | | via an ioctl (MOUSE_ACTION). Fixed a couple of bugs (destructive cursor, uncut, jitter). Now applications can use the mouse via the MOUSE_MODE ioctl, its possible to have a signal sent on mouseevents, makeing an event loop in the application take over mouseevents.
* Moved declarations of static functions to the correct file. This fixesbde1996-06-232-37/+37
| | | | hundreds of warnings from -Wunused in lkm/syscons/*.
* Don't (re)define or use ACTUALLY_LKM_NOT_KERNEL - use the existingbde1996-06-231-1/+1
| | | | | | | | definition of QCAM_MODULE for everything involving LKM'ness. Makefile: Don't add -I/sys to CFLAGS. bsd.kmod.mk adds the correct (relative) path.
OpenPOWER on IntegriCloud