Commit Graph

580 Commits

Author SHA1 Message Date
matthias
b3d60fed7c * Add -Werror again. 1997-04-01 16:30:48 +00:00
matthias
6228d0c501 * Add Cabletron EA412/EA419 driver. 1997-04-01 16:30:35 +00:00
thorpej
cb24b0200a Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:20 +00:00
gwr
37b247edde Renames: /dumpconf/cpu_dumpconf/, /boot/cpu_reboot/ 1997-03-26 22:42:13 +00:00
gwr
71e43d14ab Move findroot/setroot stuff from configure() to cpu_rootconf(). 1997-03-26 22:38:40 +00:00
matthias
bf4354241e * Use machine/conf.h instead of sys/conf.h to get the
lpt{open,close,write,ioctl} prototypes.
* Remove the cdev_decl(lpt). We get it from machine/conf.h.
* Add and use LPTSOFTC.
* Use level triggered interrupts (seems to work with less spurious interrupts).
* Do not use NLPT. Use lpt_cd.cd_ndevs to get the number of lpt devices.
* ether_ifattach now needs the ethernet address of the device. Supply a
  dummy address.
1997-03-22 08:29:52 +00:00
matthias
80f02e3d99 DEV_RTC is gone. 1997-03-22 08:29:48 +00:00
matthias
b75d400dd2 DEV_RTC is gone.
Remove uk driver, add se driver.
1997-03-22 08:29:45 +00:00
matthias
e436eab8ea DEV_RTC is gone. 1997-03-22 08:29:41 +00:00
matthias
62e4baf13e Add softnet prototype. 1997-03-22 08:29:19 +00:00
matthias
86855546de Do intr_init and intr_establish for softclock and softnet in mbattach. 1997-03-22 08:29:01 +00:00
matthias
c532db2665 * Include if_inarp.h and not if_ether.h.
* Include arp.h instead of ether.h.
* Remove softnet prototype. It is in cpu.h now.
* Remove calls to intr_init and intr_establish for softclock and softnet.
  This is done in the mainbus attach routine now.
* Remove impintr. This seems to be dead.
* Add natmintr :-)
1997-03-22 08:28:59 +00:00
matthias
282907668f Don't hardcode the name of the clock device. Use dv_xname. 1997-03-22 08:28:56 +00:00
matthias
92f94ebec2 That shouldn't get deleted. I wanted to delete icuinit.c, not intr.c. 1997-03-21 08:34:57 +00:00
matthias
4c63b60bae intr.c 1997-03-21 08:31:59 +00:00
matthias
0f3c811db6 * Remove the unused variable fsr in ieee_invop. 1997-03-20 12:04:08 +00:00
matthias
a366400675 * clock and rtc are real devices now. 1997-03-20 12:03:27 +00:00
matthias
5efc40089c * Add new file arch/pc532/pc532/mainbus.c.
* Remove arch/pc532/pc532/icuinit.c.
* clock and rtc are real devices now.
* Change all uses of needs-count to needs-flag.
1997-03-20 12:03:24 +00:00
matthias
c44822f0e3 * Add "-Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-format"
to CWARNFLAGS.
1997-03-20 12:03:23 +00:00
matthias
ed42b2c9d3 * Remove uk driver, add se driver. 1997-03-20 12:03:20 +00:00
matthias
b49a214439 * Don't reference NSCN.
* Use machine/conf.h not sys/conf.h to get the prototypes for the
  scn cdev functions.
* Include <sys/kgdb.h> to get prototypes for kgdb_connect and kgdb_attach.
* Add missing prototypes for some functions.
* Make ddb work before the console was opend. Thank's to Ian Dall
  for this change. His comment:
	Also, ddb doesn't work if a break is set before the console
	is opened. That is because DTR and RTS are not asserted. It
	would probably work if the console is wired to ingnore DTR
	or RTS. The change below is probably not very correct.
	Proabably the state of DTR and RTS should be saved and DTR
	and RTS asserted on the start of a polled serial input and
	the saved values restored on exiting polled input
* Remove unused function scn_ei.
1997-03-20 12:03:03 +00:00
matthias
80502accfe * Remove unused ncr_minphys prototype.
* Add prototype for ncr_ready.
* Add ncr_wait_not_req function from Ian Dall:
	The ncr_wait_not_req business is to avoid a potential race.
	When the pseudo DMA finishes, the target may not have
	lowered REQ yet. If we just charge ahead, we eventually test
	for phase when REQ is high. However, if REQ has not yet gone
	low for the last byte transferred, this will be the wrong
	phase. This is taken from the dp8490 application notes. The
	last ACK is not deasserted until the dma is completed.
	Deasserting the last ACK should be delayed until the last
	REQ is deasserted. I am not sure if there are ever devices
	this slow, but I believe the code is "more correct".
1997-03-20 12:03:01 +00:00
matthias
dd38be40dc * Add prototypes for pmap_pte, pmap_testbit and pmap_changebit.
* Remove PTDpaddr. This is no longer in use.
1997-03-20 12:02:42 +00:00
matthias
5bb951d4d4 * Remove IEDGE and IPLOARITY. These constants are no longer in use. 1997-03-20 12:02:40 +00:00
matthias
1e27bb59c8 * Add prototypes for kdb_trap and db_dasm_ns32k. 1997-03-20 12:02:37 +00:00
matthias
8462078c2a * Add prototypes for ieee_handle_exception, ram_size, restore_fpu_context
and save_fpu_context.
* Remove prototypes for cpu_reset (it is local to machdep.c) and
  startrtclock (it does no longer exist).
1997-03-20 12:02:36 +00:00
matthias
98eb9b47ea * New file. This contains the definitions used to fill the cdev and
bdev switches for devices unique to the pc532.
1997-03-20 12:02:34 +00:00
matthias
bcdbce6d4f * Initialize the interrupt controller part of the ICU in intr_init.
* Move softnet and the establishing of the softclock and softnet
  interrupts to machdep.c.
* Fix some printf format strings.
1997-03-20 12:02:00 +00:00
matthias
8a6b052853 * New file that contains the match/attach/print function for the mainbus
device.
* Some generic ICU initialization is now done in mbattach.
1997-03-20 12:01:23 +00:00
matthias
715cb6f3df * Include sys/ptrace.h to get prototypes for process_read_regs and
process_read_fpregs.
* Remove extern definitions for proc_trampoline and pmap_pte. We
  get prototypes for these from some headerfiles.
1997-03-20 12:01:03 +00:00
matthias
6a7e85766c * Include sys/kgdb.h to get prototypes for kgdb_trap.
* Fix some printf format strings.
1997-03-20 12:00:59 +00:00
matthias
0f39516c71 * Remove unused local variable in sys_sysarch. 1997-03-20 12:00:58 +00:00
matthias
a9e83c741a * Include sys/proc.h, sys/fcntl.h and machine/conf.h to get some missing
prototypes.
* Get rid of RTC_DEV. All rtc support now lives in clock.c.
1997-03-20 12:00:56 +00:00
matthias
2608cc4aff * Remove stale rcsid string.
* Add missing prototypes.
* Move over softnet() from intr.c.
* Establish softnet and softclock interrupts in init532.
* Misc cleanup to get it compiled with the new CWARNFLAGS.
1997-03-20 12:00:54 +00:00
matthias
62d993de87 * Remove trailing newline. 1997-03-20 12:00:51 +00:00
matthias
5e6e424a62 * Initialize the interrupt controller part of the ICU in intr_init.
* Move softnet and the establishing of the softclock and softnet
  interrupts to machdep.c.
* Fix some printf format strings.
1997-03-20 12:00:50 +00:00
matthias
5e1cac29c9 * Include sys/systm.h and netinet/in.h to get missing prototypes. 1997-03-20 12:00:47 +00:00
matthias
855084814b * Include <sys/disk.h> to get prototypes for dk_establish.
* Fix definition of strat arg for {read,write}disklabel.
1997-03-20 12:00:46 +00:00
matthias
bd1c07266e * add missing prototypes.
* Fix some printf format strings.
* Remove unused Debugger() definition.
1997-03-20 12:00:43 +00:00
matthias
79e491a855 * Add missing prototypes and casts.
* Fix a printf format string.
1997-03-20 12:00:42 +00:00
matthias
0b6fa5346b * Add missing prototypes. 1997-03-20 12:00:40 +00:00
matthias
966187a7e0 * Add missing prototypes.
* Reconstruct a piece of text that got lost in the past.
* Make the output for undefined instructions more consistent.
1997-03-20 12:00:37 +00:00
matthias
4712de3be8 * Do not call all the *_decl macros. This is done by <sys/conf.h> and
<machine/conf.h>.
1997-03-20 12:00:34 +00:00
matthias
b677f20e5d * Make the rtc and the clock real devices. Initialize the clock parts
of the ICU in clock_attach.
* Pull over (and reformat) rtc_rw from mem.c.
* Convert the rtc driver to use /sys/dev/clock_subr.c (partially by
  stealing code from the sun3 port).
1997-03-20 12:00:33 +00:00
matthias
fa30cfc066 * Remove all the mainbus stuff. This is in mainbus.c now.
* The clock is no longer started by startrtclock. This is done by
  clock_attach now.
1997-03-20 12:00:30 +00:00
thorpej
69d841a462 Add the "se" device at cdev major 22. 1997-03-18 01:41:40 +00:00
is
07b064e02e New ARP system, supports IPv4 over any hardware link.
Some of the stuff (e.g., rarpd, bootpd, dhcpd etc., libsa) still will
only support Ethernet. Tcpdump itself should be ok, but libpcap needs
lot of work.

For the detailed change history, look at the commit log entries for
the is-newarp branch.
1997-03-15 18:09:08 +00:00
mycroft
f868dff8d3 Define the `cleankernel' target consistently with other ports. 1997-03-14 23:27:29 +00:00
mycroft
44149b42c2 Put the genassym.sh output in a temp file, and mv -f it, in case
it fails spectacularly and doesn't clean up.
1997-03-14 23:21:36 +00:00
matthias
d8319f5c75 remove leftover from switch to the mi kgdb interface. 1997-03-13 10:25:25 +00:00
matthias
c6d2740564 Integrate Phil Budne's latest changes to the scn driver. From his README:
* Uses Counter/Timer dynamicly for rate generation; You can
	  have both 19200 and 38400 on one duart, and 57600 on another!
	* Improved scninfo program to dump driver internal information.
	  implemented counters for parity err, framing err, break
	* Delays changes until transmitter idle to avoid "glitches"
	* Cleaned up scn_softc member names
	* Untested support for sc26c92 (I don't yet have any to test with);
	  + Will use alternate rate tables (include 115.2kbps and 230.4kbps)
	  + Will raise FIFO rx interrupt threshold and watchdog timer
	    at higher rates.
	  + Unknown (to me) how fast pc532 MC145406 driver chips can go

	NOTE: It seems like it may be a BAD idea to use a sc26c92 as
	a console port for now; the PROM doesn't know to reset the
	chip back to scn2692 mode!!
1997-03-13 10:24:14 +00:00
matthias
bda3351fc0 Some cosmetic changes. 1997-03-01 09:50:44 +00:00
matthias
dd064fc88a Reset the scsibus only when bit 2 is set in flags. 1997-03-01 09:50:40 +00:00
matthias
da45c7f449 remove reference to pc532/kgdb_stub.c. We now use the mi version. 1997-03-01 09:50:30 +00:00
matthias
5a74618671 The ns32532 has no alignment restrictions. Define ALIGNED_POINTER to
reflect this.
1997-03-01 09:50:19 +00:00
matthias
035bf3987f make db_expr_t a long. 1997-03-01 09:50:16 +00:00
matthias
73ea4ca540 Document a non-obvious use of addr in interrupt(). 1997-03-01 09:49:48 +00:00
matthias
799c3228ec kgdb_connect and kgdb_panic are not define in the mi kgdb_stub.c. Define
them here.
1997-03-01 09:49:45 +00:00
matthias
63183795c0 imask[IPL_ZERO] was updated after recomputing the run masks for all the
interrupt handlers. Due to this
  - DIAGNOSTIC kernels would panic
  - check_sir would run with the interrupt registered last blocked
Credits for finding and fixing this go to Ian Dall.
1997-03-01 09:49:44 +00:00
matthias
597322b455 * Adapt to changed definition of struct db_variable.
* Some cosmetic changes.
1997-03-01 09:49:42 +00:00
matthias
453b47e7bb removed. We now use the mi version from /sys/kern. 1997-03-01 09:49:20 +00:00
gwr
2de163471e Minimal changes to adapt to removal of NCR5380_PERMIT_RESELECT.
This driver should be updated to allow per-target control over
disconnect/reselect, but I will leave that to the port masters.
1997-02-26 22:29:08 +00:00
fvdl
115b6d92fa Define ALIGNED_POINTER 1997-02-24 23:16:53 +00:00
matthias
258699485f add missing parentheses to assym.h rule. 1997-02-10 10:54:00 +00:00
matthias
9712aaf1b5 * clean:: -> clean: change. 1997-02-08 09:34:46 +00:00
matthias
f3cdc89574 * Use Phil Budne's full name in the copyright header.
* Define RECOVER to something faster.
* Check for a valid softc in scnsoft. When there is
  a "hole" (e.g. you have scn0,scn1, scn4, scn5) the
  old code would panic. Thank's to Phil Budne for
  finding and fixing this bug.
1997-02-08 09:34:31 +00:00
matthias
f3ae5cdf29 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:12 +00:00
matthias
8a3b8c0477 * Fix a bug that would had cause an hang on fpuless machines. 1997-02-08 09:34:09 +00:00
matthias
8ec2fa0cfa * Convert NetBSD/pc532 to use the new libkvm by stealing code
from the alpha port.
1997-02-08 09:34:06 +00:00
matthias
5a17e54866 * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:34:01 +00:00
matthias
92842a6db7 * Remove some unused macros. 1997-02-08 09:33:58 +00:00
matthias
efea7eb83f * Correctly format the NetBSD-Id string. 1997-02-08 09:33:55 +00:00
matthias
6f5bca455b * Remove whitespaces from empty lines.
* Add (commented out) type and asmtype commands. asmtype will
  be used to define the gcc constraint used to emit constants
  and type will be used to define the type the constant should
  get casted to before passing it to printf.
1997-02-08 09:33:52 +00:00
matthias
869f7f78fb * Now that we use genassym.sh/genassym.cf this is no longer needed. 1997-02-08 09:33:50 +00:00
matthias
0e2fbfdbcd * The rom monitor and the bootprogram might have another idea about unit
numbers then the kernel. Use some code stolen from the mvme68k port
  to find the bootdevice.
1997-02-08 09:33:45 +00:00
matthias
ed7d482ddf * Don't wildcard scn[0-7]. This will not work for holes (at the moment). 1997-02-08 09:33:28 +00:00
matthias
d90eb8ee1e * Corrected rule for assym.h. In case genassym.sh fails assym.h
has to be removed and a non-zero exit value has to be provided
  to make.
* Removed last references to genassym and genassym.o.
1997-02-08 09:33:27 +00:00
matthias
3eded68a05 * Added PFIL_HOOKS to make modloading of the ipf module possible.
* Aded UNION fs. The lkm doesn't work at the moment.
1997-02-08 09:33:24 +00:00
matthias
6224783740 * Added KMEMSTATS option to save some memory. 1997-02-08 09:33:22 +00:00
matthias
021ca50fe4 * Added INSECURE to allow modloads in multiuser mode.
* Added PFIL_HOOKS to make modloading of the ipf module possible.
1997-02-08 09:33:20 +00:00
matthias
64065fbba2 * Removed old and invalid comment.
* Added LKM, PFIL_HOOKS and NFSSERVER options.
* Added four ccd devices.
* Removed PLIP and NO_INLINE_SPLX options.
* Removed MFS, MSDOSFS, CD9660, FDESK, KERNFS and PROCFS filesystems
  because they all are lkmable.
1997-02-08 09:33:17 +00:00
matthias
67c8bca33d * Convert NetBSD/pc532 to use the new libkvm. 1997-02-08 09:33:03 +00:00
matthias
8f1067c4d8 * Remove some unused macros. 1997-02-08 09:32:33 +00:00
matthias
1f7aefb0a1 * Declare bootdev and booted_device. 1997-02-08 09:32:30 +00:00
perry
19d153fc48 Nuke some options GENERIC residue. 1997-02-04 04:57:10 +00:00
perry
0b3a46d6b3 Nuke some GENERIC residue. 1997-02-04 04:31:55 +00:00
matthias
a6befcbede * clean, depend :: -> : change
* use genassym.sh to create assym.h
1997-02-01 09:23:02 +00:00
thorpej
739f23a219 This file is obsolete; this information is now generated by config(8). 1997-01-31 05:12:49 +00:00
thorpej
0735d8d32e Use new machine-independent setroot(). 1997-01-31 01:57:51 +00:00
thorpej
fcb565dde2 Adopt for new file system and root spec grammar. 1997-01-31 01:57:08 +00:00
matthias
1370131ffd Add scripts and documentation for a new method to create assym.h files.
With the kern/genassym.sh script HOSTED_CC is no longer used to create
assym.h files. This should make crosscompilation easier.
1997-01-30 09:37:20 +00:00
thorpej
7b40f5228e "md" is declared in sys/conf/files, now. 1997-01-21 09:39:20 +00:00
perry
b89a3425b7 Eliminate obsolete TIMEZONE and DST options.
Eliminate obsolete global kernel variable "struct timezone tz"
Add RTC_OFFSET option
Add global kernel variable rtc_offset, which is initialized by
RTC_OFFSET at kernel compile time.
on i386, x68k, mac68k, pc532 and arm32, RTC_OFFSET indicates how many
minutes west (east) of GMT the hardware RTC runs. Defaults to 0.
Places where tz variable was used to indicate this in the past have
been replaced with rtc_offset.
Add sysctl interface to rtc_offset.
Kill obsolete DST_* macros in sys/time.h
gettimeofday now always returns zeroed timezone if zone is requested.
settimeofday now ignores and logs attempts to set non-existant kernel
timezone.
1997-01-15 01:28:28 +00:00
matthias
27381f0aaf * Add cdevsw entry for /dev/ipl. 1997-01-11 11:00:41 +00:00
matthias
47fe16475c * Use confargs in probe and attach routines.
* Irq and address are now printed by mbprint.
1997-01-11 10:58:12 +00:00
pk
072388d107 Device rename: rd' => md' 1997-01-01 23:04:58 +00:00
pk
f750d179be rename: ramdisk => md 1996-12-28 23:42:33 +00:00
pk
603b61c3e0 rename: ramdisk => md 1996-12-28 23:22:07 +00:00
matthias
e16e1de8fd * remove NKPDE, this was never used.
* add IV_MASK (new member of struct iv) and IV_SIZE (sizeof(struct iv)).
1996-12-28 09:15:27 +00:00
matthias
92a5d4d222 * We no longer have a scsi subdirectory. Remove it from the list of
directories in which get tag links.
1996-12-23 08:38:02 +00:00