Commit Graph

387 Commits

Author SHA1 Message Date
simonb 0676f7a9b7 Handle the MTOFFL request to actually offline a tape rather than just
rewinding it.  Tested with an Exabyte 8500 on a 5900/260 (the asc scsi
driver).
1999-08-31 01:12:51 +00:00
thorpej 8c92a5344c PMAX uses white-on-black for the default rcons colors. 1999-08-26 20:49:40 +00:00
ad c9adbf13c2 Update to match new rasops_init semantics. 1999-08-24 11:16:03 +00:00
thorpej eb20bbc780 Change the semantics of splsoftclock() to be like other spl*() functions,
that is priority is rasied.  Add a new spllowersoftclock() to provide the
atomic drop-to-softclock semantics that the old splsoftclock() provided,
and update calls accordingly.

This fixes a problem with using the "rnd" pseudo-device from within
interrupt context to extract random data (e.g. from within the softnet
interrupt) where doing so would incorrectly unblock interrupts (causing
all sorts of lossage).

XXX 4 platforms do not have priority-raising capability: newsmips, sparc,
XXX sparc64, and VAX.  This platforms still have this bug until their
XXX spl*() functions are fixed.
1999-08-05 18:08:08 +00:00
ad 233d3887c1 In pm_screen(), return 0 if fballoc() fails, not 1. 1999-08-02 12:52:27 +00:00
ad 3d71693ea7 In fbconnect(), append ' (console)' to printed message if called for
the console framebuffer at attach time.
1999-07-28 17:13:54 +00:00
ad 724365fa3e Change the way fb devices are configured and attached:
- 'struct fbsoftc' created, which points to a 'struct fbinfo'
- 'struct fbinfo' for each device is allocated with fballoc()

This means:
- Console device doesn't get different 'struct fbinfo' at attach
- Console device doesn't get initialized twice
- Color rcons now works
- The current Xserver MUST BE REBUILT.
1999-07-25 22:50:28 +00:00
ad fe6a4d8ffd Remove 'already the console' check, which will be handled by fballoc(),
fbattach() and fbconnect() shortly.
1999-07-16 14:23:47 +00:00
oster 7824f40e5f Add a '#include <sys/resourcevar.h>' to each of these to allow them
to compile again.
1999-06-22 14:51:57 +00:00
ad 5756acc071 Cleanup. 1999-06-21 19:07:16 +00:00
thorpej 9e9f068f43 Add the guts of mlockall(MCL_FUTURE). This requires that a process's
"memlock" resource limit to uvm_mmap().  Update all calls accordingly.
1999-06-18 05:13:45 +00:00
simonb 6a949cddfb Include <pmax/pmax/machdep.h> instead of declaring our own prom_*()
prototypes.
1999-06-08 23:42:36 +00:00
simonb b7a2ec3f01 + Call prom_scsiid() to found out what the host SCSI ID should
be instead of hardcoding values.
 + Print the host SCSI ID in siiattach().

XXX - probably should do the same to the ASC driver??  The manuals for
the 5000 series machines don't mention the scsiidN env variable, but it
is present on all the models I've looked at...
1999-06-08 23:41:59 +00:00
ad 080560c8c6 - Setting initial position of cursor is up to caller.
- Set cursor position properly for SPARC. From Juergen Hannken-Illjes.
1999-05-23 17:59:39 +00:00
ad 02bc362e3e Add arg to rcons_init() that when set causes screen to be cleared. 1999-05-19 20:34:19 +00:00
ad 39db587e6f Cleanup. 1999-05-19 20:14:46 +00:00
ad bb3a510fa2 Assign ownership & copyright to TNF. There is probably a procedure for this
that I am unaware of. Also some KNF.
1999-05-18 21:51:57 +00:00
ad 3b602e5afa Panic if rasops_init() fails us (should never be the case). 1999-05-15 13:04:03 +00:00
nisimura a10adaf5aa - Utilities of DECstation PROM call were moved to 'promcall.c' and
take a bit care about findcons.c console support kitchen sink.
1999-05-11 05:15:54 +00:00
simonb d5ce574eee Fix tyop in comment, and keep comment lines to less that 80 chars. 1999-05-10 12:36:16 +00:00
thorpej 1f4085fb66 Fix spruious false matches in px_match(). 1999-05-06 01:50:56 +00:00
ad 3801a05ffb Add cookie for wsfont to px_info. Don't try to get/lock a font if we
are not the console.
1999-04-29 02:50:25 +00:00
ad aa89ae23ba Last fix broke kbd and mouse input under X for the console device. Fixed. 1999-04-26 23:26:11 +00:00
ad 0c221127eb More fixes to get the PXG working and keep the PX happy. 1999-04-26 12:05:11 +00:00
ad e54fa8abad Fix silly bug where fbconnect() doesn't realize that it's already been
called during early console initalization, then pouts because there appears
to be n+1 framebuffers. This whole thing is a mess.
1999-04-26 12:03:53 +00:00
ad 4e3888516e Many fixes to support PXG, PXG+ and PXG+ Turbo. Interrupt handling is
totally broken for the PXG and will remain so until more documentation is
available. This destroys the queueing, hardware clipping, and VDAC update
mechanisms on the PXG.
1999-04-26 04:37:33 +00:00
ad 6db752a5c1 "px.h" requires inclusion. 1999-04-26 04:34:00 +00:00
simonb 59df0560f4 Set the colormap index before checking it! 1999-04-25 04:04:16 +00:00
simonb f676307241 Include "px.h" - rcons_connect_native is only compiled in of NPX > 0.
Fixes PR port-pmax/7456 from Jason Thorpe.
1999-04-24 15:22:45 +00:00
simonb dc1d3940db Nuke register and remove trailling white space. 1999-04-24 08:01:01 +00:00
ad a895fbfd58 Define rcons_connect() only if (NFB > 0). Define rcons_connect_native() only
if (NPX > 0). Needed for fixed `rasops' config glue.
1999-04-22 00:33:30 +00:00
ad ca39efe84c Remove misplaced comment. 1999-04-22 00:29:59 +00:00
ad 0993fa2727 Add configuration glue needed by rasops, wsfont, rcons and the px driver. 1999-04-13 18:53:27 +00:00
ad cf19d10b2a Added console initalization glue to allow `px' device to function as the
console.
1999-04-13 18:50:51 +00:00
ad 8cd2881c35 Save colormap when fb device is opened, and restore upon close. Do not
fbconnect() 'pm' device again at attach time if it is the console.
1999-04-13 03:22:00 +00:00
ad 46dcc25b4a Map keypad 'Enter' to 'Return' for console operation. Change error messages
in MouseInit() to allow gcc to fold the strings.
1999-04-13 03:19:28 +00:00
ad de43e7cc8d Fixed licensing due to a foobar on my behalf. 1999-04-13 00:40:07 +00:00
ad b30fc08f22 Initial import of `PX' driver. 1999-04-13 00:30:08 +00:00
pk b13e5d1469 Quote "AS IS" as in the majority of Carnegy Mellon notices. 1999-04-12 20:38:17 +00:00
simonb be4160066d Allow the fake installation diskimage to be 2MB as well as 32MB in size. 1999-04-08 13:55:37 +00:00
pk c40eb1cd97 Fix a pasto in copyright text which has been procreating like rabbits.. 1999-04-06 20:09:18 +00:00
mrg d2397ac5f7 completely remove Mach VM support. all that is left is the all the
header files as UVM still uses (most of) these.
1999-03-24 05:50:49 +00:00
mrg 8fcaa99d1b KNF nits. 1999-03-22 13:08:51 +00:00
ad 3ce634a350 Added support for cursor keys, function keys and friends. kbdMapChar now
returns 'char *' to do this. Codes returned for the various keys match
what 'rcons' termcap entry expects.
1999-03-22 03:25:29 +00:00
jonathan 5965639381 Do lk201 non-keyclick setup even when LK_KEY_CLICK not configured. 1999-03-15 09:40:56 +00:00
mrg 3ca216fd8a fix NRND usage 1999-03-09 00:37:01 +00:00
explorer 3ebb419571 Update to slightly altered rnd_attach_source() api 1999-02-28 17:08:05 +00:00
jonathan 68a5ad19be Fix off-by-one width: 220, not 221. confirmed against PROM setup. 1999-02-23 01:35:56 +00:00
jonathan ce3b5f2c3f Adjust cursor offests so that cursor position reported by X applications
agrees with pointer. Fron PR 6648 (not verified at all resolutions.)
1999-02-17 01:04:10 +00:00
simonb 9a3172af0e Include dec_{boot,exec,prom}.h from <machine/...>, not <stand/libsa/...> 1999-01-29 05:37:45 +00:00
simonb 3675e80580 Removed unused include file 1999-01-29 05:31:23 +00:00
jonathan 7bfe0eabb6 Use lk_bell() for audible bell. 1999-01-28 10:35:53 +00:00
jonathan 1962954796 LK201 changes from PR#4519:
Add lk_bell() to ring keyboard audible bell (for rcons bell).
  Add LK_KEY_CLICK option to reset keyboard and enable keyclick.
  (off by default since theres no way to control it from userland yet).
1999-01-28 10:20:10 +00:00
simonb 51dc8fb666 Change location of pmax/stand/*.h include files to pmax/stand/libsa/*.h
My bad - wasn't expecting the kernel proper to pull stuff in from stand...
1999-01-27 03:12:24 +00:00
simonb 384f5d9970 Remove unused pmax/stand/dec_*.h include files. 1999-01-27 03:03:51 +00:00
nisimura 34410d5d0c - Fixup imcomplete vm_offset_t purge work... 1999-01-16 07:05:05 +00:00
jonathan 34fe177e8e * Use dc_tty_init() to set serial-console line state both for boot-time
console setup and driver attach-time.
* Dont wire potential console lines as CLOCAL; use softcar.
* #ifdef tests on #ifdef NRASTERCONSOLE, not HAVE_RCONS.
1998-11-29 00:28:29 +00:00
jonathan cdc3ba978c Remove last vestiges of console special-case handling:
* use dc_coldparam() in dc_tty_init(), dc_kbd_init().
 * use dc_tty_init() to set line for serial console in dc_consinit()
 * only call dc_mouse_init() if the console major-number  is RCONSDEV.
1998-11-28 09:52:55 +00:00
jonathan 89cad55ba4 Make rcons work, if configured, even when using serial console:
do rcons_connect() even if using a serial console.
  identify first attached framebuffer as being `rcons' output device.
1998-11-23 04:26:15 +00:00
mhitch 475a5c2afd RZ25 disks seem to need a short delay after a start command; the test unit
ready right afterward succeeds, but the getsize following that failed with
a "not ready".
1998-11-20 06:24:02 +00:00
mrg db3051d720 fix problems in many d_mmap routines:
- returned EOPNOTSUPP rather than -1.
	- no check for negative offset.
many of these fix potential security problems in these drivers.


XXX XXX XXX
the d_mmap cdev routine should be changed to have a prototype like:
	paddr_t (*d_mmap) __P((dev_t, off_t, int));

by someone!
1998-11-19 15:38:20 +00:00
jonathan a3a77d9561 Add skeleton code to defer rcons console output to soft-interrupt time.
ifdef'ed out for now.
1998-11-16 00:10:39 +00:00
jonathan 03b30a046d * make scc_tty_init() callable when very cold: call scc_coldparam() directly.
Use scc_tty_init() in scc_consinit().  Declare scc_consinit() in sccvar.h.

* Remove last vestige of special-case console handling in sccparam() code.

* Call scc_consinit() from findcons scc_serial() console-setup.
  Dont PROM for scc serial console at all.
1998-11-15 11:21:52 +00:00
mhitch 7b16048c5a Fix the Right-Shift on the LK501 keyboard in a different way. My previous
attempt results in the up and down arrows not repeating in the X server.
The keyboard division table is modified to place the Right-Shift keycode
into division 6 along with the Left-Shift and Control.  A corresponding
change to the X server lk201 keyboard handler is also required.
1998-11-13 01:59:51 +00:00
mhitch 010e90e0ca Cursor position offsets need different values for an sfb board with an
alternate clock that does lower resolution.
1998-11-06 03:53:40 +00:00
mhitch a7f70a5fbc Fix problem when using non-DEC CDROMS with blocksize other than 512 bytes.
This got lost when disk geometry processing was updated.

Also move the CDROM check from rzread() to rzwrite() - it doesn't make
much sense to report a read-only filesystem error when trying to read a
CDROM.
1998-11-06 01:59:25 +00:00
jonathan 5211fed3ab Michael Hitch's fix to dtop handler:
make handler FSM robust enough to not lose its place after data overrun.
  stops  keyboard from going catatonic.
1998-10-29 04:54:20 +00:00
jonathan 0582e98991 Treat Wangtek QIC-150 SCSI tapes the same as Viper, so they work on
3100s as well as with the asc driver.
1998-10-22 23:01:45 +00:00
thorpej 29d472f53d Garbage-collect the open_target_lu and close_target_lu entry points from
struct scsipi_adapter; they were not used.

Add a scsipi_ioctl entry point to struct scsipi_adapter.  This will be
used to issue ioctl commands to the host adapters.

Inspired by PR #6090, from Matt Jacob.
1998-10-10 00:28:28 +00:00
nisimura d6afdbc88b Complete to fix errors introduced by HX screen dimension detection. 1998-09-10 10:00:39 +00:00
mhitch a91d61bced Can't use fi->fi_base to access the resolution registers: it hasn't been
initialized yet.  Use the base variable, and also use the symbolic symbols
to acdess the registers.  Also, the console max_rows is based on the
display height, not the width.
1998-09-07 19:52:49 +00:00
mrg 3d26a04acb add "int" type to static tzops array (egcs warning) 1998-08-29 16:14:15 +00:00
jonathan e2ff73afa7 Compute SFB pixel dimensions at attach time for PMAGB-BB users.
(qvss-compat needs revision, but should be replaced with wscons anyway.)
1998-07-12 06:26:37 +00:00
jonathan 466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
thorpej 21592147a1 defopt COMPAT_ULTRIX 1998-06-25 23:27:56 +00:00
matt 7a1e3fe2ea Allow serial consoles *without* any graphics devices. 1998-05-23 18:21:43 +00:00
simonb 76e48472e6 Include pmax/pmax/pmaxtype.h for definition of DS_PMAX 1998-05-19 04:31:27 +00:00
simonb 469658d533 - Allow all valid SCSI id's to work on the SII and first two ASC
controllers (including SCSI id 7 on the 2100/3100).
- On the pmax (2100,3100) set the host SCSI id to 6.
- Move disk and tape config for the second ASC controller from the GENERIC
  config file to scsi.pmax so all configurations can use the second
  controller.
1998-05-08 00:05:19 +00:00
jonathan bd51370674 Fix indexing bug in bt459 colourmap update.
Causes symptoms in PR# port-pmax/4174.
1998-04-20 05:24:17 +00:00
jonathan 1a283ae18b Use new ibus attach args. 1998-04-19 10:47:06 +00:00
jonathan 6525db3fdb Update dc_ds.c to use new ibus attach args.
Garbage collect obsolete front-end from dc.c backend.
Partially clean up console init code.
1998-04-19 10:44:41 +00:00
jonathan 1116cb8578 Cleanup comment typos. 1998-04-19 10:22:45 +00:00
jonathan 4ea6444493 Decsystem 5100 (aka mipsmate aka kn230) support:
* dec_5100.c: sysconf, interrupt, and  motherboard (drain writebuffer)
   support for 5100.
 * support for hardware kludge in 5100: sii DMA buffer is hardware
   padded to alternate 32-bit words, not alternating 16-bit  halfwords.
 * 5100 has no framebuffer, console is wired to serial port 0.

With ibus support, boots as far as exec'ing init, and hangs.
1998-04-19 01:27:02 +00:00
jonathan d850158a7e Garbage-collect pmax_boardtype. Remoe pmaxtype.h includes from TC
framebuffer code. Elsewhere, use systype.
1998-03-31 11:32:52 +00:00
mhitch 57f61ecbbd Modify TK50 check to also check for a TZ30 tape, and adjust the modesense
data length accordingly.
1998-03-30 19:50:47 +00:00
jonathan 2f23758d46 garbage-collect "extern int systype" 1998-03-30 09:52:11 +00:00
jonathan 9d3e5cca36 garbage-collect old integrated frontend from sii backend. 1998-03-30 09:47:51 +00:00
jonathan 05bfc158d1 Undo previous rev; systype is declared extern in pmaxtype.h (while it lasts). 1998-03-30 09:44:03 +00:00
jonathan b800227f95 Garbage-collect old code for direct attachment. 1998-03-30 02:34:25 +00:00
thorpej dd3d062237 Delete a couple of gratuitous printfs. 1998-03-26 06:36:36 +00:00
thorpej 60e832dc24 Make this compile. 1998-03-26 01:01:13 +00:00
jonathan 5aa93520b5 Pause after failing to find the same driver as the PROM. 1998-03-25 07:35:05 +00:00
jonathan a47a813037 Reinstate workaround for old PROM (3100) return values. 1998-03-25 07:30:28 +00:00
jonathan 5dbbcd7d4d Garbage-collect BRAINDAMAGEd code (see pr 4438).
Attachment of keyboards and mice needs more work.
1998-03-25 06:27:32 +00:00
jonathan 6a3abc10f7 Create in rconsvar.h, with exported variables and RCONSDEV. 1998-03-24 09:51:23 +00:00
jonathan 1c0730217a Rewrite pmax console-probing code from scratch
as pmax/dev/findcons.c:
 *  Follow the same logic: look for the device the PROM is using.
 *  If it's a framebuffer and we don't have a driver for it, try other
 *  framebuffers in PROM search order.
 *  If no match found, warn user and fall over to serial console.
 *  if no serial console found, go back to PROM.

Rework tc/scc.c attach routine to give cleaner initialization semantics.
Prune out old 'braindamage' code.
1998-03-24 08:39:02 +00:00
jonathan 3172e096d3 Move pmax PROM-console I/O callbacks out of pmax/pmax/cpu_cons.c
into pmax/dev/promio.c, with decls in promiovar.h.

Remove obsolete cpu_cons.c and old pmax console-probe code.
1998-03-24 08:31:34 +00:00
jonathan 6d836436ac Commit snapshot of pmax console rework as basepoint for 1.3.2 pullup:
* Do rcons output properly, using cn_tab->cn_dev which points
   at rcons cdevsw entrypoints.

 * The pmadx console code was using keyboard (serial) device
   (major,minor) for raster consoles with special code in the keyboard
   drivers to catch output intended for consoles, pull it off the device
   queue, and print them via cnputc().
   Ifdef out  RCONS_BRAINDAMAGE.

* Other minor cleanup to pmax scc driver.
1998-03-24 00:23:55 +00:00
jonathan 9a8dbd75df Clone lk20.h (keycode definitions) to /sys/dev/dec.
Update source pmax files accordingly.
cvs remove old pmax/dev/lk201.h.
1998-03-22 09:27:07 +00:00
jonathan 6e3073d769 More tty dialin/dialout changes (t_wopen).
NB: dtop is a keyboard/mouse bus and doesn't support dialout.
1998-03-22 07:04:13 +00:00