Commit Graph

1620 Commits

Author SHA1 Message Date
nisimura d60c22d5f7 Nuke mistakenly introduced #include "rasterconsole.h". 2000-02-03 04:23:36 +00:00
nisimura 72b67dec3e Massive change of console initialization to make WSCONS transition easier. 2000-02-03 04:19:59 +00:00
nisimura 3aaeaf7331 - Massive change of console initialization. Have each model its own
consinit().
- Fix fbconnect() and relatives; 'struct fbinfo' is initialized only once,
  making sure no extraneous console resolution message is emitted.
2000-02-03 04:09:01 +00:00
tsutsui 11c8f56d48 Revert STRIPPROG -> STRIP 2000-02-01 05:25:24 +00:00
drochner 8eb798e603 define a "BUS_SPACE_MAP_PREFETCHABLE" flag which basically means that
device accesses are idempotent (but should not be cached by the CPU)
2000-01-25 22:13:17 +00:00
tron 04eb110431 Add "dependall" target for comfort. 2000-01-24 20:36:06 +00:00
hubertf 7e5ff67457 Add commented out "ident"-command 2000-01-23 23:46:04 +00:00
mycroft 7b49d242ce Clean up the machine symlink stuff ever so slightly. Needs to be
standardized between files.
2000-01-23 17:04:03 +00:00
thorpej 52242fdf9f Update for sys/buf.h/disksort_*() changes. 2000-01-21 23:28:59 +00:00
wrstuden 87e1b0f9b7 Add overlay to kernel configs. 2000-01-20 19:12:28 +00:00
thorpej a0397a2573 Move callout initialization to a single location; no need to duplicate
that code all over the place.
2000-01-19 20:05:30 +00:00
tsutsui e61f177ab1 STRIP -> STRIPPROG 2000-01-19 16:29:54 +00:00
msaitoh 0b9af6bdce check whether tv_usec >= 1000000 2000-01-19 02:52:16 +00:00
thorpej 4f27a98702 Use b_cylinder as defined in sys/buf.h 2000-01-18 19:48:02 +00:00
simonb 251eb03a2b Only prototype and include code for scc_kbd_init() and scc_mouse_init()
if NRASTERCONSOLE > 0.  Fixes problem reported on port-pmax by Anders
Andersson.
2000-01-18 12:19:49 +00:00
ad ec54843fa3 - Make consistant with the new order.
- Ammend comment about PrestoServe.
2000-01-14 15:52:33 +00:00
ad ba79e0aab8 Make consistant with the new order. 2000-01-14 15:52:00 +00:00
simonb bdf420bdbf Redo interrupt establishment, based in part on work on the
[nisimura-pmax-wscons] branch and suggestions from Toru Nisimura:
 - Remove bogus tc_slot_info[] name for interrupt handling array
   and replace with simplified struct intrhand  intrtab[] array.
 - Add intr_establish() and intr_disestablish() function pointers
   to struct platform and initialise this in each model-specific
   initialisation, and remove global tc_enable_interrupt function
   pointer.
 - Remove model-specific function declarations from ibus/ibusvar.h.
This is functionally identical to the current scheme, and doesn't
yet try to commonise interrupt establishment by bus type as the
[nisimura-pmax-wscons] branch does.

Also, move cpuspeed variable from autoconf.c to machdep.c
2000-01-14 13:45:21 +00:00
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
ad a4fe338bf5 Fix thinko in comment. 2000-01-11 20:36:17 +00:00
simonb ede7778a1c Remove unneeded include files (up to 16 in two files!). 2000-01-10 03:24:31 +00:00
simonb 6713f95947 Add trailing quote to RCS ID. 2000-01-10 01:57:41 +00:00
ad 0ab584940f RCS ID police. 2000-01-09 23:12:30 +00:00
ad ef9dba7791 - Protect against multiple includes.
- Spacing.
2000-01-09 23:10:45 +00:00
simonb 82a7ef29e8 Move include of <sys/sysctl.h> after <vm/vm.h>
Add some parentheses around part of an expression to keep gcc -Wall happy.
2000-01-09 22:31:44 +00:00
simonb 0e7337b60e Remove defines for VM_PHYSSEG_STRAT and VM_PHYSSEG_NOADD - these are
already in mips/include/vmparam.h.  Now things work again (yo Andy!).
2000-01-09 20:09:43 +00:00
ad 838b5e08c9 - Fix RCS Ids.
- Spacing.
- Protect from multiple inclusion in a consistant way (except on headers
  that do nothing except function as mips header wrappers).
2000-01-09 15:34:41 +00:00
ad e37d8a4671 This is just a wrapper, nuke comment so it's like the others. 2000-01-09 15:12:31 +00:00
ad ab208e6993 s/4(..)bsd/4$1BSD/ 2000-01-09 15:08:42 +00:00
ad 699c278c21 Fix some spacing, spelling, RCS ID and KNF nits that I came across. 2000-01-09 14:34:33 +00:00
ad 010a8f8cb1 - Protect from multiple includes.
- Fix and beef up comments.
- G/C unused def.
2000-01-09 14:28:54 +00:00
simonb 24ddcc3162 Use the badaddr() prototype in mips/include/cpu.h by including
<machine/cpu.h> in mips/include/mips_param.h.  Remove duplicate
badaddr() prototypes from some pmax header files.
2000-01-09 13:24:14 +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 576e373b42 Start of the "The Big Cleanup" - remove "ifdef alpha". This has
diverged enough from the alpha scc.c that keeping any pretence of
portability is not worth it.
2000-01-07 14:12:51 +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 b1ab053e2c Ick - include pmioctl.h to get the pmEventQueue typedef needed for
qvssvar.h (needed for the mouseInit() prototype).  This _will_ be
cleaned up soon!
2000-01-04 23:15:03 +00:00
ad 50fcd347dd Comment px0 entry a little more accurately. 1999-12-31 12:21:06 +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
kleink 11e6c54cfc C99: Define a NAN macro in <math.h> which evaulates to a constant expression of
a single-precision quiet NaN; only to be defined on platforms that do support
this value.
1999-12-23 10:15:05 +00:00
simonb 89b100b1a2 Get 2100/3100 model number correct (test was reversed). Bug report and
patch from Scott G. Akmentins-Taylor on port-pmax.
1999-12-22 22:10:07 +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 3af7b06f11 Revert previous - the problem was a hard-coded KN01 dc address, not the
cookie value.
1999-12-11 13:49:18 +00:00
simonb ef246ec592 Add a few comments for unsupported systems. 1999-12-09 02:31:37 +00:00
simonb 8433a7d9eb Enable DECsystem 5100 support. 1999-12-09 02:11:55 +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 e065c9fbda Store only the kernel name itself in the bootinfo BOOTPATH record, and
not the full boot device specification.

With this change, /etc/rc doesn't spew garbage when kvm_mkdb can't
find a kernel called "3/rz0/netbsd" or some such...
1999-12-08 14:23:34 +00:00
simonb 24a48d8b87 Oops, back out some test 5500 stuff from previous commit - only RAMDISK
was meant to be changed.
1999-12-08 04:16:16 +00:00
simonb 3b874faeb3 Add newline to last line of file. 1999-12-08 04:12:15 +00:00
simonb 369211f9ca We now need a 3MB miniroot. 1999-12-08 04:11:07 +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 c2f5cc273c Don't use our own defines for SCCDEV or RCONSDEV - pull in
<pmax/pmax/cons.h> for these values.
1999-12-08 01:29:11 +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 3742b697d5 Fix gaff in previous - need <kn230.h> and use _SYS_DZ0 not _SYS_DZ for
5100 console device.
1999-12-08 00:04:11 +00:00
simonb 12ed1b07a3 Use KN230_SYS_* names for 5100 device addresses. 1999-12-07 23:23:19 +00:00
simonb f3e001c3ac Fix typo in 3max+ scc1 device declaration - console output on a serial
console 3max+ works again.
1999-12-06 11:52:36 +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
ragge 0513268399 CL* discarding. 1999-12-04 21:13:19 +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
simonb 9991550466 Change debugging printf() so that it compiles if enabled. 1999-12-03 03:34:36 +00:00
nisimura d782dfb5f7 Cleanup rambling codes. 1999-12-03 03:06:11 +00:00
nisimura 6944e3acfe Remove a now defunct file. Most of the contents were already displaced
by others.
1999-12-03 03:03:48 +00:00
simonb c31741ec4d Do the "options<SPACE><TAB>" thing for some recent options. 1999-12-02 03:52:25 +00:00
nisimura 06276dc255 Fix wrong figures in comments. 1999-12-01 08:55:09 +00:00
nisimura f0771e6b9b Arrange comment descriptions for internals of TC DECstations. 1999-12-01 08:41:41 +00:00
nisimura 6aa5cbc76c Replace old asic.c with one imported from a development branch. 1999-12-01 08:39:20 +00:00
nisimura b8997ad45a Remove a file obsoluted and arrange global extern declarations. 1999-12-01 08:37:25 +00:00
nisimura 1d71d327fc Simply the way how 3min estimates CPU speed. Save 25+ instructions. 1999-12-01 08:35:27 +00:00
simonb 3328370469 Return the blocksize-rounded-up length (which was the size malloc()d
anyway).  The resultant pwrite() is now a multiple of the blocksize and
doesn't fail on a pmax with the MI SCSI driver.

Problem noticed by Tohru Nishimura.
1999-12-01 05:02:03 +00:00
nisimura bf9cfe90d3 Fix 3max DC cookie value; should make 3max serial port working. 1999-11-30 01:29:44 +00:00
simonb a23dac53d4 Remove our own atoi() and use libkern's strtoul(). 1999-11-30 00:54:43 +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 465c7f924f Don't use magic numbers! Use XINE_REG_IMSK and KMIN_REG_IMSK. 1999-11-28 08:29:00 +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 d805fbc3b6 Check bounds against RAW_PART instead of partition 0. 1999-11-28 04:55:39 +00:00
simonb 1fcc860815 Enable new pmax bootblocks. 1999-11-28 03:17:11 +00:00
simonb bc7deba55e Bump bootblock version number to 1.2. 1999-11-28 00:40:16 +00:00
simonb 70cbfb6fcd Add CPPFLAGS and set LDSTATIC to -static. 1999-11-28 00:39:30 +00:00
simonb 50b389d4a6 Bootblock installer - based heavily on the alpha installboot but with
some significant differences:
 * Because the pmax bootblocks don't have a fixed load address, we
   need to keep the first stage blocks in /usr/mdec with some sort
   of executable format that includes load and transfer address.
   Since ELF is native, /usr/mdec/bootxx_* are in ELF format and
   installboot (in loadbootstrap.c) needs knowledge of the ELF format.
 * Support for installing the first stage at an arbitiary position.
   -a adds the first stage to end of the "disk" (only on works on
   regular files) and -i <block> puts the first stage at ISO
   filesystem block number <block> for use in multi-arch boot
   CDs (see installboot(8) for more details and an example).
 * No checksum support.  This should really be done in some sort of
   MI way rather than duplicating code between ports' installboot.c
1999-11-28 00:32:29 +00:00
simonb b96c403e14 New alpha-style first stage bootblock Makefiles. 1999-11-27 23:59:15 +00:00
simonb b013ce2a48 Updated for new Makefile.booters and stand/ layout. 1999-11-27 23:57:42 +00:00
simonb 6fb34407ab Update for new alpha-style bootblocks - a good deal of this is based on
the alpha stand/Makefile.bootprogs and stand/Makefile.bootxx.
1999-11-27 23:55:23 +00:00
simonb 42b18ab82a Clean up headers. 1999-11-27 07:07:04 +00:00