Commit Graph

153 Commits

Author SHA1 Message Date
christos bd73314ed9 backout previous kprintf changes 1996-10-13 03:19:38 +00:00
christos 06555645c2 printf -> kprintf, sprintf -> ksprintf 1996-10-11 00:24:36 +00:00
mycroft b3eac79b64 tty stop functions really should return void, not int, and certainly not both. 1996-09-02 06:43:16 +00:00
cgd 311886cbbe add call to tty_attach() so pstat -t will work with pccons ttys. 1996-05-30 23:59:11 +00:00
mycroft eda98d375d Use intr.h. 1996-05-12 23:11:54 +00:00
christos 079631f59d Remove unneeded casts to fillw() since now it takes a void * argument. 1996-05-05 19:48:15 +00:00
christos 099b45aa2a - Add missing prototypes.
- Fix gcc warnings
1996-05-03 19:14:50 +00:00
cgd 79e0a8a2b9 update for addition of a machine-dependent cookie as the first argument
to isa_intr_{,dis}establish().
1996-04-11 22:15:08 +00:00
cgd 83f9bdc359 update for the fact that config_found() and config_rootfound() now
return pointers.  (Check vs. NULL, rather than just boolean tests.)
1996-04-04 06:25:00 +00:00
mycroft bd6e60f0d5 Add explicit return types. 1996-03-30 07:51:51 +00:00
thorpej 82d914d090 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 01:26:49 +00:00
thorpej 0c71728320 Change the PS/2 mouse driver to be a child of the "pckbd" attribute,
which represents the "keyboard controller".  Give "pc" and "vt" drivers
the "pckbd" attribute.  In pcattach() (pccons and pcvt), attach children
of the keyboard controller.
1996-03-16 06:08:46 +00:00
mycroft 3da4b2a160 The IST_* and IPL_* constants are not bus-specific; don't treat them as such.
Change splimp -> splnet in Ethernet, ARCnet, and FDDI drivers.
1995-12-24 02:29:35 +00:00
mycroft 72805df917 Various changes from John Kohl and me:
Map kernel stacks only at unique addresses.
Use one TSS per process.
Add sysarch calls for modifying IOPL and the I/O permission bitmap.
Add a compacting GDT entry allocator, for TSS and LDT selectors.
Enable modifying %fs and %gs with PT_SETREGS.
Sanitize various bits of code.
1995-10-11 04:19:29 +00:00
cgd 7153343684 two cases to quiet the compiler. perhaps should be fixed differently. 1995-05-04 19:35:20 +00:00
mycroft d23aebf3bb Fix pccnpollc(). 1995-05-03 20:46:32 +00:00
mycroft 87b25c7f5c Update to match include files. Eliminate _ucodesel, _udatasel, and IdlePTD. 1995-05-01 08:25:30 +00:00
mycroft b5eab728c1 Make this compile again. 1995-04-21 19:44:52 +00:00
mycroft d3971b501d Remove relocation of Crtat from locore. 1995-04-21 04:51:30 +00:00
mycroft 943618dbe5 Fix thinko in previous commit. 1995-04-19 22:08:08 +00:00
mycroft 53d73c77a5 Garbage collect #includes. 1995-04-19 19:10:35 +00:00
mycroft b665ddf808 Implement pctty(). 1995-04-19 18:10:47 +00:00
cgd 8a640328ed clean up several ISA device interfaces: autoconfiguration, header
inclusion, and interrupt configuration.  more work still needs to be done,
but it's getting better...
1995-04-17 12:06:30 +00:00
mycroft 374185caff Most of the console functions return void. 1995-04-10 01:01:40 +00:00
mycroft b5cf1b5ddd Add interrupt sharing types. 1995-01-03 01:30:14 +00:00
mycroft 05e78f1424 Add empty pcstop(). 1994-12-13 13:42:53 +00:00
mycroft 8fd1f92ae7 Don't futz with the cursor shape unless we really, really need to. 1994-12-01 11:12:04 +00:00
mycroft 61800cfa25 Convert port, IRQ, and DRQ numbers to ints. 1994-11-18 22:07:32 +00:00
mycroft b7acf321cd No longer needs icu.h. 1994-11-04 18:59:34 +00:00
mycroft d9b8813f0e Correct pcprobe() argument list. 1994-11-04 07:30:51 +00:00
mycroft 10c353cf10 Update to match autoconfig code. 1994-11-04 01:02:40 +00:00
cgd 6ac2bbfc35 be more careful with types, also pull in headers where necessary. 1994-10-30 21:43:03 +00:00
cgd 022ee8f7fe new RCS ID format. 1994-10-27 04:14:23 +00:00
mycroft e75cb9b517 Oops; need spltty() around call to print(). 1994-10-26 18:13:24 +00:00
mycroft 556a119342 Implement *cnpollc(). 1994-10-26 18:06:30 +00:00
mycroft d00c05633a Wait on the correct bit in the lower half of kbc_get8042cmd(); and some other
mostly stylistic changes.  Based on suggestions from John Hood.
1994-10-16 15:46:13 +00:00
mycroft cce04a7aa1 Put the delay in a macro, and implement it differently. 1994-10-09 09:28:54 +00:00
mycroft 24381e7f01 Validate unit number correctly. 1994-08-17 19:14:53 +00:00
mycroft 327f9dd950 Remove now-bogus cast. 1994-05-05 08:28:35 +00:00
cgd a0a7429482 lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.
1994-05-05 05:35:42 +00:00
mycroft 2f66816d8b Rename two files. 1994-04-24 01:34:05 +00:00
mycroft 3f5e4f423f Implement dynamic IRQ configuration and IRQ sharing. Inline spl*() calls.
Reorganize and clean up the relevant code.
1994-04-07 06:48:19 +00:00
mycroft 592ec61b17 Updates for new autoconfig. 1994-03-29 04:35:37 +00:00
mycroft 15d758c39a Remove backward compatibility hacks for config(8), as they are no longer
useful.
1994-03-12 03:45:03 +00:00
deraadt 08678da2df hack to get cursor right on video cards with real 6845 chips 1994-03-11 12:22:31 +00:00
mycroft 108cc16061 Move some code, but no functional difference. 1994-03-03 20:48:16 +00:00
mycroft 16d4233622 Add some comments explaining this ridiculous interface, and enable the reset
code by default.
1994-03-03 19:28:04 +00:00
mycroft 3bf0631a5e Flush the keyboard buffer before and after the reset. This should now work
on all machines and keyboards.
1994-03-03 19:11:59 +00:00
mycroft a9e3e0dd28 Add more experimental probe gunk, not enabled. 1994-03-02 08:03:02 +00:00
mycroft 2292eadf37 Set the keyboard to scancode table 1 rather than having the 8042 convert. 1994-03-02 06:46:11 +00:00
mycroft ab1474a681 Remove scantokey[] and extscantokey[], as they are not used. 1994-03-02 05:44:10 +00:00
mycroft 6ba1208b1d Add code to set the translation table number, but disabled for now. 1994-03-02 04:38:26 +00:00
mycroft 6902746df6 Attempt to insure the keyboard is enabled after reset, but turn off the entire
reset sequence by default since it causes some keyboards to become catatonic.
1994-03-02 00:57:35 +00:00
mycroft b9dbe12a58 Check for acks and naks in X mode. 1994-03-01 18:30:13 +00:00
mycroft 445d057248 Don't repeat lock keys in X, either. 1994-02-25 05:36:51 +00:00
mycroft 2c578d3586 Oops. 1994-02-25 05:15:31 +00:00
mycroft 49db93fa54 Two compatibility kluges for X; deal with the lock keys and reset the cursor
shape when X exits.
1994-02-25 03:48:51 +00:00
mycroft 196f213289 Allow keyboard-less boot. 1994-02-23 22:20:40 +00:00
mycroft 5fe1f9f9c6 Remove some more dead code. 1994-02-23 20:15:28 +00:00
mycroft 5dfb68e441 Add insert and delete line capabilities. 1994-02-23 18:42:04 +00:00
mycroft 4252abe773 Remove some code that is no longer used. 1994-02-23 00:54:45 +00:00
mycroft 8e1aea9a33 Most of the changes from the magnum branch; rearrange the parser to be a bit
faster, and rework the keyboard handling.
1994-02-22 23:01:22 +00:00
hpeyerl aa55bde66e Herb sheepishly puts the keyboard connection code back in.
(which means Herb needs to buy a keyboard now)
1994-02-17 15:08:30 +00:00
mycroft bbb3e7618c All ioctl routines take a struct proc * now. 1994-02-09 21:06:46 +00:00
cgd b452451cfe new cons.h location, etc. 1994-02-01 03:42:08 +00:00
deraadt 9825dd1730 ttrstrt definition doesn't belong here 1994-01-28 13:43:41 +00:00
hpeyerl 01f4843507 I want to boot without a keyboard dammit! 1994-01-25 04:32:02 +00:00
mycroft f2a0b4b335 Canonicalize all #includes, and add pio.h where appropriate. 1993-12-20 09:05:17 +00:00
mycroft 243bc4cc05 Boundary check on backspace. 1993-11-11 15:43:52 +00:00
mycroft cd216b5938 Make Ctrl-Space input a NUL and Ctrl-/ input a ^/ (undo in Emacs). 1993-09-28 04:55:17 +00:00
andrew ceb2a05027 Added keyboard typematic rate adjustment ioctl. Rudimentary support for
entering DDB from X11 by means of the F12 key (when XSERVER_DDB is
defined).
1993-09-28 03:25:01 +00:00
brezak cb098b5eb0 Changes to use a trap frame for syscalls. 1993-09-16 03:24:13 +00:00
mycroft 91b8683f3e Make Ctrl-Space and Ctrl-2 send a NUL, even without XSERVER defined.
(This has annoyed me for a while, and people are complaining about it.)
1993-09-06 05:52:33 +00:00
mycroft 59d53ecfbf Check some boundary conditions is cursor movement and scrolling. 1993-09-05 17:56:58 +00:00
deraadt 9aed375ba3 tty XXstart() routines return void 1993-08-29 13:46:31 +00:00
mycroft 3be4221095 Change tty code to use clist interface, but with ring buffer implementation.
Also, fix a couple of bugs in tty.c and pccons.c, and some gross kluginess
in the hp300 stuff.
1993-07-12 11:36:53 +00:00
mycroft 62ddceb6fc Yah, yah... 1993-07-11 09:53:44 +00:00
mycroft 7d3cf97d73 Oops. Back out clist changes, but leave the bug fix. 1993-07-11 09:45:07 +00:00
mycroft dd71ecc3aa This is so utterly revolting I refuse to describe it, except to say that it
fixes the problem of console output hogging the CPU.
1993-07-11 07:54:47 +00:00
mycroft e4c42383fb Implement scroll lock using sleep() and wakeup() so we don't get stuck at
spltty and freeze everyone.
1993-07-08 07:27:29 +00:00
deraadt 1eacd36710 pccons.c now dynamically allocates it's "struct tty"
cons.c's "struct tty *cn_tty" wasn't used by any of the kernel, and goes away.
1993-07-07 11:00:23 +00:00
deraadt ceec40c98f clean up code for timeout/untimeout/wakeup prototypes. 1993-07-06 06:06:26 +00:00
mycroft 94df11ad63 Make sysbeep() take a frequency, not a timer count, and add constants
BEEP_FREQ and BEEP_TIME which can be overridden in the config file.
1993-06-16 02:57:17 +00:00
cgd e9009189f5 fix bogus initializer 1993-05-31 00:54:40 +00:00
deraadt 2adecf84f6 1. It is now possible to build a kernel that does not have a pc0 device driver.
2. "press any key to reboot" reads the key from the console.
3. wddump() still needs a non-blocking getc() routine (or flush)
1993-05-28 09:10:52 +00:00
deraadt 2f0c0eb674 tty dynamic allocation 1993-05-26 10:06:41 +00:00
cgd 30177b538f add rcsids to everything and clean up headers 1993-05-22 07:56:12 +00:00
cgd 8d6c77881c make kernel select interface be one-stop shopping & clean it all up. 1993-05-18 18:18:40 +00:00
deraadt 6161295a96 ring buffer code now uses rbchar's (shorts) instead of chars. 1993-05-10 23:14:54 +00:00
mycroft 955bf47eda Don't autorepeat locking keys. (Can someone test this with X?) 1993-05-04 05:00:26 +00:00
mycroft e4996a015e Oops. sgetc() is used elsewhere, so should not be static. 1993-04-26 19:12:06 +00:00
mycroft e621c508ff Rename sput to sputc and make it and sgetc static. 1993-04-22 20:20:56 +00:00
mycroft 77afdc4037 Use rb_read to gather output; do exactly 4 spl calls, and don't hold the
interrupts locked very long, lest we overrun our serial port FIFOs.
1993-04-22 07:56:23 +00:00
mycroft efc059f15c Huge performance improvement (not so bloody many spl calls)! 1993-04-21 00:04:14 +00:00
mycroft dcdfedf042 Slight performance improvement. 1993-04-20 23:45:21 +00:00
mycroft 95c46ca69f Fix typo in last change. 1993-04-20 23:09:36 +00:00
mycroft bc2b258174 Don't output NULs. 1993-04-20 23:03:41 +00:00
deraadt 7f77252a93 Whoops. vidio card io space is 16 bytes large, not 8 bytes large. probe
now returns the right thing
1993-04-11 10:16:54 +00:00
deraadt fda0ef9095 nay, pccons.c still did not return the right thing from probe.. --> 8 1993-04-11 07:09:29 +00:00
glass 034707f9e5 fixed to be compliant, subservient, and to take advantage of the newly
hacked config(8)
1993-04-10 12:04:35 +00:00