mark
9a12d19953
Probe functions rewritten to support new podulebus configuration code.
...
matchpodule() is now used to test podule_attach_args for correct id's.
Fixed compiler warnings generated with -Wall.
1996-04-26 22:38:11 +00:00
mark
4a3ceede5a
Added function prototype for matchpodule().
1996-04-26 22:34:02 +00:00
mark
c18452b410
podulebus configuration code rewritten. Junked config_scan() from
...
the podulebus attach function.
For each podule found, config_found_sm() is now called. Device drivers
now only need to look at the podule_attach_args information during
the probe.
A new function matchpodule() has been added for use in the
podule device driver probe functions.
1996-04-26 22:32:36 +00:00
mark
027b04a250
Fixed compiler warnings obtained with -Wall.
1996-04-26 22:25:56 +00:00
mark
a6da4ae69c
Fixed compiler warnings generated with -Wall.
1996-04-26 22:01:51 +00:00
mark
504699a05d
Added prototypes for cpu_swapin(), cpu_swapout(), tlbflush()
...
cpu_set_kpc() and need_resched().
1996-04-26 21:12:36 +00:00
mark
38b0e06483
Added prototypes for setsoftnet() setsoftast() and setsoftclock().
1996-04-26 21:10:21 +00:00
mark
b2d569c95e
Fixed compiler warnings generated with -Wall.
1996-04-26 21:02:49 +00:00
mark
6a7f88f956
Included sys/systm.h for function prototypes.
1996-04-26 21:00:31 +00:00
mark
aa46efbc0e
Fixed compiler warnings obtained with -Wall.
1996-04-26 20:59:07 +00:00
mark
8b4332315d
Fixed buffering of console output. While cold or while polling,
...
buffering is disabled.
Tidied up a bit of the code inline with kernel coding style.
1996-04-26 20:56:04 +00:00
mark
189e6aba9f
Fixed a multitude of compiler warnings obtained with -Wall (mainly
...
unused variables).
1996-04-26 20:48:23 +00:00
mark
a88f28f958
Updated functions to match prototypes in sys/systm.h
1996-04-26 20:35:23 +00:00
mark
9e67e6e232
Included ddb/db_output.h for db_printf() prototype.
...
Fixec compiler warnings generated with -Wall.
1996-04-26 20:30:54 +00:00
mark
8cce48f9a3
Included ddb/db_output.h for db_printf() prototype.
...
Fixed compiler warnings generated with -Wall.
1996-04-26 20:28:28 +00:00
mark
3b62994c10
Include ddb/db_output.h for db_printf prototype.
...
Replaced some printf calls with db_printf calls.
Fixed compiler warnings generated with -Wall.
1996-04-26 20:25:55 +00:00
mark
bebcb9b554
Removed unused variable ptr in swapconf().
1996-04-26 20:22:52 +00:00
is
a0864f1ad0
Remove double empsc entry, fix a typo, and our "zbus" is a unified Zorro
...
bus interface for a long, long time.
1996-04-26 20:21:59 +00:00
mark
d4fcd14ee3
No longer needed. The netbsd config for gcc/arm has been fixed to generate
...
correct profiling code.
1996-04-26 20:07:43 +00:00
mark
39b959c810
Added copyright message.
1996-04-26 20:05:28 +00:00
chuck
e305bdb71c
switched to MI driver
1996-04-26 19:55:39 +00:00
chuck
08b3f74e0d
nuke old isr structure (no longer use)
1996-04-26 19:44:03 +00:00
chuck
81fc59565a
cpu.h: add prototypes (from jason)
...
disklabel.h: new disklabel format (from Dale Rahn)
param.h: new delay stuff (from sun3 port)
vmparam.h: nuke eiomap for new autoconfig (from jason)
z8530var.h: for MI driver (from jason)
1996-04-26 19:40:53 +00:00
chuck
46263136cb
"jumbo patch":
...
- new autoconfig scheme+vme (autoconf.c,clock.c,clockreg.h,
clockvar.h,vm_machdep.c)
- new interrupt scheme (isr.c,isr.h,locore.s,machdep.c,vectors.s)
- switch to MI zs driver (conf.c)
- new disklabel code, from Dale Rahn <drahn@pacific.urbana.mcd.mot.com>
(disksubr.c, compatable with theo and dale's openbsd version)
- new delay() based on sun3 port, using dynamic configuration from
the sparc port (intergrated by me), calibration moved to startup
by jason. (locore.s,machdep.c)
- clean up: nuke eio space (genassym.c,locore.s,pmap.c,pmap_bootstrap.c),
nuke STACKCHECK (locore.s), prevent maxuser overflow (pmap.c),
Contributed by Jason R. Thorpe <thorpej@og.org> (thanks!)
1996-04-26 19:26:25 +00:00
chuck
6d3c0d5c50
remove iio files; replaced by jason's new autoconfig scheme
1996-04-26 19:04:28 +00:00
chuck
7625dd4cb4
remove mainbus.c: never actually used
1996-04-26 19:03:28 +00:00
chuck
d80422cd46
- zs: switch to MI driver
...
- clock, le, pcc, wdsc, zs: convert to new autoconfig scheme
- vme: add vme support
Contributed by: Jason R. Thorpe <thorpej@og.org>
1996-04-26 18:59:58 +00:00
thorpej
34c1e309b6
Yes, folks, there was a REASON that maxusers -> 32 slipped through the
...
cracks when I mentioned it to Chris. (Read: it doesn't work.)
1996-04-26 18:54:15 +00:00
chuck
ba1034fd85
- sync with new autoconfig code (iio goes away)
...
- add support for zs1, vme devices (untested)
Contributed by: Jason R. Thorpe <thorpej@og.org>
1996-04-26 18:47:34 +00:00
gwr
dd27878e7f
Catch up with some prototype changes.
1996-04-26 18:37:58 +00:00
gwr
035d12359e
Remove some hacks that "went around" the linesw[] operations.
1996-04-26 18:36:54 +00:00
leo
b26b45a14d
Corrections for removed <sys/cpu.h> and some more prototypes.
1996-04-26 06:59:15 +00:00
leo
7f0e5ecf77
- Fixup the ipending function for the Falcon. This seemed to be the source
...
of a lot of instability problems on the Falcon. I also enabled DMA on
interrupt basis for the Falcon.
- Try to handle targets that request too much data more sanely.
- Some fixups for strict prototypes + -Wall
Thanks to Markus Kilbinger for providing the debugging support.
1996-04-26 06:50:12 +00:00
thorpej
2931555121
Correction I mentioned to Chris that slipped through the cracks...
...
maxusers -> 32.
1996-04-26 00:53:08 +00:00
scottr
eb335437e2
Ooops. ncr_sbcreg.h -> sbcreg.h
1996-04-25 23:47:06 +00:00
scottr
90b5a113d9
Renamed the sbc driver files
1996-04-25 22:30:10 +00:00
scottr
aca6a2e6da
Renamed these files.
1996-04-25 22:26:52 +00:00
scottr
95101e1310
Renamed these files.
1996-04-25 22:02:58 +00:00
scottr
a0bca74134
Remove some now-useless code.
1996-04-25 21:18:04 +00:00
scottr
5282131d76
Add ie1, appropriate for EtherExpress support
1996-04-25 20:14:13 +00:00
thorpej
09407a4201
Document the VM86 option by adding it to the GENERIC* kernel config
...
files. Note, the option is disabled by default (comment out). This
is meant as an example for others.
1996-04-25 18:59:14 +00:00
is
07beed1117
Fix an obvious typo (wrong sign of test). At the same time, make the early
...
probe printf prefix unambiguous.
1996-04-25 18:54:45 +00:00
scottr
18fd76201e
We don't need to enforce the MAX_DMA_SIZE limit in dma_alloc();
...
this is handled properly by sbc_drq_intr() already.
1996-04-25 14:40:26 +00:00
mycroft
f1f45fae7c
Emulate the INTO instruction.
1996-04-25 13:50:21 +00:00
scottr
2e936aa8ff
- Remove several hacks that didn't do much but waste cycles.
...
- Disable interrupt-driven PDMA when writing (use polled PDMA instead).
- Be more careful about when to flag a transfer as completed.
The result of these changes is that interrupt-driven PDMA works well
enough to bring the system up.
1996-04-25 06:18:41 +00:00
veego
f726c602da
another prototyp cleanup
1996-04-25 05:57:38 +00:00
cgd
72e70ce045
update for present reality
1996-04-25 04:28:04 +00:00
thorpej
aff40e2a72
Break up the ep driver into isa, eisa, and pci front-ends and a
...
bus-independent core driver. Tested on all three bus types, including
an isa 3c509 masquerading as an eisa device (use ep* at eisa? slot ? in
your kernel config file to catch this one).
XXX Driver still needs to be converted to <machine/bus.h>
1996-04-25 02:15:42 +00:00
christos
b8a3e738c6
Make the minimum function signature for this file to compile with the latest
...
changes to vm_extern.h.
1996-04-25 01:15:41 +00:00
cgd
3e07e4275a
clean up and improve instructions, update to reflect current reality.
1996-04-25 00:11:09 +00:00
scottr
424ce7590a
Sync with prototype changes
1996-04-24 18:02:26 +00:00
is
09916f81d3
Make the Amiga mainboard mice, which used to be pseudo-devices, real devices.
...
(We want to support Amigoids without this interface in the near future.)
1996-04-24 11:41:16 +00:00
christos
0ca6a87952
Remove memset.c; it is not currently used, and .c files should belong in
...
the MI portion of libkern. When/if we move to use mem* routines in the kernel
we can add it to the MI portion/write a memset.s.
1996-04-23 23:05:22 +00:00
veego
463c504dc7
The prototyp for cpu_set_kpc is now in sys/systm.h
1996-04-23 22:54:49 +00:00
veego
112379ef29
Added some ifdef's for RETINA_SPEED_HACK
...
Argh, why is a fuction from the RetinaZ2 console driver in the console
driver for the RetinaZ3 ? Fixed.
Fixed some warnings from -Wall if you don't use -DDEBUG
1996-04-23 22:53:05 +00:00
veego
1ca9fb10a0
The prototyp of cpu_coredump is now in sys/signalvar.h
...
Added an ifdef DEBUG for struct phys_segs
1996-04-23 22:46:39 +00:00
pk
646acc51d0
Map the pixels explicitly on the VME32 bus.
1996-04-23 19:34:05 +00:00
pk
ee8f3dc1b8
Turn delay() into a calibrated loop. It's more accurate and compiles into
...
a `leaf' routine, avoiding unexpected large delays by overflowing the
register windows.
1996-04-23 19:25:25 +00:00
is
0536f1591a
Protect two critical lines of ser.c with splser(). Without this, a
...
race condition exists which makes the internal serial drop incoming
characters under heavy load.
1996-04-23 17:03:04 +00:00
is
5b809af42a
Changed the speed calculations of the Amiga-builtin-serial driver to
...
allow any baudrate the hardware allows, and to forbid two baudrates
(50 and 75) which the hardware does NOT support but which the old
speed conversion table pretended to support.
1996-04-23 16:38:32 +00:00
chuck
edda199ab0
patch from: Steve Woodford <steve@mctavish.demon.co.uk>
...
fixes the following problems:
- Timeout on START/STOP unit command (ie. when spinning up the drive)
Side effect of this fix is to reduce the busy-wait time in CMD phase.
- Occasionally, the driver would lose an SBIC interrupt, especially when
a tape drive was re-selecting on a busy SCSI bus.
1996-04-23 16:32:54 +00:00
cgd
7bc9a18250
prototyping cleanups
1996-04-23 15:26:06 +00:00
cgd
58a104f26a
pal_halt doesn't return; give it a noreturn attribute.
...
Mark assembly that uses 'mb' as clobbering memory (pthreads does, and
it can't hurt).
1996-04-23 15:24:09 +00:00
cgd
5437babf6c
prom_halt doesn't return; give it a noreturn attribute
1996-04-23 15:23:18 +00:00
scottr
27c9c12e72
Clean up sbc_drq_intr() a bit; also, be more paranoid about size of transfer.
1996-04-23 14:20:28 +00:00
cgd
59cdf4331e
clean up some, and use new sioreg.h
1996-04-23 14:15:55 +00:00
cgd
8253c155fe
hanges from Trevor Mendez <tmendez@bbn.com> to use new sioreg.h
...
header. Also, I moved the LCA_SIO_DEVICE definition higher up in the
file.
1996-04-23 14:15:28 +00:00
cgd
84da7b5f97
Intel 82378 System I/O (SIO) Chip register defintions, cleaned up a
...
bit from a version supplied by Trevor Mendez <tmendez@bbn.com>.
1996-04-23 14:10:53 +00:00
cgd
e9bbf69ff6
Changes from Trevor Mendez <tmendez@bbn.com> to add definitions of a
...
couple of registers useful for debugging.
1996-04-23 14:03:46 +00:00
cgd
fea5e372e6
Corrections from hardware manual, from Trevor Mendez <tmendez@bbn.com>.
...
Adds comments and sets IOC_CONF correctly (it's write-only!).
1996-04-23 14:00:53 +00:00
cgd
d8adbe4247
Changes from Trevor Mendez <tmendez@bbn.com> to make this compile
...
with NWSCONS == 0.
1996-04-23 13:57:55 +00:00
cgd
0895b8dd09
Changes from Trevor Mendez <tmendez@bbn.com> to print 0x's before hex
...
numbers when panic()ing because of a machine check, for sanity.
1996-04-23 13:54:32 +00:00
christos
a818b81625
Added missing prototypes from <sys/cpu.h>
1996-04-23 12:25:23 +00:00
leo
df8c6afda1
Ignore joystick packages when running in 3b. emulation mode.
1996-04-23 11:02:01 +00:00
mycroft
d15c34d744
Prototype futimes().
1996-04-23 10:29:33 +00:00
mycroft
584810c846
Implement futimes().
1996-04-23 10:29:02 +00:00
mycroft
7ee33b9890
Regen.
1996-04-23 10:27:28 +00:00
mycroft
af747826c6
Add futimes(), at position 206.
1996-04-23 10:24:21 +00:00
veego
5bdb632088
u_int -> u_long fixes for printf's
1996-04-23 05:18:29 +00:00
veego
d9b8ec83bd
Ups, I removed a label which should go into a ifdef
1996-04-23 05:14:40 +00:00
scottr
509ace1016
Handle internal video interrupts on RBV-based machines differently so
...
that Ethernet cards have a chance to work. In particular, this change
has been tested on the IIci, IIsi, and LCIII. The crucial info behind
this code was the result of a lot of work by Julian Bean.
1996-04-23 03:53:26 +00:00
abrown
6b768c677a
Now that we have lehwinit() for the Sun4m, make sure that we wait 20ms
...
after changing the cable type, as specified in the chip documentation.
Also, sanity-check that sc_dma is valid in case a Sun4m ever exists without
a ledma.
1996-04-22 03:57:29 +00:00
christos
b57c554d06
Add a hardware dependent initialization function lehwinit()
1996-04-22 02:53:28 +00:00
christos
90bc31d478
remove include of <sys/cpu.h>
1996-04-22 02:50:20 +00:00
christos
a897ec996a
Remove dependency on <sys/cpu.h>
1996-04-22 02:42:00 +00:00
christos
b016bd441a
Add a hardware dependent initialization function lehwinit()
1996-04-22 02:40:49 +00:00
christos
bebf990150
Oops the name of the UTP/AUI bit changed under me...
1996-04-22 02:39:49 +00:00
christos
5253b892e9
Add a hardware dependent initialization function lehwinit()
...
to support selecting UTP media on sun4m
1996-04-22 02:37:10 +00:00
abrown
709298a10a
- Changed Sun4m DMA chip support to detect and use maximum available SBus
...
burst size when transferring data.
- Changed ledma attach code to pay attention to the PROM's notion of what
cable type is being used. Note that this patch does not fix the problem
recently discussed on port-sparc; in most cases the PROM doesn't know
what cable type is being used. The default is now TP rather than AUI,
though. A complete fix is forthcoming.
1996-04-22 02:34:53 +00:00
christos
78403e6c0c
Add a hardware dependent initialization function lehwinit()
1996-04-22 02:25:54 +00:00
christos
ffd5576439
remove include of <sys/cpu.h>
1996-04-22 01:44:31 +00:00
christos
261b2f7f02
fix a printf format string
1996-04-22 01:43:45 +00:00
christos
4ef330b934
remove include of <sys/cpu.h>
1996-04-22 01:38:12 +00:00
christos
cee6ac0ce3
remove sys/cpu.h
1996-04-22 01:26:39 +00:00
christos
93ee03dff9
add prototypes from <sys/cpu.h> to the appropriate places
1996-04-22 01:23:06 +00:00
christos
8d33c5c8b4
- Fix fencepost error in ifconf() where if space = n * sizeof(struct ifreq),
...
only n - 1 interfaces would be obtained. This bug is present in the Lite2
sources too.
- Support COMPAT_SVR4 in ifconf()
1996-04-22 01:20:34 +00:00
christos
efc7b8aec4
- don't use if_index to get the number of interfaces in SIOCGIFNUM; compute
...
the actual number.
- forgot to copyout the result in SIOGCIFFLAGS.
1996-04-22 01:17:33 +00:00
christos
02f94c17fb
Add SI_SYSTEMINFO from Solaris-2.5
1996-04-22 01:16:04 +00:00
veego
a922ebfb8b
- Cleanup for -Wall and -Wstrict-prototypes
1996-04-21 21:13:16 +00:00
veego
974e9f6e22
- Cleanup for -Wall and -Wstrict-prototypes
...
- Added support for multiple floppy drives
- CyberVision64:
- has now a real console mode
- another bugfix for boards with the new S3 chip
- Ariadne:
- fixed crashes with aeput (mbuf failure)
1996-04-21 21:10:48 +00:00
veego
dbf4b28b74
Added support for multiple floppy drives
...
Added entry for the emplant scsi driver
1996-04-21 21:09:40 +00:00
veego
db6f1b1304
Cleanup for -Wall and -Wstrict-prototypes
1996-04-21 21:06:46 +00:00
ghudson
585e1044c8
aic0 belongs at IRQ 11 (the card default); the entry was apparently
...
changed to 12 by mistake when GENERIC was created after NetBSD 1.0.
Change confirmed by Perry and several others. Fixes PR 1878.
1996-04-21 20:55:25 +00:00
leo
18dd6b0909
Prototypes.
1996-04-19 20:35:31 +00:00
leo
f4e4aeed3c
Check for curproc being NULL in pmap_remove().
1996-04-19 20:33:01 +00:00
mark
d4d9deb9d7
Added facility to dump the SCSI information from the asc driver.
1996-04-19 20:15:36 +00:00
mark
e59df39537
Added asc_dump() function to dump the information gathered by the sbic
...
driver.
1996-04-19 20:13:56 +00:00
mark
0d0b8de238
Code fixes to get the sbic debugging code to compile.
1996-04-19 20:09:50 +00:00
mark
0e486086a5
Added information of the iic and rtc devices.
1996-04-19 20:04:29 +00:00
mark
7bbb222f40
Raise the spl level to spltty while manipulating the virtual console
...
linked lists.
A couple of minor code cleanups.
1996-04-19 20:03:37 +00:00
mark
c771d9f6c3
Config files updated for the new iic and rtc devices.
1996-04-19 20:00:41 +00:00
mark
584d8e9b80
Updated to reflect removal of iic and rtc code from arm32/ and the
...
creataion of the iic and rtc devices.
1996-04-19 19:57:49 +00:00
mark
a65bd66705
Header file for IIC structures, prototypes and ioctls.
1996-04-19 19:52:46 +00:00
mark
e51f620a83
Added IIC information for the PCF8583 RTC chip.
...
Added #ifdef guard on rtc prototypes.
1996-04-19 19:51:48 +00:00
mark
0b22968311
Initial commit of iic and rtc devices.
1996-04-19 19:49:03 +00:00
mark
ab4a325e4c
The iic and rtc are now devices and have been rewritten ane moved to the
...
mainbus directory.
1996-04-19 19:43:31 +00:00
mark
11fb5f4ba0
Added configuration information for character devices iic and rtc.
1996-04-19 19:40:29 +00:00
mark
85d47049cc
Don't report time or 'clock has gain ...' message if the base time
...
was 0 in the inittodr() function.
1996-04-19 19:39:17 +00:00
christos
3c0096ff79
gcc -Wall delinting: unused variables, assignments inside if's and missing
...
arguments in printf statements.
1996-04-19 00:02:29 +00:00
christos
d7b610dca6
Fix 3c590 to use the new pci interface; the pci compat code changes were
...
slightly biffed.
1996-04-19 00:01:19 +00:00
mycroft
901483b57b
Sigh. Send a trace trap only if we are still in VM86 mode.
1996-04-18 21:21:11 +00:00
mycroft
15d4e17598
Send a trace trap only if the trace flag is set at the *beginning* of
...
the emulated instruction.
1996-04-18 20:36:35 +00:00
mycroft
204542255a
After an emulated instruction, check the trace flag and force a trace
...
trap if needed.
1996-04-18 19:58:09 +00:00
chuck
442dec5d53
new driver: SCSI for VME147
...
contributed by: Steve Woodford <steve@mctavish.demon.co.uk>
this driver is based on the amiga sbic/33C93 driver. Steve has
cleaned it up and fixed lots of bugs. Note that the original driver
used features which require at least a WD33C93A (the vme147 has the
original WD33C93 chip <no 'A' suffix>). Steve has also written
the DMA routines for the 147 to get things really going. Hardware
scatter-gather DMA and sync. SCSI are not supported (yet). tested
on several disk drives and a tape drive. CD-ROM untested, but
should work.
1996-04-18 18:30:49 +00:00
chuck
da32bd7fed
add wdsc, enable FFS, move le
1996-04-18 18:14:32 +00:00
chuck
f56be1680c
add wdsc device
1996-04-18 18:07:58 +00:00
chuck
a574a3a423
add PCC_ICLEAR
1996-04-18 18:07:08 +00:00
chuck
94b120dfa8
add a "delay" function.
...
XXX: assumes vme147 speed. needs to be fixed and sync'd with DELAY.
[will work with jason/hp300 to fix it properly]
1996-04-18 18:06:30 +00:00
chuck
dbc3478277
establish a dk_establish() function.
1996-04-18 17:43:04 +00:00
mycroft
47bf863ac1
Make some of the flag handling clearer. No functional change.
1996-04-18 10:04:32 +00:00
mycroft
aaed1c2fae
Don't bother to enable alignment checking; nobody uses it and it interferes
...
with VM86 mode.
1996-04-18 09:58:13 +00:00
leo
b3fadef7e0
Yet more prototyping and -Wall fixes.
1996-04-18 08:51:11 +00:00
mycroft
7a8c8f8a5c
Turn off the alignment check flag when entering a signal handler.
1996-04-18 08:36:20 +00:00
cgd
7458364702
Implement the I/O read/write-multiple functions for chipsets
...
that use this file (APECS, LCA, and CIA).
1996-04-18 05:53:04 +00:00
cgd
ff0a52ccd9
define bus_io_{read,write}_multi_{1,2,4,8} functions, which read/write
...
multiple values from a single I/O port in to/out of an array of values.
1996-04-18 05:47:29 +00:00
cgd
4a134a0780
don't include user-land headers in libkern files when compiling for
...
the kernel.
1996-04-18 02:19:59 +00:00
cgd
1813cc71d0
don't include user-land headers in libkern files when compiling for
...
the kernel. memset.c does not belong here. it either belongs in
the MI libkern directory, or does not belong in libkern at all.
1996-04-18 02:19:07 +00:00
cgd
55afd9912f
don't get rid of the -D_KERNEL in KERNCPPFLAGS
1996-04-18 02:14:48 +00:00
cgd
a5dc646be0
use assembly version of strcat (copied down from libc)
1996-04-18 01:53:04 +00:00
cgd
720c148692
remove unnecessary header inclusion (machine/autoconf.h) and now-bogus comment.
...
also, trim spaces at ends of lines, etc.
1996-04-18 01:12:41 +00:00
cgd
e27e15d0ac
change NLE flag for IOASIC LANCE buffer to NLE_IOASIC, and add comments
1996-04-18 00:59:11 +00:00
cgd
03d386daa7
attach le with different attributes, depending on parent (i.e. tc or
...
ioasic), and use those attributes to pull in appropriate files.
le_ioasic now has needs-flag, but le doesn't; the flag is only necessary
on systems configured with IOASIC-attached LANCE chips.
1996-04-18 00:55:15 +00:00
cgd
f8073d3675
restructure to take advantage of config's (relatively) new 'attach'
...
specifiers. Many #ifdefs and much other nastiness removed.
1996-04-18 00:50:11 +00:00
cgd
d7d306aeb7
change LANCE copy & zero functions' names to start with amd7990_, and
...
remove their 'integrate' (usually defined to be 'static') keywords.
when lance drivers are split up by attachment, more than one file will
reference the copy/zero functions (i.e. not just the file that pulls in
am7990.c... and eventually inclusion of am7990.c should go away entirely).
1996-04-18 00:25:11 +00:00
cgd
eccf43e127
files copied from libc
1996-04-17 22:46:34 +00:00
cgd
17731baa0d
fix copyrights
1996-04-17 22:22:32 +00:00
cgd
69ad2e587b
ioasic doesn't need a flag, and correctly conditionalize inclusion of
...
machines' tc configuration files.
1996-04-17 22:08:29 +00:00
cgd
71c7924099
clean up clock handling: clock drivers are now seperate from the
...
chip-independent clock code. 'clock' has been renamed 'mcclock' 'clock'
has been renamed 'mcclock' (since it's a driver for that particular
clock, and since eventually there may be another clock chip driver),
and now attaches via seperate match/attach functions to both TC and ISA.
This removes a whole lot of #ifdefs...
1996-04-17 22:01:16 +00:00
cgd
a5778ae63b
print cpu names slightly differently (number first)
1996-04-17 21:50:56 +00:00
cgd
0b0a8bfe15
fix bug in pcivga_erasecols() that would cause garbage to be spit out.
...
other minor style cleanup.
1996-04-17 21:49:58 +00:00
cgd
d727565526
fill in the tty window size information, so that standard terminal
...
entries can be used with weird displays.
1996-04-17 21:48:30 +00:00
thorpej
b417cc19fe
Make this compile again on a SPARC if NFSCLIENT is defined without
...
NFSSERVER. (-Wall unused variable lossage)
1996-04-15 20:20:00 +00:00
cgd
60add3dea0
update for current state
1996-04-15 19:00:46 +00:00
cgd
1bd905d710
include <sys/termios.h> to make <dev/isa/comvar.h> happy, and set the
...
serial ('com') console bit size and parity to be "cs8 -parenb".
1996-04-15 18:58:20 +00:00
cgd
a610e9d471
include <sys/termios.h> to make comvar.h happy
1996-04-15 18:55:23 +00:00
cgd
b6549d493d
define and export the global variable "comconscflag", the default tty
...
'cflag' for the console. Normally set to TTYDEF_CFLAG, may be
overridden by machine-dependent console attachment code, as necessary.
(Alpha uses it to set cs8 -parenb.) Files including comvar.h now
need to include <sys/termios.h>, because comconscflag is of type
tcflag_t.
1996-04-15 18:54:31 +00:00
is
a5ba4721eb
Don't even check the not-yet-initialized mbuf pointers for being !=
...
NULL in the error exit code of arc_output(), else we see random data
and try to m_freem() it, panic'ing the machine.
1996-04-15 14:01:25 +00:00
mycroft
e0afa4e4f9
Don't turn off the trace flag here; let sendsig() do it.
...
If in Linux emulation, send SIGSEGV for protection faults, rather than SIGBUS.
1996-04-15 00:20:32 +00:00
jonathan
274c2bd80d
Add a prototype for generic_intr_establish(), the bus-independent
...
pmax interrupt-establish function.
1996-04-14 00:58:21 +00:00
jonathan
28986d8126
Add cdev_decl() declarations for the "dtop", "fb" , and "rcons" drivers.
1996-04-14 00:56:59 +00:00
jonathan
4a04d76c65
Fix the definition of TC_PHYS_TO_UNCACHED(addr): make it change a mips
...
kernel addressed to uncached space.
Add prototypes for pmax-specific TC functions used in probing for
a framebuffer console.
1996-04-14 00:55:19 +00:00
scottr
ff35ddbb2a
Update makeoptions to include 881 support
1996-04-13 19:12:46 +00:00
abrown
a0b7376b16
Add prototype and fix return type of blink() so "options BLINK" works
...
with -Wall -Werror
1996-04-13 17:40:03 +00:00
cgd
7e4d04910d
fix screw-up in the prototyping changes: print pointers with %p, NOT
...
by casting them to (unsigned int) then printing with %x.
1996-04-13 01:34:06 +00:00
cgd
e70b1375c9
add strncasecmp.c to ports' libkern Makefile.inc's. When adding a new
...
source file to libkern, it should be added to _ALL_ ports makefiles if
it is machine-independent and used by machine-independent code (in
this case adosfs). (There are several arguments that say that
strncasecmp should not be in libkern at all, and i think they're
good ones, but as long as ADOSFS needs it to link, it has to be here
for all architectures.)
1996-04-13 01:17:27 +00:00
cgd
98d92322b1
update for recent config changes: xxcd -> xx_cd
1996-04-13 00:31:37 +00:00
cgd
cad6c2d600
capitalize IRQ names here, to match what's reported on boot
1996-04-13 00:25:24 +00:00
cgd
21ac0b2a36
update for new ISA/EISA/PCI/'bus' interfaces. Untested
1996-04-13 00:24:30 +00:00
cgd
161623e54e
add (untested) support for EISA busses hanging off of PCEBs.
1996-04-13 00:23:34 +00:00
cgd
f32c94e82c
note that these IRQs are ISA IRQs
1996-04-13 00:22:58 +00:00
cgd
c0b2b5595c
Replace with completely new version derived from APECS code. No serious
...
bugs to fix (that i know of), just doing it that way was easiest.
1996-04-12 23:37:10 +00:00
cgd
56a6e33bb6
"Do over." Throw the old file away, replace it with a version hacked
...
from the current apecs_pci.c. This new version hopefully works for
the same sets of devices that that previous one did, and hopefully
will work for multi-function devices and for secondary PCI busses as
well. (looking at the code, there was no way the old one could have!)
1996-04-12 23:27:05 +00:00
thorpej
e408d7413a
Fix __sysctl() to return the proper value to the caller, to match
...
documented behavior. sysctl(3) is documented to return 0 on success,
-1 on failure. The previous behavior was to return -1 on failure
and the number of bytes copied back down to user space.
Fixes part of PR #1999 , from Kevin M. Lahey <kml@nas.nasa.gov>
1996-04-12 23:21:37 +00:00
cgd
435c2f935e
config first, so there's someplace to cd to.
1996-04-12 20:27:42 +00:00
cgd
ae42d9fdbd
oops; forgot to remove a line of debugging/testing code
1996-04-12 20:22:14 +00:00
leo
6e40f439fc
Part of restructuring done for 3-button mouse support.
1996-04-12 19:55:28 +00:00
chuck
4d91dc7c18
pull in ieeefp.h from m68k common area
1996-04-12 18:38:00 +00:00
chuck
c7a59b578d
sync with sun3 version
1996-04-12 18:35:40 +00:00
chuck
4420159d4c
fix warning from gcc
1996-04-12 18:33:59 +00:00
jonathan
f0d175fd22
Commit version that _really_ has only the innocuous fixes in the
...
last CVS message.
Possible uninitialized use of variables in the SII state machine,
requiring more thought, are still present.
1996-04-12 18:22:35 +00:00
jonathan
f6897c8eb6
fixes for -Wall -Wmissing-prototypes:
...
pass 1 over pmax SII driver: change "MachEmptyWriteBuffer()" to
"wbflush()", add prototyped forward declarations.
1996-04-12 18:15:23 +00:00
leo
658385632c
Prototyping.
1996-04-12 09:05:14 +00:00
leo
e7ad591a96
misc.c ->stalloc.c
1996-04-12 08:57:43 +00:00
leo
7a18bb9542
Just give them more descriptive names.
1996-04-12 08:46:44 +00:00
mycroft
ad790f628e
Turn off the trace flag when delivering a signal.
1996-04-12 08:44:35 +00:00
leo
9402dcae81
Add 3-button mouse support.
1996-04-12 08:39:22 +00:00
leo
e4a9d09efb
Add 3-button mouse support.
1996-04-12 08:37:03 +00:00
leo
7ff219ef0d
Add some prototypes.
1996-04-12 08:30:09 +00:00
cgd
432b9ff657
add support for the alpha
1996-04-12 06:34:36 +00:00
cgd
576c769331
clean up copyrights and RCS IDs
1996-04-12 06:07:05 +00:00
mycroft
035e9c211e
Use the flag mask in a somewhat more sane fashion.
1996-04-12 05:57:43 +00:00
cgd
eb4de32615
Set up and pass isa chipset tag to ISA bus, when attaching.
...
Should do the same for EISA, when that support is finished.
1996-04-12 05:43:02 +00:00
cgd
98c183ff49
remove (hack) version of isa_intr_establish()
1996-04-12 05:41:50 +00:00
cgd
69d8f0e09a
define all of the appropriate functions, as indirections through
...
a function switch.
1996-04-12 05:39:02 +00:00
cgd
0da2610536
this file is no longer used
1996-04-12 05:35:51 +00:00
cgd
931ec3829c
partially update for new ISA/EISA/PCI and 'bus' interfaces. not yet
...
complete, or tested.
1996-04-12 04:40:49 +00:00
cgd
c6af4505f1
implement 'bus' functions for the CIA chipset.
1996-04-12 04:40:01 +00:00
cgd
647469cfbc
update for new ISA/EISA/PCI and 'bus' interfaces.
1996-04-12 04:38:33 +00:00
cgd
125eefcd67
implement APECS and LCA 'bus' functions, and share them between the
...
two chipsets, since they're the same.
1996-04-12 04:36:12 +00:00
cgd
04645aa7ad
chipset 'bus' functions that seem to be common to all host bus
...
adapters that exist in single-CPU systems. APECS, CIA, and LCA
all use this, but with different #defines.
1996-04-12 04:34:59 +00:00
cgd
ba7bbf8c30
update for new PCI, etc., interfaces
1996-04-12 04:33:06 +00:00
cgd
be813334f8
(mostly) update for new PCI and 'bus' interfaces.
1996-04-12 04:32:10 +00:00
cgd
b26a595361
update for new PCI, etc., interfaces.
1996-04-12 04:31:48 +00:00
cgd
caa9d61d58
add indirect register definitions.
1996-04-12 04:31:08 +00:00
cgd
7b08107723
update for new PCI code, etc. As yet, untested.
1996-04-12 04:30:11 +00:00
cgd
f357f1b38a
partially update for new PCI & bus macros. update to deal with new
...
console glue. Split out RAMDAC-specific code into seperate files.
1996-04-12 02:13:09 +00:00
cgd
a52d1c3efe
clean up for new ISA and 'bus' code, etc.
1996-04-12 02:11:22 +00:00
cgd
c2ca361599
update for new ISA & PCI code, etc.
1996-04-12 02:09:51 +00:00
cgd
706b61a9a3
add some sanity checks to avoid lossage when dealing with unmanaged
...
pages, and clean up a little bit.
1996-04-12 02:09:24 +00:00
cgd
de1319f259
define delay() here, rather than in clock.c
1996-04-12 02:07:52 +00:00
cgd
92c3ba0426
new entries for keyboard, mouse, and parallel printer
1996-04-12 02:07:23 +00:00
cgd
99841b9cdd
cast return of phystok0seg() to a caddr_t, to suit uiomove proto
1996-04-12 02:06:21 +00:00
cgd
73378c1529
add rpcc entry point
1996-04-12 02:05:48 +00:00
cgd
26bf14c6fe
update for new ISA & bus code, and clean a bit
1996-04-12 02:05:14 +00:00
cgd
f0a062ba62
replaced by files in ../wscons
1996-04-12 02:02:06 +00:00
cgd
89579980e6
this has moved to ../include
1996-04-12 02:01:51 +00:00
cgd
7a58e4fe08
"workstation console glue." glass tty code, console emulation,
...
keyboard and mouse interfaces, etc. Mostly grabbed from the sparc,
and adapted and trimmed where appropriate.
1996-04-12 02:00:42 +00:00
cgd
607fdc7ab6
(incomplete) machine-dependent ISA definitions.
1996-04-12 01:57:42 +00:00
cgd
42362ab7a1
PC timer definitions
1996-04-12 01:54:56 +00:00
cgd
da4d801b40
speaker (PIT AUX port) definitions
1996-04-12 01:54:46 +00:00
cgd
c032474c02
add CMU copyright notice
1996-04-12 01:54:04 +00:00
cgd
7aadd7593f
support for PS/2-style mice
1996-04-12 01:53:06 +00:00
cgd
1c35246b36
update for bus.h, add support for X, and provide use of the bell.
1996-04-12 01:52:45 +00:00
cgd
0e6af1ab55
keyboard and frame buffer interface include files, grabbed from the
...
sparc with minimal modifications, to make X go. Should really be
trimmed down to include only the relevant information.
1996-04-12 01:45:41 +00:00
cgd
b6e9f99e08
TGA reg defns, moved here from ../pci for X. doesn't really belong here
1996-04-12 01:44:23 +00:00
cgd
59ca8b07e6
header which defines 'workstation console glue' ioctls
1996-04-12 01:43:06 +00:00
cgd
0af73c4da4
alpha sysarch header. right now, only defines (inline) alpha_rpcc()
1996-04-12 01:42:45 +00:00
cgd
a37e40ef1b
the Alpha implementation of <machine/intr.h>
1996-04-12 01:42:17 +00:00
cgd
84b2d703c7
the Alpha implementation of <machine/bus.h>
1996-04-12 01:39:34 +00:00
cgd
b151b7e326
these have moved elsewhere
1996-04-12 01:38:51 +00:00
cgd
0e1f086279
add XOPEN constants, clean up
1996-04-12 01:38:25 +00:00
cgd
4bdd407757
update copyright
1996-04-12 01:36:51 +00:00
cgd
f695b5badd
use jmp, rather than br, in the JMP macro
1996-04-12 01:35:58 +00:00
cgd
1d001142a9
don't forget dkcksum.c, now that it's seperate
1996-04-12 01:35:15 +00:00
cgd
29fe6c8918
clean up a lot, make work with outline mode, and switch functions:
...
build now builds from scratch, rebuild just runs make.
1996-04-12 01:33:40 +00:00
cgd
9e1fc3f99c
kill this; more trouble (for more people) than it was worth
1996-04-12 01:32:54 +00:00
cgd
ba87ccc479
update for latest MI TC and SCSI code, and clean up in the face of
...
config changes.
1996-04-12 01:31:43 +00:00
cgd
7128b7a114
i no longer can do anything with macallan, so kill its kernel config.
...
However, Jason has a turbochannel alpha, so add its config file.
1996-04-12 01:21:43 +00:00
cgd
34e27f0c56
update for present alpha reality:
...
add drivers for ps/2-style mice (on the PC-ish alphas), and for the
workstation console glue code. also, update for config changes, etc.
1996-04-12 01:20:40 +00:00
cgd
51e85d07b9
update for addition of a machine-dependent cookie as the first argument
...
to isa_intr_{,dis}establish().
1996-04-11 22:27:59 +00:00
cgd
e6456e7285
on non-i386 systems, include <machine/intr.h> (per charles's proposal on
...
tech-kern (?)), to get the IPL_* and IST_* types. pass the machine-dependent
cookie given at attach time on to sub-devices, so they can use it to access
the interrupt functions properly.
1996-04-11 22:25:44 +00:00
cgd
a391172983
include a machine-specific header from ARCH/isa/isa_machdep.h, to define
...
the isa_chipset_tag_t type, and to define or prototype:
isa_attach_hook()
isa_intr_establish()
isa_intr_disestablish()
i.e. the machine-dependent functions to be used my MI ISA code.
Remove prototypes for the latter two functions from this file.
1996-04-11 22:20: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
5007f5e246
pass a new, machine-dependent cookie, in the ISA bus attach arguments.
...
On the i386, this is always NULL, and is unused.
1996-04-11 22:13:37 +00:00
cgd
8f40bb43a8
add an isa_attach_hook() function which currently does nothing, and update
...
isa_intr_establish() and isa_intr_disestablish() to take an opaque cookie
as their (new) first argument.
1996-04-11 22:11:32 +00:00
cgd
f3b97d1287
prototype MD functions for use by MI ISA code (isa_attach_hook(),
...
isa_intr_{,dis}establish()) here. Make this file safely includable by
<dev/isa/isavar.h> and by all of the places in the i386 that are currently
including it, which means multiple inclusion protection and a few
otherwise-extraneous 'forward' structure declarations. isa_intr_establish()
and isa_intr_disestablish() now take as their first argument a
machine-dependent cookie of type isa_chipset_tag_t, which is also defined
here.
1996-04-11 22:10:11 +00:00
cgd
01c4e7fb64
include raster_op.c and raster_text.c if 'raster' is defined, as well
...
as if 'rasterconsole' is defined. Alpha uses 'raster' to pull in the
raster text and operation code, but doesn't use this console emulator,
etc.
1996-04-11 21:54:38 +00:00
thorpej
b3897170bd
Haven't used "options RCONSOLE" for a long time. Update to the new
...
"options RASTERCONSOLE". Noticed by cgd.
1996-04-11 21:54:13 +00:00
thorpej
e17cddf913
If the power device is configured, don't forget to compile the driver.
...
Also, add some whitespace for readability.
1996-04-11 21:05:42 +00:00
thorpej
41a08fd254
Include fdc.h, not fd.h, due to change in files.sparc.
1996-04-11 19:20:03 +00:00
christos
5fda4b10a2
- small ioctl naming changes.
...
- pass ioctl fd explicitly.
1996-04-11 12:54:40 +00:00
christos
3b309224fd
- Pass ioctl file descriptor explicitly.
...
- some 'T' ioctl's are for streams, call the stream function in the default case
1996-04-11 12:53:48 +00:00
christos
4a0b33e910
Handle different address families, and in particular AF_UNIX.
1996-04-11 12:52:41 +00:00
christos
8edeaa1f71
Add accept message
1996-04-11 12:52:03 +00:00
christos
d37bbda397
- keep the address family in the global state, now that we are using it.
...
- add netaddr_un
1996-04-11 12:50:31 +00:00
christos
0a8a2051dc
- Make unix domain sockets work.
...
- Implement GETSOCKNAME and GETMYNAME
- Implement getmsg(ACCEPT) [incomplete]
- Implement LISTEN [incomplete]
There are too many changes in the code, this is why the incomplete checkpoint.
1996-04-11 12:49:13 +00:00
christos
8294057bdb
Svr4 does not have unix domain sockets; it emulates them with mode 0 named
...
pipes. Emulate that behavior, by telling svr4 we've found mode 0 named pipe
when we find a unix domain socket. Also record the name and device,inode
pair of sockets found.
1996-04-11 12:46:41 +00:00
christos
dcf6c8ee56
New files to provide a device,inode -> pathname mapping for unix domain
...
sockets. This is needed for putmsg(2)
1996-04-11 12:43:29 +00:00
christos
260951021b
Use uprintf instead of printf for debugging. Lot's of printing causes panics
...
on the sparcs, and even if that was not the case, you end up losing text.
1996-04-11 12:41:25 +00:00
mrg
2a0a8867ae
fix long-time bug in fdesc -- /dev/tty was a named pipe rather than a
...
mirror image of the real /dev/tty, a char dev. make it a char dev.
1996-04-11 11:24:29 +00:00
mycroft
c8ab43244b
Actually keep track of the naughty PSL bits.
...
Use VIF, rather than IF, by default, to be compatible with dosemu. XXXX
1996-04-11 10:07:17 +00:00
mycroft
48643c6605
Export [gs]et_vflags(), and always use them when saving/restoring registers
...
in VM86 mode.
Allow changing of *all* PSL bits in VM86 mode; some applications don't work
right otherwise, and all the nasty bits are virtualized anyway.
Make sure PSL_VIF, PSL_VIP, and PSL_VM don't show up in the user's view of
the PSL.
1996-04-11 07:47:33 +00:00
mycroft
b61f5e52cd
Set the flag mask earlier.
...
Use SS_ONSTACK, not SA_ONSTACK.
1996-04-11 05:11:03 +00:00
mycroft
ff8268cfea
Fix a couple of 16-bit extension errors.
1996-04-11 03:21:42 +00:00
cgd
789a455ab4
if no DDB, define Debugger() to be a panic.
1996-04-10 23:01:13 +00:00
gwr
32d12d3be4
Make the ring size configurable in the tty driver.
...
Make the pseudo-interrupt functions return void.
Call the tty layer at spltty (to be safe).
1996-04-10 21:44:35 +00:00
pk
c0919485d4
Move some of the SCSI target juggling to autoconf's fake_bootpath() routine.
...
Fix incorrect interpretation of bootpath's val[2] as a SCSI unit.
1996-04-10 20:48:35 +00:00
pk
e4394459a1
`bootdv' is gone. Instead, set the device pointer in the `struct bootpath'
...
that is passed in the attach arguments.
1996-04-10 20:46:05 +00:00
pk
c28fcc3539
Use extra value in `struct bootpath' to describe the PROM's bootpath better.
...
Use the bootpath[] array in setroot() to determine partition info in case
of boot devices of type DV_DISK. Also, precook more SCSI device info in
fake_bootpath() to simplify dk_establish().
1996-04-10 20:40:14 +00:00
pk
5f2d466997
Make room for another `value' in struct bootpath. Drop the global `bootdv'
...
in favour of storing the device pointer in the bootpath[] element corresponding
to the boot device. This also allows the opportunity to get to "intermediate"
devices (e.g. busses) should the need for this ever arise.
1996-04-10 20:33:38 +00:00
mycroft
0609135a66
Add explicit return types.
1996-04-10 19:03:46 +00:00
gwr
f6762bf5cf
Retry calls to the PROM strategy function. Fixes PR# 2145
...
Call prom_iopen only on the first disk_open call, otherwise
only the first file open attempt ever works. Fixes PR# 1726
Both from der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
1996-04-10 18:31:14 +00:00
jonathan
368824e74c
Fixes for -Wall -Wmissing-prototypes:
...
Add prototypes to (most of) src/sys/arch/pmax/pmax. (The un-protytyped
parts still have pending merges with the Pica port.)
Fix splx() glitches in pmax/clock.c.
Delete old cpu/fpu identification from pmax/autoconf.c, use r4400/r4600/idt
aware code from Pica port, now in mips/mips/mips_machdep.c.
Delete unused multi-CPU autoconfiguration code; NetBSD/pmax does not
support decsystem 5800s anyway.
1996-04-10 17:38:18 +00:00
jonathan
66e92bbfaf
fixes for -Wall -Wmissing-prototypes:
...
prototype the function-pointer member of the pmax struct pdma.
1996-04-10 17:38:04 +00:00
jonathan
39917746c1
fixes for -Wall -Wmissing-prototypes:
...
Update the pmax SCSI drivers (rz and tz) to use <machine/conf.h>.
Fix the driver entry points to have the correct signatures -- add
"ioflag" args to read() and write(), add "struct proc *p" arg to
open and close.
Stop using __BDEVSW_DUMP_OLD_TYPE, and update the rzdump and tzdump
entry points to have the correct, MI signatures.
NB: this is just syntactic sugar: both the caller and the dump entry
points ignore the additional args, and do exactly what they did before.
This must be fixed before using dump entry points in non-pmax drivers
(e.g., the MI scsi code).
1996-04-10 16:33:44 +00:00
jonathan
beaeb261bf
fixes for -Wall -Wmissing-prototypes:
...
add prototyped declarations for the callbacks which add old-style
(4.4bsd/pmax conf.old) SCSI controllers, and which configure SCSI slaves
on such controllers.
rewriting the SII driver to work with the MI scsi would be a better option,
if time were available, and the MI scsi code supported SCSI controllers with
an 8k upper bound on transfers.
1996-04-10 16:27:38 +00:00
jonathan
68a943bdf6
Create pmax-specific <machine/conf.h>, with prototyped declarations
...
for the cdevsw and bdevsw entries into pmax device drivers.
1996-04-10 16:17:23 +00:00
cgd
cd9ef2be9c
make the EISA code look a bit more like the PCI code, in the way
...
the bus is configured, interrupts are handled, etc. define
eisa_chipset_tag_t and eisa_intr_handle_t types, and the following
functions:
eisa_attach_hook()
eisa_maxslots()
eisa_intr_map()
eisa_intr_string()
eisa_intr_establish()
eisa_intr_disestablish()
to do the right things for the i386.
1996-04-09 23:00:25 +00:00
cgd
4444d2866e
there's now a eisa_machdep.c which must be included when including
...
EISA support.
1996-04-09 22:59:03 +00:00
cgd
3ccd8b454e
it's now safe to include both isavar.h and eisavar.h. Also, pass
...
an appropriate cookie (NULL) to the EISA attach code for use with the
EISA functions.
1996-04-09 22:58:29 +00:00
cgd
4889b6bcc2
use the new interfaces for interrupt attachment, etc.
1996-04-09 22:47:00 +00:00
cgd
d645bb042d
make the EISA code look a bit more like the PCI code, in the way
...
the bus is configured, interrupts are handled, etc. machine-dependent
header (machine/eisa/eisa_machdep.h) defines eisa_chipset_tag_t and
eisa_intr_handle_t types, and the following functions:
eisa_attach_hook()
eisa_maxslots()
eisa_intr_map()
eisa_intr_string()
eisa_intr_establish()
eisa_intr_disestablish()
Don't define the interrupt establish/disestablish functions directly
in terms of the ISA functions any more (on some wacked out systems,
there can be a difference).
1996-04-09 22:46:11 +00:00
jonathan
8a1933076a
Fixes for -Wall -Wmissing-prototypes:
...
Replace impliclty-sized types (u_long, u_short) used in
declarations of byteorder functions witho explicitly sized types
(u_int32_t, u_int16_t).
Avoids problems with using ntohl(foo) as (eg) an argument to printf().
1996-04-09 20:56:45 +00:00
cgd
c40712b45d
fix extra spaces at ends of lines, etc. (all spacing nits.)
1996-04-09 20:55:22 +00:00
jonathan
08a45c0a18
Fixes for -Wall -Wmissing-prototypes:
...
Do not define __BDEVSW_DUMP_OLD_TYPE, as it breaks prototyping
of device dump functions, and should be port-dependent in any case.
The pmax 4.4bsd/pmax-derived drivers are being fixed, and the pica port
uses the MI scsi drivers already.
1996-04-09 20:54:08 +00:00
jonathan
57fd0e266b
Fixes for -Wall -Wmissing-prototypes:
...
include <sys/systm.h> to get a prototyped declaration of printf().
include <machine/autoconf.h> for port-specific typedefs.
Remove unused variables.
1996-04-09 20:50:06 +00:00
cgd
f85f062d77
spaces vs. tabs
1996-04-09 20:07:16 +00:00
ragge
62b2afac2d
Removed a function that were #ifdef vax'ed.
1996-04-09 17:21:56 +00:00
pk
4c26e95dde
Initialize relevant elements of the `romaux' structure in romprop().
1996-04-09 15:24:00 +00:00
pk
696daec742
Make this compile if LEDEBUG id defined.
1996-04-09 15:21:59 +00:00
thorpej
43411d2e96
Convert to use <machine/bus.h>.
1996-04-09 00:46:15 +00:00
jtc
c4bd7796ba
Add to DPADD for each library in LDADD; Reported by Mike Long <mike.long@analog.com> in PR #2301 .
1996-04-08 21:21:54 +00:00
pk
1a1a8ba8c9
Undo unintended change in previous commit: _mcount is static.
1996-04-08 20:55:36 +00:00
jonathan
282688d407
Fixes for -Wall -Wmissing-prototypes:
...
remove unused variable "xfer" from the copy{to,from}buf_gap2() functions.
1996-04-08 20:11:46 +00:00
jonathan
45b229da22
fixes for -Wall -Wmissing-prototypes:
...
prototype the forward declaration of lewritereg().
1996-04-08 20:09:56 +00:00
jonathan
8ae2ddf4ad
fixes for -Wall -Wmissing-prototypes:
...
add "return (0);" to cnstop()'s emtpy body.
1996-04-08 19:57:30 +00:00
jonathan
24a8c21b53
fixes for -Wall -Wmissing-prototypes:
...
include <sys/systm.h> to get a prototyped declaration of printf().
include <netinet/in.h> to get a prototyped declaration of in_cksum().
1996-04-08 19:55:37 +00:00
mycroft
740637ad71
If we dequeue a packet due to excessive collisions, make sure we check
...
to see if the queue length has dropped to 0.
1996-04-08 19:02:19 +00:00
ragge
a24af7a7c2
Added prototypes to everything. Made all files compile with -Wall.
1996-04-08 18:32:26 +00:00
ragge
86c328d230
Drivers for DZ11/DZV11/DZQ11 serial cards.
...
Written (mostly) by Ken Wellsch.
1996-04-08 17:22:20 +00:00
briggs
da3dabc052
Add PPP_BSDCOMP and PPP_DEFLATE options.
1996-04-08 14:17:28 +00:00
jonathan
7822ce0c03
ANSIfy:
...
Add prototypes and fix printf format strings to compile cleanly with
cc -Wall -Wmissing-prototypes.
1996-04-08 00:57:37 +00:00
jonathan
aff8e70475
Fix hanging open comment.
1996-04-08 00:52:10 +00:00
jonathan
223eb30b4e
ANSIfyto compile with -Wall -Wmissing-prototypes:
...
Add prototyped declarations for scsiGroup0Cmd and scsiGroup1Cmd.
Add prototype declarations for scsiPrintSense. Cut the inqiury-response
pretty-printer from tz.c and rz.c and paste it in as scsiPrintInquiry.
1996-04-07 22:53:54 +00:00
jonathan
61a27eb882
Fix old pmax scsi disk and tape (rz and tz) drivers to compile with
...
-Wall -Wmissing-prototypes:
Add prototypes.
Fix printf() format strings (%x vs pointer-arg, %x with a long int).
Fix a possibly-uninitialized shadowing local variable "resid" in tzdone().
include <sys/systm.h> to get prototypes for printf() and bcopy().
1996-04-07 22:46:29 +00:00
thorpej
940ccbc5df
Fix typo that caused sun4 machines to be misidentified as sun4c-class.
...
Fixes reported problem of binstall not stripping the a.out header from
the boot block on sun4 machines.
1996-04-07 20:00:12 +00:00
jonathan
73b62487b0
ANSIfy for gcc -Wall:
...
fix glitch in the comments describing the glyph for semicolon.
Somehow, instead of ":" they had an open-comment.
1996-04-07 19:54:37 +00:00
jonathan
69b52a3f4a
ANSIfy for -Wall: add prototype declaration for rcons_font().
1996-04-07 19:53:36 +00:00
thorpej
14bffff70d
Add a stub config_init() function, so kernel will link. Temporary, until
...
we use new config.
1996-04-07 18:21:08 +00:00
jonathan
b72f41635e
Remove gcc -Wall lint from ultrix emulation.-
...
Mostly adding explicit != comparison to "if (error = copyin/out( ... ))".
Fix comment glitch in ultrix_fs.c
1996-04-07 17:23:04 +00:00
jonathan
938d7138be
Add vax setregs() support for exec'ing vax ultrix a.out binaries.
1996-04-07 16:38:03 +00:00
jonathan
d115f89b5f
Update arch/pmax/pmax/genassym.c to compile with -Wall: use offsetof().
...
Move to mips/pmax/genassym.c, as (most of) the assembler locore code is
being merged into a generic-MIPS locore.
Remove the redundant pmax/pmax/genassym.c.
1996-04-07 14:27:00 +00:00
thorpej
77366064b8
Fix oversight in sun4m changes: the CPU attach code moved, so the CPU
...
was never getting attached on a sun4 machine. Fix this so that the
cache and FPU get enabled on sun4 machines. (Believe me, a 4/260 is
slot enough, *with* the cache...)
1996-04-07 06:02:20 +00:00
thorpej
56fed0c102
Fix slight oversight in previous change.
1996-04-07 05:50:59 +00:00
gwr
d1ca7d4c47
minor cleanup
1996-04-07 05:47:26 +00:00
gwr
639d1d787e
minor nit...
1996-04-07 05:45:08 +00:00
gwr
a682037ce7
SunOS binaries use "trap #2" (for some obscure FPU business,
...
or so claims the comment in trap.c). Reinstate the code that
treats trap 2 as "trace" which is given special handling in
trap.c for SunOS binaries. Also add some comments about this.
Thanks to <Ian.Dall@dsto.defence.gov.au> for this one.
1996-04-07 05:42:17 +00:00
thorpej
d68e57ee64
Make this compile again on a SUN4-only kernel. (Avoid "unused foo"
...
warnings from gcc -Wall. While the optimizer is smart enough to
eliminate dead code, it looks like the rest of gcc doesn't Get It.)
1996-04-07 04:48:46 +00:00
cgd
80efcebba5
kill some pasted spaces.
1996-04-06 02:04:00 +00:00
thorpej
84c7027789
Add bus_io_{read,write}_multi_{1,2,4,8}() to the <machine/bus.h>
...
interface, and implement them (except for the 8-byte versions) on
the i386.
1996-04-05 23:59:37 +00:00
chuck
e50fc72424
make netbsd/sparc boot on sun4 once again. the sun4m changes introduced
...
config lines for obio0 devices without addresses (thus cf->cf_loc[0] took
the default value of -1). we now ignore these entries on a sun4 since
they could never be valid (eliminates a 'panic:alignment' fault at bootup).
1996-04-05 21:50:05 +00:00
chuck
a7c600676f
make netbsd/sparc boot on sun4 once again. the sun4m changes introduced
...
config lines for obio0 devices without addresses (thus cf->cf_loc[0] took
the default value of -1). this caused autoconf.c to map memreg0 to
obio physical address -1 (invalid). as soon as we took a memory fault
the code in memfault_sun4 [locore] would get a Watchdog timeout when trying to
read memreg0 (a.k.a. par_err_reg).
1996-04-05 21:44:25 +00:00
is
1ac76dc9c2
Typo in the new new config conversion fixed.
1996-04-05 15:53:41 +00:00
mhitch
3ce4de5491
Pass reserved blocks in label so adosfs computes root block
...
correctly (close PR 2232).
1996-04-05 05:08:07 +00:00
mhitch
a0e658617d
Add support for OFS, International FileSystems, and blocksizes > 512.
...
Corrrect floppy rootblock calculation. Validate filesystem type. (Closes
PR 2232)
Filename hashing requires unsigned characters. (Closes PR 1026)
Soft link path is null-terminated string, not BSTR.
Use actual file header block info for hard links.
Set nlink to 2 for hard linked files in adosfs_getattr().
Load allocation bitmap and set correct free space.
1996-04-05 05:06:07 +00:00
mhitch
b35575d176
Define M_ADOSFSBITMAP, for adosf allocation bitmap.
1996-04-05 04:52:52 +00:00
mhitch
a3fa4a5449
Compute partition offset with sectors/track and number of heads from the
...
Amiga partition block. Print a diagnostic if the sectors/track or
number of heads differs from the RDSK values.
Fix sorting by partition offset (don't drop last partition).
Save filesystem blocksize for adosfs partitions. (Closes PR 2232)
1996-04-05 04:50:26 +00:00
christos
151fa70f78
Prototyping changes.
1996-04-05 00:01:10 +00:00
christos
d7130e8385
- Prototyping changes
...
- Fix bug that gcc -Wall found in linux_sys_getpgid()
1996-04-04 23:56:01 +00:00
pk
8eeab3102b
Probe clock registers on sun4s to make sure we attach the correct device
...
(sun4m has clocks at obio too).
1996-04-04 23:55:47 +00:00
christos
363777341c
- Add missing prototypes
...
- Fix bugs with reversed arguments that prototyping discovered
1996-04-04 23:51:36 +00:00
pk
8e427a346f
Check for frame pointers we can handle (i.e. in kernel space). This prevents
...
data faults when tracing proc0's context.
1996-04-04 23:25:35 +00:00
abrown
1372d856d7
cpu.c: correctly identify Sun4m associative caches
...
kgdb_stub.c: make it compile again with Sun4m-only kernel
1996-04-04 23:06:32 +00:00
abrown
1068aa5751
Add back support for cached DVMA on SuperSPARC (sun4m) machines that was lost
...
during merge
1996-04-04 23:05:22 +00:00
pk
b0fd2dabcb
Include fd.c if (fdc | fd), so we're not obliged to define a device
...
at fdc.
1996-04-04 22:57:55 +00:00
mycroft
78746c0d27
Regen.
1996-04-04 21:47:52 +00:00
mycroft
691dea75ae
Add some NCR chips.
1996-04-04 21:46:33 +00:00
cgd
402f77d443
remove tricky open-coded variants of config_found(), by using the
...
child device pointer now returned by config_found(). (previously,
the code played games to get that pointer; now they are unnecesary.)
1996-04-04 07:08:10 +00:00
scottr
9d1cd5e9be
Make this compile again; will need to deal with matchbyname() later, though.
1996-04-04 06:59:29 +00:00
scottr
c1c09c75e2
Add v2IRQ0 define for IIci-style internal video.
1996-04-04 06:55:29 +00:00
phil
dba4d32f68
Initial check-in of the ieee fp support for the pc532.
...
ieee fp support by Ian Dall, NetBSD/pc532 integration by Matthias Pfaller.
Includes setjmp/longjmp added to locore.s.
1996-04-04 06:36:03 +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
cgd
fbce6d4468
Make config_found_sm() (and therefore config_found()) and config_rootfound()
...
return a struct device * of attached device, or NULL if device attach failed,
rather than 1/0 for success/failure, so that code that bus code which needs
to know what the child device is doesn't have to open-code a hacked variant
of config_found(). Make config_attach() return struct device *, rather than
void, to facilitate that.
1996-04-04 06:06:18 +00:00
cgd
34829de7f9
change more __kprintf__ format attributes to use __kprintf_attribute__,
...
rather than just __attribute__, so they can be #defined out on non-NetBSD
versions of gcc.
1996-04-04 05:13:50 +00:00
cgd
5645e460ac
apparently, it's now appropriate to use 'bt at isa' for bt54x SCSI
...
controllers, rather than the historic 'aha at isa'.
1996-04-04 05:01:51 +00:00
cgd
7bc2baeb01
update for the fact that 'alldevs' is now a TAILQ.
1996-04-04 00:27:24 +00:00
cgd
e3c70ced5f
call config_init() before autoconfiguration, to initialize alldevs and
...
allevents lists.
1996-04-04 00:26:28 +00:00
cgd
8c248b98cc
change 'struct device' and 'struct evcnt' lists (alldevs and allevents) to
...
be TAILQ's. TAILQ_HEAD's of those structs are now 'struct devicelist' and
'struct evcntlist', respectively.
1996-04-04 00:25:44 +00:00
thorpej
ea39811fd8
Make these link in the absense of "options FIFO".
1996-04-03 23:25:36 +00:00
christos
c6be18f3ef
Change kprintf attribute to be conditional on the pre-processor define
...
__KPRINTF_ATTRIBUTE__ so that our kernel compiles cleanly with versions
of gcc that do not support the kprintf format attribute.
1996-04-03 20:46:39 +00:00
chuck
9ee06a9bd1
change vunmapbuf to void function to match MI code
1996-04-03 20:42:55 +00:00
chuck
6fa7f71c9c
fix christos' type-o: s/dec_decl/dev_decl/ on line 115.
1996-04-03 20:35:25 +00:00
mycroft
9c6e05d835
Minor optimization, and do a CLRCH after (re)selection just to be safe.
1996-04-03 15:58:13 +00:00
mycroft
b82447e3e1
* Change message priorities so that ABORT comes after IDENTIFY.
...
* Add an ACB_RESET flag, so that a BUS DEVICE RESET can be queued within the
driver.
* If ACB_ABORT or ACB_RESET is set during reselection, schedule a message and
assert ATN.
* Optimize aic_datain_pio(), aic_dataout_pio() and aicintr() somewhat.
* Schedule a timeout only when we select the target, so that commands can't
time out prematurely.
1996-04-03 10:33:45 +00:00
mycroft
70f35ac052
Don't wait for a command complete interrupt when enabling mailbox out
...
interrupts.
1996-04-03 09:45:45 +00:00
mycroft
46c087980e
Add explicit return types.
1996-04-03 08:55:20 +00:00
mycroft
f0d8cbb1cb
Don't wait for the host adapter to be idle before enabling or disabling
...
mailbox out interrupts.
1996-04-03 08:48:46 +00:00
mycroft
5e078e5ec8
Implement ncr_print().
1996-04-03 08:44:15 +00:00
mycroft
deef34f203
Add explicit return types.
1996-04-03 08:18:27 +00:00
mycroft
4f6c412517
Remove an old `#define DIAGNOSTIC'.
1996-04-03 05:48:35 +00:00
chuck
b9eb8ab773
change "pcvt25h" in the example ttys file to "pcvt25"
...
to match changes in NetBSD's /usr/share/misc/termcap.
1996-04-03 04:37:44 +00:00
chuck
c132a81557
as per cgd:
...
temporarily revert bus config order back to isa->eisa->pci
until port allocation/accounting is ready (XXX).
works around problem of the if_ep driver's probe function trashing
an adaptec 2940 if the BIOS maps it in at port 0xf000. (the
BIOS on my new P166 does this, ... the BIOS on my P133's does not).
without this the P166 system will reset as soon as spl0() is called
(autoconf.c) making it impossible to install the OS.
1996-04-03 04:26:38 +00:00
thorpej
52fee18c6f
New SCSI media changer driver, written from scratch by me. Some
...
influence from the old driver (written by Stefan Grefen) and from
an autochanger driver written by the Systems Programming Group at the
University of Utah Computer Science Department (currently residing
in src/sys/arch/hp300/dev/ac.c).
1996-04-03 00:25:21 +00:00
mark
234547bf5e
Add CPU ID's for the DEC StrongARM-110 processor.
...
Update control register bit definitions as the SA-110 has
separate instruction and data caches.
1996-04-02 21:45:25 +00:00
christos
16b22416bb
Fixed typo in syslog() attribute; should have been __printf__ not __kprintf__
1996-04-02 15:05:47 +00:00
ragge
da9fca44a5
CVS trouble.
1996-04-02 13:52:28 +00:00
chuck
79ca6b2c5f
removed references "updatefast" and "updateslow" as they are no longer
...
defined/used.
1996-04-02 05:07:21 +00:00
chuck
8b39fc7f9f
removed refs to pcvtinfo.{updatefast,updateslow} as these are no longer
...
defined (or used).
1996-04-02 05:05:16 +00:00
pk
7311f0da23
Late-breaking patch from Aaron.
1996-04-01 21:09:39 +00:00
cgd
babc8db2c1
fix inverted sense of tests in DE500 media select function. (Would
...
auto-detect as 100Mbps if 10Mbps, 10Mbps if 100Mbps.)
1996-04-01 19:37:54 +00:00
christos
10ffa5da40
Fix warnings when SUN4M is not defined.
1996-04-01 19:16:41 +00:00
christos
3dbbc8d3e9
Fix another printf format argument.
1996-04-01 17:37:08 +00:00
christos
4bdb6550cb
Added missing prototypes and include files, fixed parentheses so that it
...
compiles cleanly.
1996-04-01 17:36:20 +00:00
christos
362a6875bf
Remove last dependency to dev_conf.h and the file itself.
1996-04-01 17:34:34 +00:00
christos
f34addbb3b
- remove dependency to dev_conf.h
...
- remove unneeded casts for %b
1996-04-01 17:33:10 +00:00
christos
34f644d1b9
Remove casts of printf args for %b format.
1996-04-01 17:31:38 +00:00
christos
dc6ff48df6
Eliminated dependencies on dev_conf.h
1996-04-01 17:29:44 +00:00
christos
6bfb8e5ce7
Fix cut'n'paste'o in %p previous fix.
1996-04-01 17:27:14 +00:00
mycroft
d0742ed3c5
Several things:
...
1) If we get an unexpected disconnect, issue a REQUEST SENSE, as recommended
by the SCSI-2 spec. If the target created a contingent allegiance condition,
this will clear it. Also, if it happened while sending a SDTR or WDTR message,
disable negotiation for that target.
2) Since some lame devices still don't deal correctly, make sure we deassert
ATN if our last message out is interrupted. If we get a MESSAGE PARITY ERROR,
we'll reassert ATN anyway. This should ensure that we never have to send a
MESSAGE NO OPERATION.
3) Set AIC_ABORTING only when actually sending a BUS DEVICE RESET or ABORT,
so we get better error detection.
4) Other internal reorganization of no consequence.
1996-04-01 07:24:37 +00:00
scottr
47b5b87d08
Clean up, primarily KNF.
1996-04-01 06:39:17 +00:00
scottr
bbb6251b0b
Make CLK_INTERVAL depend on HZ; update comments to match.
1996-04-01 05:16:52 +00:00
scottr
5f20924433
Move the I/O map kludge for II-class machines into the MRG init code. No
...
effective change, but this is more correct and averts some potential
problems.
1996-04-01 04:30:23 +00:00
briggs
1fa595a2f1
Clean up for higher warning level.
1996-04-01 01:35:48 +00:00
pk
25b6ab86fe
Update device list.
1996-04-01 00:20:31 +00:00
pk
3cf5ed1f30
Various cleanup; mostly trailing spaces/tabs.
1996-03-31 23:44:53 +00:00
pk
8347d3f584
The sun4m name for this device is "auxio".
1996-03-31 23:43:21 +00:00
pk
301e978cf8
Various sun4m-related changes straight from Aaron.
1996-03-31 23:38:29 +00:00
pk
e0344005b4
Changes to match 4m-aware locore.s. Note changed `trapbase' and
...
`sparc_interrupt_{44c.4m}' labels.
1996-03-31 23:35:20 +00:00
pk
e743dda2a9
Update for 4m locore.s. Remove some items, since locore.s now #includes
...
param.h
1996-03-31 23:28:03 +00:00
pk
cf4009e56c
Include support for sun4m timers and counters: hardware register layout
...
has changed. There is a counter for each CPU (currently, just one supported).
1996-03-31 23:24:59 +00:00
pk
8de1fd22bc
Add sun4m support. Many, many changes..
...
Note on multi-architecture kernels: most architecture dependent traps are
forked off directly by having a separate trap table for each (sun4,sun4c,sun4m)
This reduces the number of tests on `cputyp' significantly, and it's easier
on the mind. There are still some entry points that need to test `cputyp',
most notably microtime().. yuck.
1996-03-31 23:19:22 +00:00
pk
6d76616bf0
The sun4m IOMMU "device".
1996-03-31 23:09:32 +00:00
pk
7b55c61c27
Include support for sun4m timers and counters: hardware register layout
...
has changed. There is a counter for each CPU (currently, just one supported).
1996-03-31 23:07:59 +00:00
pk
df2a68f25b
Add sun4m VA definitions (for clock and interrupt).
...
Make these generic for all architectures (i.e. avoid `#if defined(SUN4*)'s).
1996-03-31 23:03:31 +00:00
pk
ff109a19a3
Accomodate sun4m CPUs and caches (Aaron). Cache handling needs to be
...
revised.
1996-03-31 23:00:40 +00:00
pk
df08150880
Updates for sun4m.
1996-03-31 22:57:09 +00:00
pk
35802bf06b
Accomodate sun4m device layout (v3 PROM) and special 4m startup goo.
...
Heavily cleaned from most `#if defined(SUN4*)' stuff in favour of
CPU_ISSUN4* macros.
1996-03-31 22:55:33 +00:00
pk
678fbb4806
sun4m device definitions and bus structure.
1996-03-31 22:52:38 +00:00
pk
b2d12c182b
Aaron's sun4m-related trap handling (memory faults).
...
Note that fork() no longer return in syscall() in the child.
Add a couple of `#ifdef DEBUG's.
1996-03-31 22:51:58 +00:00
jtk
55960650f7
add include file for function prototypes
1996-03-31 22:50:11 +00:00