ad
2db85d5948
- Add some extra TC ID strings that we should recognise. From simonb.
...
- Function definition and RCS ID spacing.
- Fix multiple inclusion goo to be like the new order of things.
2000-01-14 02:00:46 +00:00
simonb
ede7778a1c
Remove unneeded include files (up to 16 in two files!).
2000-01-10 03:24:31 +00:00
simonb
636b65bec8
The clean-up continues:
...
- Make local-only function and variables static.
- Move function prototypes and extern variable declarations to
header files.
- Delete unused variables.
There's still a handful of extern declaraions that should be fixed up.
2000-01-09 03:55:28 +00:00
simonb
ee075b7de7
Function prototype cleanup.
2000-01-08 01:02:35 +00:00
simonb
5f95b56bc8
Need to include <dev/wscons/wsconsio.h> for WSDISPLAY_FONTORDER_L2R.
2000-01-07 13:43:02 +00:00
simonb
770f6c71b8
Fix tyop in comment.
2000-01-06 05:22:07 +00:00
ad
59a1ab9791
Add two new members to 'struct wsdisplay_font': 'bitorder' and 'byteorder'.
2000-01-05 18:44:21 +00:00
simonb
49ee67c77e
Include qvssvar.h to get mouseInput() prototype.
1999-12-30 01:01:48 +00:00
simonb
5c8cb4e2a7
Make some functions static which aren't used anywhere else. Remove local
...
function definitions that are already in qvssvar.h.
1999-12-30 00:57:29 +00:00
simonb
644ff8f7ed
Include <pmax/pmax/cons.h> instead of <dev/cons.h> to get RCONSDEV.
...
That file includes <dev/cons.h>.
1999-12-30 00:31:02 +00:00
simonb
88edf446c2
s/lk_mapchar/lk_reset/.
1999-12-30 00:29:53 +00:00
ad
103246974d
xcfbreg.h is essentially a copy of ims332reg.h with 3 xcfb specific board
...
offsets defined. Nuke it.
1999-12-23 16:07:58 +00:00
ad
7cc038239e
More variable naming pedantry.
1999-12-23 15:42:06 +00:00
ad
977ce29db3
Rectify the jumbled naming scheme of routines in lk201.c. Function names
...
are now lower case and prefixed by 'lk_'. XXX lk_mouseinit() is bogus. It
belongs somewhere else.
1999-12-23 15:34:17 +00:00
ad
e05b646600
mouseInput() should not be declared here.
1999-12-23 15:27:14 +00:00
ad
f607dfe4dd
- Change prefix for Bt459 register defs to BT459_IREG to indicate that
...
these are indirectly accessed registers.
- Add defs for directly accessed registers to bt459reg.h.
1999-12-15 15:09:36 +00:00
ad
f458e50bdf
Since mfb.c is the only user of defCursor[], move it from fb.c into there
...
and remove the extern'ed declaration in xcfb.c.
1999-12-15 14:48:24 +00:00
ad
278cb41098
Clean up a little.
1999-12-15 14:44:59 +00:00
ad
8307818a9b
Don't declare rcons_connect() - pull in <pmax/dev/rconsvar.h>.
1999-12-15 14:44:32 +00:00
ad
788d82a891
Clean up decl.
1999-12-15 14:36:41 +00:00
simonb
77aea66917
Use "u_char *" instead of "caddr_t" for all colormap references. In line
...
with recent MI rasops changes, and fixes compile problems with -current.
1999-12-09 00:16:14 +00:00
ad
6979dfbd2b
Accessing the ringbuffer from KSEG0 is too naughty to contemplate. Mother
...
would never approve.
1999-12-08 21:38:10 +00:00
ad
48eb7986d4
- If we call px_init() at attach time, then we're not the console, so don't
...
set the console arg to 1. Noted by mhitch.
- In px_init(), don't compute pxi_fontscale if we're not the console,
since we don't have a font in the first place. This is a relic from
when the driver was converted to use 'struct wsdisplay_font'.
Should fix crashes if a px board is installed and isn't the console.
1999-12-08 21:33:43 +00:00
simonb
09af3823bf
In dc_ds_consinit(), choose the address of the dc device based on
...
systype. Fixes lockup on 5000/200 - tested on 5000/200, 3100 and
5100.
1999-12-08 04:03:28 +00:00
simonb
f3867cd79f
Don't need to prototype consinit() - it's in systm.h.
1999-12-08 02:56:17 +00:00
simonb
dcf49845cb
Remove one of two (different!) prototypes for dc_consinit(). dc_ds.c
...
now includes <pmax/dev/dc_cons.h> to get the correct prototype.
1999-12-08 00:13:33 +00:00
simonb
b48a6bbd79
Allow the "install diskimag" label to be any size < 16MB, not just 4MB.
1999-12-06 02:53:50 +00:00
simonb
04f70ed884
Add a flags variable to dc softc, and when attaching a dc determine
...
(via systype) whether or not it is possible for a keyboard and mouse
to be attached. The console on a 5100 now works!
1999-12-03 13:07:35 +00:00
ad
0daccde651
- When kbdMapChar() was modified to support returning multi-character
...
mappings, it broke Ctrl-Space; fix that.
- Clean up lk201.c a little.
1999-11-29 15:02:38 +00:00
simonb
71cc75d706
Don't check for a write to write protected label if we are writing to
...
the raw partition.
1999-11-28 06:28:37 +00:00
simonb
fcab0ccebb
Tidy up the formatting of a comment.
1999-11-28 06:06:21 +00:00
simonb
682b4e3665
Include SCSI version of disk in device display.
1999-11-19 03:14:22 +00:00
simonb
af2a80f51c
Show the SCSI version of the tape drive. Also, when printing out info
...
about the tape drive, only use one ``printf("\n");'' at the end rather
than having lots of \n's.
1999-11-19 03:04:39 +00:00
simonb
9dacfe6b24
Don't need extern with function declaration.
1999-11-19 02:35:40 +00:00
simonb
1dd2a74d0a
Only all the kbd/mouse init functions if NRASTERCONSOLE > 0.
1999-11-19 02:17:01 +00:00
simonb
88673ee539
Only call tcfb_cnattach() if NRASTERCONSOLE > 0.
1999-11-19 02:16:06 +00:00
nisimura
e810ae49c6
Resolve 3max IOASIC disguise; round #2 .
1999-11-16 06:00:11 +00:00
nisimura
cc2e1c302a
- Reflect changes in ibus_intr_establish() definition.
...
- More concise way to initialize TC framebuffer device for console.
1999-11-15 09:54:41 +00:00
mhitch
27a8dc486b
Use console_debugger() to enter DDB on a break, instead of Debugger(). It
...
can now be controlled with sysctl on the 3100 & 5000/200.
1999-11-13 22:58:11 +00:00
mhitch
babe07a8b5
When called from the debugger, the keyboard handler was returning 0 due to
...
a missed change when kdbMapChar() was changed to return a string. Return
the correct chacter from the string.
1999-11-13 22:56:56 +00:00
mhitch
f4fa9aae9f
When the framebuffer is closed, reset the keyboard. We don't know what the
...
X server may have done with the keyboard state. X11R6 was changing the
keyboard modes, which were not compatible with the lk201 keyboard handling
in NetBSD.
1999-11-08 18:41:32 +00:00
simonb
986464bd89
Remove duplicate line.
1999-11-04 02:53:03 +00:00
ad
0f1d754327
QIOCGMAP is what I like to call QIOCGINFO during my more confused moments,
...
but other people can't be expected to know that. Noted by mhitch.
1999-11-03 13:45:11 +00:00
ad
ef0cc9a3f4
- Re-arrange the control map that is exported to user space. This map now
...
includes the STIC poll registers.
- Don't bother enabling ISR driven packet queueing on device open. It doesn't
work for the PXG due to severe dainbramage on the part of DEC and doesn't
work properly on the 3min due to the spl stuff being a mess.
1999-10-24 15:33:45 +00:00
mrg
cb6e315ab0
make this work again.
1999-10-11 16:08:47 +00:00
ad
2d7488c2c5
Use px_probe_sram() to figure out ringbuffer size instead of defaulting to
...
the minimum value of 128KB (useful only for PMAG-F).
1999-09-25 14:45:21 +00:00
nisimura
ff559f77f0
'KB' for kilo-bytes as humanize_number().
1999-09-24 00:37:52 +00:00
ad
e6f3bfaa3a
N10's host interrupt register uses low nybble for interrupt cause, not the
...
entire word.
1999-09-18 01:50:24 +00:00
thorpej
11cae42531
Centralize the declaration and clearing of `cold'.
1999-09-17 19:59:35 +00:00
simonb
a68944cfca
Overhaul the tz SCSI tape driver:
...
+ Add a quirk table.
+ Assume all else is a modern drive that can do variable block
lengths (this is the main reason for this work - the old driver
only ever seemed to write 512 byte blocks!).
+ Keep track of values for mtget's mt_fileno, mt_blkno.
+ Handle a few extra MTIOCTOP commands.
Ideas gleaned from our MI scsi tape driver and the FreeBSD CAM tape
driver. Tested on a TKZ09 (DEC badged Exabyte 8500), a TLZ06 (DEC
DAT) and TK50.
Many thanks to Pierre Bergdolt for helping with testing.
1999-09-07 13:53:36 +00:00
simonb
a17eb29d7c
Remove a few unnecessary header files.
1999-09-05 11:34:29 +00:00
simonb
eca6f8a067
Fix tyop.
1999-09-05 06:31:52 +00:00
nisimura
d0259231aa
A small fix to save such a configuration of MAXINE with TC framebuffer
...
option card installed.
1999-09-03 10:19:40 +00:00
nisimura
37b9802f3a
- Nuke "asc.h" inclusion.
1999-09-03 06:12:28 +00:00
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