Commit Graph

485 Commits

Author SHA1 Message Date
rmind 9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
matt 6a66466f0c Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits.  Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
2010-12-20 00:25:23 +00:00
tsutsui 80da83d515 extern inline -> static inline 2010-04-17 12:54:29 +00:00
tsutsui cde07f4f60 Misc KNF and cosmetics. 2010-04-13 13:30:37 +00:00
tsutsui 863aabbe23 Misc KNF. 2010-04-13 13:29:35 +00:00
tsutsui eb9963a857 Misc KNF. 2010-04-13 11:22:22 +00:00
tsutsui c1acd41f47 Include "ioconf.h" to declare struct cfdriver foo_cd. 2010-04-13 09:51:07 +00:00
tsutsui 9233a7ff42 Replace old MD sicallback functions with MI softint(9). 2010-04-12 13:05:25 +00:00
tsutsui 078ba9f9eb - more cosmetics
- use queue(3) macro properly
2010-04-12 12:43:39 +00:00
tsutsui 09adc53649 KNF and cosmetics. 2010-04-12 12:28:59 +00:00
tsutsui 7288813c34 Always schedule callback functions via add_sicallback(),
which calls softint_schedule(9).

We cannot use BASEPRI() to check recursive calls any longer
since softint(9) has been reorganized to use kernel thread.
2010-04-10 18:02:05 +00:00
tsutsui c018c74bc9 Make local functions static. 2010-04-10 16:07:04 +00:00
tsutsui b8cca62afb - establish zs interrupts via common intr_establish() function rather than
hardcording them in locore.s and vector.s
- also make interrupt handlers take per unit softc and put a softint cookie
  into softc (though atari machines have only one zs)
- tweak some structures as per MI z8530sc driver

Tested on TT030 using sl(4) on zs.
2010-04-09 17:38:43 +00:00
tsutsui 3104521fc6 minor constify 2010-04-09 17:06:31 +00:00
tsutsui c72cdbc3b4 More KNF. 2010-04-09 16:30:15 +00:00
tsutsui 45c5a41969 Split device_t/softc. 2010-04-09 12:50:34 +00:00
tsutsui 3ae52b0ad3 Rename variables and members of softc for readability. 2010-04-09 12:38:48 +00:00
tsutsui af7ec4ee38 Remove unnecessary volatile keyword against struct zschan.
(volatile against structure member is enough)
2010-04-09 12:34:25 +00:00
tsutsui 6cace5bc53 - misc KNF
- remove `register' keyword from variable declarations
2010-04-09 12:09:29 +00:00
tsutsui c28b217b41 Include ioconf.h for struct cfdriver. 2010-04-09 11:30:19 +00:00
tsutsui 649a24ad45 minor constify 2010-04-09 11:27:21 +00:00
tsutsui ed0d3417a9 Make options SERCONSOLE (force serial console if DCD is detected)
patchable by binpatch(8) like:
---
# binpatch -s serconsole -r 0 /netbsd
serconsole(0x23bac4): 0x00000001 (1), at offset 0x23bb44 in /netbsd
new value: 0x00000000 (0)
#
---

May work around PR port-atari/39849
(netbsd-ATARITT kernel fails with serial port connected)
and some old TT030 with early revision boards.
2010-04-09 11:09:03 +00:00
tsutsui f48349093a - split device_t/softc
- verbose output on attach as well as zs serial ports
2010-04-09 10:49:37 +00:00
tsutsui 83f406edd9 Include ioconf.h for struct cfdriver. 2010-04-09 10:07:14 +00:00
tsutsui e33bfc17ee Misc KNF. 2010-04-09 10:04:35 +00:00
tsutsui 8f12100ec0 Misc KNF. 2010-04-07 13:53:05 +00:00
tsutsui 863ed02e2e - split device_t/softc
- use device_lookup_private() directly rather than via local macro
2010-04-07 13:14:23 +00:00
tsutsui 883db6bc19 extern inline -> static inline 2010-04-07 12:39:59 +00:00
tsutsui 1d5998f903 Use callout_schedule(9) rather than callout_reset(9) on polling
as callout(9) man says.
2010-04-06 15:32:36 +00:00
tsutsui 901a864f9d Add support for the EtherNEC.
The EtherNEC is yet another user designed device for Atari machines,
an NE2000 based ISA board connected to Atari's ROM cartridge slot with
simple but ingenious interface and cartridge port adapter, and
it's the most available network solution for the old Atari machines.

See following pages for more details about EtherNEC:
http://hardware.atari.org/ether/
http://home.arcor.de/thomas.redelberger/prj/atari/etherne/
http://www.freemint.org/ethernec/ethernec.html
2010-04-01 17:07:51 +00:00
snj ccaf1e96be Fight the ever-increasing size of src checkouts by spelling "useful"
without an extra l.
2010-02-28 15:52:16 +00:00
wiz 8e35c759e7 Fix typo in comment. 2010-02-09 23:05:16 +00:00
abs 2e92448c47 Fix a missed proc -> lwp change, only compiled if NWSKBD 2009-11-25 20:40:41 +00:00
rmind 3dc24f5a91 Use lwp_getpcb() on m68k ports, clean from struct user usage. 2009-11-23 00:11:42 +00:00
snj 0c15144ae1 Drop 3rd and 4th clauses. Approved by thomas@ (copyright holder). 2009-10-21 21:57:39 +00:00
snj 7f108050aa Drop 3rd and 4th clause. Approved by leo@ and thomas@ (copyright holders). 2009-10-21 21:50:14 +00:00
snj 4988388746 Remove 3rd and 4th clause on Leo Weppelman's license. OK leo@. 2009-10-20 19:10:09 +00:00
tsutsui 8c2e6a929c Use proper pointer types and names rather than casts for readability. 2009-08-23 13:46:48 +00:00
tsutsui 6e74d97975 Read AD_CFG_SWITCH via volatile pointer so that
the default density is detected correctly.
2009-07-31 15:55:10 +00:00
tsutsui 3685aebdb6 Replace one missed bcopy(9) with memcpy(9). 2009-07-19 05:46:15 +00:00
tsutsui 95b880f361 Remove extra whitespace added by a dumb tool which replaced bcopy with memcpy. 2009-07-19 05:43:22 +00:00
tsutsui 0a36a9ab42 Merge local <atari/atari/intr.h> into common <machine/intr.h>. 2009-07-08 12:23:09 +00:00
tsutsui 2d065ae111 KNF, ANSIfy, etc. 2009-07-07 16:16:18 +00:00
tsutsui d41c06b17d Explicitly initialize the MFP Timer-B for delay(9) from atari_hwinit()
rather than using if(!atari_realconfig) in clockmatch().
(I doubt the latter one has actually been called..)
2009-07-07 15:37:02 +00:00
tsutsui 0745bac2ee Some KNF and cosmetics. 2009-07-07 15:15:35 +00:00
tsutsui 77d3988d38 Add a workaround for annoying
"WARNING: negative runtime; monotonic clock has gone backwards"
message. Partially taken from hp300.
2009-07-07 15:15:08 +00:00
tsutsui a97d19521c Replace traditional MD si_callback() with MI softint(9). 2009-07-03 17:05:54 +00:00
tsutsui e5de2deeb2 Replace one traditional MD si_callback() with MI softint(9). 2009-07-03 14:00:41 +00:00
tsutsui e8940e0b5d Use more uint8_t, and constify. 2009-07-03 13:49:39 +00:00
tsutsui 21d83b6b0f KNF, use uint8_t, and misc cosmetics. 2009-07-03 13:36:09 +00:00