summaryrefslogtreecommitdiffstats
path: root/sys/isa
Commit message (Collapse)AuthorAgeFilesLines
* Fix the hanging keyboard problem under Xaccel. Apprently we are loosingsos1996-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.
* Fix the broken EOF handling in the floppy driver. The most obviousjoerg1996-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.
* add in CONSPEED option which controls console serial port speedpst1996-11-022-6/+13
|
* More merge and update.asami1996-10-302-3/+159
| | | | | | | | | | | | | | | | | | | | | | | | (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
* Use the calibrated/adjustable i8254 frequency `timer_freq' instead ofsos1996-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)
* Removed initialization of a variable that went away. Oops.bde1996-10-261-5/+3
|
* Print the clock calibration messages all on one (long) line again sobde1996-10-251-21/+18
| | | | | | | | that they are easy to grep for. Removed now-unused i586 counter variables. Fixed some style bugs.
* Remove SC_KBD_PROBE_WORKS option and replace it with a simple run-time flagpst1996-10-232-8/+10
| | | | | | | | | 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
* Changed mouse functionality a bit, now the pointer disappears ifsos1996-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.
* Corrected the setting of winsize on open().sos1996-10-151-5/+10
| | | | Problem pointed out by David Nugent - davidn@blaze.net.au.
* Put I*86_CPU defines in opt_cpu.h.bde1996-10-091-1/+2
|
* Don't claim the console when the driver is disabled. The getc/putcbde1996-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).
* scresume erroneously used before declared. Move the functionjkh1996-10-031-10/+10
| | | | | rather than add another APM ifdef just for the forward decl. [Boy, sure a lot of warnings in here!]
* Fixed the userconfig problem (and one with ddb as well).sos1996-10-021-154/+158
| | | | | The rudimentary support for a splash page is there, and works, it just needs a splash page...
* Fixed the "missing updates" reported by ache.sos1996-10-011-29/+37
| | | | Moved a little closer to having a splash page capability.
* #ifdef another instance of toggle_splash_screen() which Soren missed.jkh1996-10-011-1/+5
|
* Dont make splash screen the default :)sos1996-09-301-2/+1
|
* Fix a couble of nasties regarding mouse pointer and differentsos1996-09-302-103/+180
| | | | | | resolutions. Allow middle mouse button to be used for pasting. Also added the beginnings of support for a splash page.
* Work around UMC8669F and Startech UART bugs by not writing to thebde1996-09-301-11/+36
| | | | | | | | | | | | | | divisor latch registers if the registers wouldn't change. Use the default console cfcr setting while setting the divisor latch registers for console i/o. Input may be messed up by transiently changing the cfcr. Use a usual cfcr setting while setting the divisor latch registers in the probe. This shouldn't matter, but this is not the place to test the UART's handling of 5 bit words. Removed a stale devfs comment.
* Attached simple external ddb commands `show rtc', `show pgrpdump'bde1996-09-141-5/+7
| | | | | and `show cbstat'. The pgrpdump code was previously controlled by `#ifdef DEBUG'.
* Changed cncheckc() interface so that it is 8-bit clean - return -1bde1996-09-143-6/+11
| | | | | | | | | instead of 0 if there is no input. syscons.c: Added missing spl locking in sccncheckc(). Return the same value as sccngetc() would. It is wrong for sccngetc() to return non-ASCII, but stripping the non-ASCII bits doesn't help.
* Another round of merge/update.asami1996-09-121-2/+15
| | | | | | | | | (1) Add PC98 support to apm_bios.h and ns16550.h, remove pc98/pc98/ic (2) Move PC98 specific code out of cpufunc.h (to pc98.h) (3) Let the boot subtrees look more alike Submitted by: The FreeBSD(98) Development Team <freebsd98-hackers@jp.freebsd.org>
* Hack workaround XFree86 switching failure when used with /dev/sysmousepeter1996-09-101-2/+23
| | | | | | | | | | | | | | | | | | and xdm, possibly in general. What was happening was that the server was doing a tcsetattr(.. TCSADRAIN) on the mouse fd after a write. Since /dev/sysmouse had a null t_oproc, the drain failed with EIO. Somehow this spammed XFree86 (!@&^#%*& binary release!!), and the driver was left in a bogus state (ie: switch_in_progress permanently TRUE). The simplest way out was to implement a dummy scmousestart() routine to accept any characters from the tty system and toss them into the void. It would probably be more correct to intercept scwrite()'s to the mouse device, but that's executed for every single write to the screen. Supplying a start routine to eat the characters is only executed for the mouse port during startup/shutdown, so it should be faster.
* Updated #includes to 4.4Lite style.bde1996-09-101-2/+1
|
* The poor nsccons variable was gone agian this time hidden bysos1996-09-091-2/+2
| | | | | | an ifdef , wonder who broke it this time :) Submitted by: ache
* Make syscons replicate a mousesystems mouse on minor 128..sos1996-09-081-18/+36
| | | | | | | | | | | | This enables other consumers of the mouse, to get it info via moused/syscons. In order to use it run moused (from sysconfig), and then tell your Xserver that it should use /dev/sysmouse (mknod sysmouse c 12 128) and it a mousesystems mouse. Everybody will be happy then :) Remember that moused still needs to know what kind of mouse you have.. Comments welcome, as is test results...
* Fixed another easy case of const poisoning in the kernel. Cosmetic.bde1996-09-071-2/+2
| | | | | | (A pointer to a const was misused to avoid loading loading the same value twice, but gcc does exactly the same optimization automatically. It can see that the value hasn't changed.)
* Add option SC_KBD_PROBE_WORKS to syscons driver.pst1996-09-061-4/+12
| | | | | | | | | If you define this, it means your keyboard is actually probable using the brain-dammaged probe routine in syscons, and if the keyboard is NOT found, then you don't want syscons to activate itself further. This makes life sane for those of us who use serial consoles most of the time and want "the right thing" to happen when we plug a keyboard in.
* Remove devconf, it never grew up to be of any use.phk1996-09-063-200/+3
|
* Fixed a panic when switching to 40x25 mode, and cursor was beyond thesos1996-09-041-1/+2
| | | | new buffer.
* Fixed a couple of bugs in the mousepointer code.sos1996-09-012-233/+298
| | | | | Changed update strategy slightly. Make set_mode & copy_font externally visible.
* Fixed restoral of nsscons variable. The tty for /dev/console was lost.bde1996-08-281-2/+2
| | | | A warning was introduced.
* 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.
* Eliminated i586_ctr_rate. Use i586_ctr_freq instead.bde1996-08-021-12/+6
|
* 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
|
* Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.phk1996-07-231-13/+3
| | | | | | | | | 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 :-)
* Post-commit review by Bruce. Mostly stylistic changes.joerg1996-07-211-51/+56
| | | | Submitted by: bde
* 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
* some internal modems need LOTS of time to generate an interruptjulian1996-07-171-2/+2
| | | | on demand.. increase DELAY from 1000 uS to 10000uS
* 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.
* Staticized a few variables.bde1996-07-121-4/+7
| | | | Fixed warnings about unused variables.
* 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.
* 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-251-1/+2
| | | | | 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/*.
* Oops, fix a bug that caused updates to the screen to happen, withoutsos1996-06-211-2/+6
| | | | anything actually changed, in this case the mousepointer logic.
OpenPOWER on IntegriCloud