Commit Graph

16354 Commits

Author SHA1 Message Date
thorpej
6a3ca35ec3 Build these kernels with full debugging symbols. 1997-03-31 00:03:10 +00:00
jonathan
c1f72bba37 Add ifmedia hooks: include <ifmedia.h> and add sc_media to softc. 1997-03-30 22:47:05 +00:00
jonathan
70e7856e42 Match missing variants:
3c900 twisted-pair only, 3c595 mii, 3c595 100bT4, 3c905 100bT4.
Is there an MII version of the 3c905?
1997-03-30 21:31:01 +00:00
leo
67c47d4b56 Remove a hardcoded interrupt handler. Now uses intr_establish() for the
SCSI-drq handler on the Hades.
1997-03-30 21:08:19 +00:00
leo
103e8967c4 Add a space to the attach message. 1997-03-30 21:04:13 +00:00
briggs
2606fe6cbd Some new SONIC code from Denny Gentry <denny1@home.com> with a couple of
tweaks and bug fixes by yours truly.

Here's what Denny had to say:

nubus.h:
        - add a drsw entry for my card
	[ I also added a couple of constants for more display cards ]
if_sn.c:
        - allocate sc->space using malloc (Scott wanted this).
        - make csr accesses use NIC_PUT/GET, remove sc->sc_csr.
        - add multicast and IFF_PROMISC support. multicast isn't
                well tested, but I made sure the unicast case still
                works.
        - finish the new arp interface, remove sc->sc_enaddr
if_snreg.h:
        - remove struct sonic_reg
if_snvar.h:
        - add NIC_PUT and NIC_GET macros a la if_ae
        - remove sc_txhead, it isn't used.
if_sn_nubus.c:
        - clean up support for my SE/30 card.
        - Move add_nubus_intr from if_sn.c (to keep if_sn.c MI)
if_sn_obio.c:
        - make Q610, C610, Q650, C650, Q800 use EXBUS.
        - PB500 had a "return" where "break" was intended. PB500
                probably wasn't working.
        - move add_nubus_intr from if_sn.c.
        - add an "explanation" why Apple's ethernet addr is encoded
                in token ring format in the PROM.
1997-03-30 19:51:44 +00:00
christos
c318eb0071 PR/3402: Volker Schmidt: Add missing prototype for hardpps. 1997-03-30 17:29:41 +00:00
christos
6c41fdc592 Handle NULL shmid_ds properly in shmctl. 1997-03-30 17:21:02 +00:00
christos
dd3f97976c Comment out DIAGNOSTIC panic in trap code translation. The DIAGNOSTIC is
correct, but unfortunately in trap.c trapsignal(p, SIGSEGV, code) passes
the address of the fault in code, instead of the trap code. So we punt for
now doing checking for trap code validity until this gets fixed.
1997-03-30 17:18:19 +00:00
is
1309901ce0 The DraCo has had a com driver for quite a while. 1997-03-30 11:06:40 +00:00
is
2672ddd9d5 ifdef NARP -> if NARP > 0 1997-03-30 10:38:51 +00:00
christos
ee29ff37a9 PR/3396: Klaus Klein: If CREAD is not set drop incoming data. 1997-03-29 23:26:27 +00:00
christos
68b10e62c4 PR/3407: Koji Imada: Modern BIOS's can boot from higher than second hard disk 1997-03-29 21:40:19 +00:00
christos
4c29beee46 PR/3409: Koji Imada: cdsize() timeout too short for cd changers. 1997-03-29 21:37:55 +00:00
thorpej
0226fc32e4 Don't attempt to include config(8)-generated headers if we're included
by userland.
1997-03-29 19:52:41 +00:00
thorpej
f090be431e Use control device names provided by <netinet/ip_fil.h> 1997-03-29 19:51:45 +00:00
thorpej
0684baea63 Define control device names here; they're needed by kernel and userland. 1997-03-29 19:50:51 +00:00
christos
3a56279cee PR/3408: From Koji Imada: mv_faults on SPP connections. 1997-03-29 17:01:38 +00:00
jtk
dd46e6280e partial fix for PR 3385: correctly identify JAZZ-16 when AUDIO_DEBUG is
enabled
1997-03-29 05:41:28 +00:00
mhitch
cb3b852a7f A couple of missed boot() -> cpu_reboot() changes. 1997-03-29 05:03:01 +00:00
darrenr
4d1eb7820e use IPLLOG instead of ipllog to easily mask parameters, fix up prototype
problems for compiling to user programs.
1997-03-29 04:39:15 +00:00
thorpej
169a339c7d Centralize the check for NetBSD PFIL_HOOKS code into ip_fil.h, and use
it consistently.
1997-03-29 03:05:14 +00:00
thorpej
85a327bb3b Make this compile again in light of recent changes:
- adjust for new ipl_attach()/ipl_detach() names.
	- In ipl_load(), so not implicitly call ipl_attach(), since
	  doing so would be inconsistent with the behavior exhibited
	  by the statically-configured version.
1997-03-29 03:03:08 +00:00
briggs
e15f7fac43 Fix bug that would have prevented PB5xx series from detecting the SONIC.
Bug noticed by Denny Gentry.
1997-03-29 02:34:40 +00:00
mycroft
11117540d2 Use a temporary data structure for holding probe information, rather than a
full softc.
1997-03-29 02:32:30 +00:00
mycroft
056fd71e85 General cleanup: bus.h, etc. 1997-03-29 02:11:09 +00:00
thorpej
7845ea0d16 Fix an ... interesting bug that resulted from namespace collision.
Description:

	- A BSD pseudo-device initialization routine is declared as
		void <pseudo-device name>attach __P((int count));
	  in ioconf.c by config(8).  main() calls these functions
	  from a table.

	- IP Filter has functions iplattach() and ipldetach() (or,
	  in the NetBSD case, were erroneously renamed ipfilterattach()
	  and ipfilterdetach()).  These functions are used to establish
	  and disestablish the IP Filter "filter rule check" hook in
	  the IP input/output stream.  They are declared:
		int iplattach __P((void));
		int ipldetach __P((void));
	  ..and are expected to return a value by iplioctl().

	- When main() calls (by sheer coincidence!) iplattach(),
	  the filter hook is established, and the IP Filter machinery
	  labeled as "initialized".  This causes all packets, whether or
	  not the user intents to use filter rules, to be passed to
	  the filter rule checker if "ipfilter" is configured into the
	  kernel.

	- As a result of the above, a kludge existed to default to
	  passing all packets (I can only assume that when this was
	  originally committed, the symptom of the bug was noticed by
	  the integrator, but the bug not actually found/fixed).

	- In iplioctl(), if the SIOCFRENB ioctl is issued with an
	  argument of "enable" (i.e. user executed "ipf -E"), iplattach()
	  will notice that the machinery is already initialized and
	  return EBUSY.

Fix:

	- Rename iplattach()/ipldetach() to ipl_enable() and ipl_disable().

	- Create a pseudo-device entry stub named ipfilterattach()
	  (NetBSD case) or iplattach() (all other).  This is a noop; none
	  of the machinery should be initialized until the caller expicitly
	  enables the filter with ipf -E.  Add a comment to note that.
1997-03-29 01:57:55 +00:00
thorpej
99f4b72f6c Resolve conflicts from merge.
XXX doesn't compile yet, but that will require some other changes, which
XXX I want to make separately.
1997-03-29 01:42:33 +00:00
thorpej
f30d8f327f Resolve conflicts from merge.
XXX !!! XXX !!!
I noticed a few semi-serious bugs while doing this merge, one of which
has existed for a fairly long time.  Some of them are addressed in this
commit (because they caused the kernel to not compile), and are annoted
by "XXX" and "--thorpej".  The other one will be addressed shortly in
a future commit, and, as far as I can tell, affects all operating systems
which IP Filter supports.
1997-03-29 00:54:55 +00:00
mycroft
080350dc0d Use a temporary data structure for holding probe information, rather than a
full softc.
1997-03-28 23:47:08 +00:00
cgd
d26286ab6b clean up (unify) the register mapping code a bit 1997-03-28 22:25:01 +00:00
cgd
874e7169a4 punt pci_mem_find's &cacheable arg, and pass NULL instead. We never
want to map the memory register cacheable.
1997-03-28 22:16:06 +00:00
cgd
359850c818 clean up isp_pci_prefer_io comment 1997-03-28 21:51:51 +00:00
christos
519527d9cf PR/3401 incorrect MANDIR after rule changes 1997-03-28 20:22:55 +00:00
veego
7e75a99bfc s/ae/le/ for the recent Ariadne changes. 1997-03-27 23:50:39 +00:00
veego
8116aa0fed Remove the ae entries for the Ariadne, it's now supported bye the le driver 1997-03-27 21:21:11 +00:00
veego
fd019e12b5 if_le supports now the Ariadne card. 1997-03-27 21:15:11 +00:00
thorpej
2268a2c7eb Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:52 +00:00
veego
7ae296c7de - new hardware reset hook, mainly for PCnet-ISA cards (79c960)
- new MD variable: sc_initmodemedia, 79c960 cards can select
  between two ports, but this needs to be done in the MI init mode page
- new defines for PCnet-ISA cards (79c960)
1997-03-27 21:01:50 +00:00
thorpej
161f6c6f6b Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:49 +00:00
veego
5aa9546783 - new hardware reset hook, mainly for PCnet-ISA cards (79c960)
- new MD variable: sc_initmodemedia, 79c960 cards can select
  between two ports, but this needs to be done in the MI init mode page
- new defines for PCnet-ISA cards (79c960)
1997-03-27 21:01:49 +00:00
thorpej
7a6a8eb391 Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:48 +00:00
veego
a715085e43 - new hardware reset hook, mainly for PCnet-ISA cards (79c960)
- new MD variable: sc_initmodemedia, 79c960 cards can select
  between two ports, but this needs to be done in the MI init mode page
- new defines for PCnet-ISA cards (79c960)
1997-03-27 21:01:47 +00:00
thorpej
cb24b0200a Don't allocate mclrefcnt[]; it's dead and gone. 1997-03-27 21:01:20 +00:00
thorpej
76d601d33e Don't assume mbuf external storage is MCLBYTES. 1997-03-27 20:45:27 +00:00
thorpej
22ea1671cf Update for new mbuf code. 1997-03-27 20:40:09 +00:00
thorpej
667f747f9a m_copyback() is now in uipc_mbuf.c 1997-03-27 20:38:20 +00:00
thorpej
d1c9089a16 Update for the new mbuf code, in a slighly kludgy way. Basically, these
drivers played a somewhat evil trick with clusters, which is now
replaced by a somewhat evil trick with regular malloc'd memory.
1997-03-27 20:36:14 +00:00
thorpej
2a4b742e6a Update and enhancement to the mbuf code, to support use of non-cluster
external storage.  Highlights:

	- additional "void *" argument to (*ext_free)(), an opaque
	  cookie for use by the free function.
	- MCLALLOC() and MCLFREE() calls are gone.  They are replaced
	  by MEXTADD() (add external storage to mbuf), MEXTMALLOC()
	  (malloc() external storage and attach to mbuf), and
	  MEXTREMOVE() (remove external storage from mbuf).
	- completely new external storage reference counting
	  mechanism; mclrefcnt[] is gone.

These changes will eventually be used to pass driver DMA buffers up
the network stack, and reduce/eliminate copies in certain code paths
(e.g. NFS writes).

From Matt Thomas <matt@3am-software.com> and myself <thorpej@nas.nasa.gov>,
with some input from Chris Demetriou <cgd@cs.cmu.edu> and review by
Charles Hannum <mycroft@mit.edu>.
1997-03-27 20:33:07 +00:00
pk
6fee4ceb1f viking_cache_enable: clear caches only if not yet on.
viking_pcache_flush: don't use flash-clear; use hard-coded parms instead(XXX)
1997-03-27 16:02:10 +00:00
darrenr
fe3bc025d0 Bring in entire 3.2alpha2 source tree 1997-03-27 15:13:58 +00:00
mikel
4ab6dc7d2e allow examination of SIGKILL and SIGSTOP signal handlers (but still
disallow changes); from Klaus Klein in PR standards/3398.
1997-03-27 07:52:25 +00:00
scottr
1cc0fb9b24 Add SDEV_AUTOSAVE quirks for IBM 0663H{08,12} disks 1997-03-27 07:37:54 +00:00
scottr
b316767c92 Work around an ambiguity in the SCSI spec. Some implementations,
particularly older ones, don't do a SAVE DATA POINTER before disconnecting.
When the driver reconnects, it does an implicit RESTORE POINTERS, and
restores the data pointer from *before* the last transfer.  If the driver
calculates the residual using the data pointer and doesn't account for
this, the residual will be wrong.

What we do is test for the SDEV_AUTOSAVE quirk when we see a disconnect
message, falling through to do a SAVE DATA POINTER if the quirk applies
to this target.

The workaround was suggested by Mycroft, who also provided the explanation
of the problem.  Actual code was (mostly) ripped off from the 53C9x driver.
1997-03-27 07:30:40 +00:00
mikel
b81091e992 POSIX.1 specifies that a failed link() to a directory must return EPERM,
and EMLINK was not documented; from Klaus Klein in PR standards/3397.
Also documented EOPNOTSUPP for filesystems that don't support hard links.
1997-03-27 07:30:25 +00:00
mycroft
b9a022ebe6 Add EXEC_ELF32. 1997-03-27 06:18:31 +00:00
mikel
19fd4b60de make setpgid(pid, pgrp) return EINVAL if pgrp < 0 as required by POSIX.1;
from Klaus Klein in PR standards/3395.
1997-03-27 06:14:03 +00:00
cgd
bf22891897 update for current system configuration 1997-03-27 06:04:39 +00:00
gwr
8be7d1ef9e No longer need the hack that forced SCSI_POLL when cold. 1997-03-27 01:16:01 +00:00
pk
c5d5c54038 Add workaround for the "extraneous bytes after re-select" problem that
ESP100 chips may exhibit.
1997-03-27 00:29:57 +00:00
gwr
5b48e061ce cleanup 1997-03-27 00:15:31 +00:00
gwr
9228e630d5 s/boot/cpu_reboot/ 1997-03-26 23:44:27 +00:00
gwr
c29412f1bb fix a warning 1997-03-26 23:27:12 +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
gwr
7b23790667 Add cdev_lpt_init(NPP,pp) for the 3/80 1997-03-26 17:29:10 +00:00
gwr
c304845074 Arrange to make pp.h needed by conf.c
(printer port driver is on the way).
1997-03-26 17:26:48 +00:00
leo
27228d890b Apply optimizations suggested by gwr & mycroft. 1997-03-26 15:50:39 +00:00
leo
c28576c255 Close disk after opening it to read the disklabel. The previous code did 2
opens...
1997-03-26 15:49:31 +00:00
leo
16bc86449a Use m68k/sig_machdep.c 1997-03-26 15:46:12 +00:00
leo
1bca40723b Add missing 'break'. 1997-03-26 15:44:03 +00:00
thorpej
66908db327 Resolve conflicts from merge. 1997-03-26 02:08:07 +00:00
thorpej
8443f8fad0 Resolve conflicts from merge. 1997-03-26 01:33:32 +00:00
thorpej
fecae4de60 Back out the previous change (add IFM_10_EXT) after some dicussion
w/ BSDI and Matt Thomas.
1997-03-26 01:19:27 +00:00
perry
51157fe131 Comment out the wt driver -- its rather dangerous to ed users, as it
turns out. Also, add a comment explaining this.
1997-03-26 01:16:23 +00:00
pk
b468feeebf In pmap_remove(), check for an empty segment before calling one of the
helper functions. This cuts down the number of needless function calls
by approx. 80%, which has a healthy effect on the responsiveness of
a machine under heavy process creation/teardown loads.
The VM system seems to be fond of asking to delete page mappings
which aren't there..
1997-03-25 23:04:02 +00:00
scottr
757d4ce5d4 Add SDEV_NOLUNS quirk for Seagate ST125N. 1997-03-25 22:33:50 +00:00
christos
d465daac1e make sure that the tty layer restarts the ppp layer when there is an error
such as out of buffer space.
1997-03-25 22:33:25 +00:00
cgd
6f1ffd0192 kill cfb and sfb in the standard configs 1997-03-25 20:35:03 +00:00
jonathan
3f9bb9b9e8 Add <if_media.h>, am7990var.h requires it. 1997-03-25 19:06:02 +00:00
christos
93b36b663d PR/3388 from Tatoku Ogaito: Add product id for another soundblaster PnP card. 1997-03-25 15:16:49 +00:00
mikel
eba3c11c27 some cleanup; still needs a *lot* of work 1997-03-25 07:57:14 +00:00
mark
b28684079f Fix broken vidcaudio_set_format() prototype. 1997-03-25 05:09:01 +00:00
jonathan
9a834c4127 Add ARP hardware type for Richochet "starmode" radio addresses. 1997-03-25 02:30:52 +00:00
gwr
90a79f75fe Change continue to break in a few places (as suggested by mycroft). 1997-03-24 23:49:39 +00:00
cgd
b1e061e899 Optimize the case of writing to /dev/zero, and clean up the
surrounding code a bit.  Partly suggested by gwr, them implemented
by mycroft in the i386 port, then cleaned up a bit to fit here.
1997-03-24 23:01:40 +00:00
pk
eb3b79e0f2 Move `#endif /* SUN4M */' downward. 1997-03-24 22:56:37 +00:00
mycroft
6962daa0f8 KNF police. 1997-03-24 21:50:48 +00:00
mycroft
13ca4f0381 Do not return generation counts to the user. 1997-03-24 21:44:53 +00:00
christos
261ef8aa5a Add missing slpx(); from Bill Sommerfeld 1997-03-24 21:23:10 +00:00
mycroft
46f55019b7 Optimize the case of writing to /dev/zero, and clean up the
surrounding code a bit.  Partly suggested by gwr.
1997-03-24 21:16:59 +00:00
pk
4a77b646a2 Add `c_associativity' field. 1997-03-24 19:56:58 +00:00
mycroft
86f68e3d77 Build fdboot. 1997-03-24 19:53:34 +00:00
mycroft
25d692da5e Fix calculation of fmem and fmemsz for old ROMs. 1997-03-24 19:51:28 +00:00
mycroft
1b9557e827 Make the segment rounding code consistent. (No functional change.)
If DEBUG_MEMORY_LIST, wait for a keypress before starting the kernel; never
time out.
1997-03-24 18:56:26 +00:00
mycroft
86818ac5a8 Kluge to allow building on a M68K4K system. 1997-03-24 18:52:46 +00:00
scottr
9614615f6f Add se driver 1997-03-24 18:28:40 +00:00
scottr
5fd56d4f40 Add se, and make some comsmetic changes for easier maintenance. 1997-03-24 18:20:10 +00:00
gwr
7c0bd080c9 No longer force boothowto=RB_SINGLE|RB_KDB
(Yes, it goes multi-user just fine! 8^)
1997-03-24 17:57:12 +00:00
gwr
8ac50ae86b Sync with sun3 (no longer need -DSUN_BOOTPARAMS) 1997-03-24 17:55:40 +00:00
gwr
8bec95da2c Use ${INSTALL} ... 1997-03-24 17:48:19 +00:00
gwr
199246e95f No longer need SYMTAB_SPACE now that sun3x/stand/* works.
(Thanks, Jeremy!)
1997-03-24 17:39:04 +00:00
gwr
b72b9f00ea Use "if_ether.h" (from sys/lib/libsa). 1997-03-24 17:32:21 +00:00
gwr
5c88d15269 When cold!=0 force SCSI_POLL (otherwise swapconf will hang) 1997-03-24 17:16:45 +00:00
thorpej
6adc9b82fd Add the IFM_10_EXT ("external") ethernet subtype, to accomodate cards
that have the notion of an "external media port".  Suggested by
Matt Thomas <matt@3am-software.com>.
1997-03-24 06:57:31 +00:00
jtk
983d7a8c15 use new name sc_drq8 and initialize sc_drq16 (reflect changes to SB driver) 1997-03-24 05:30:28 +00:00
mycroft
136c4013aa Expand the comment on the previous. 1997-03-24 01:36:43 +00:00
mycroft
bfcfadcf86 Reenable the keyboard controller reset hack. 1997-03-24 01:32:38 +00:00
thorpej
4c03c2945d Resolve conflicts from merge. 1997-03-24 00:35:02 +00:00
thorpej
24840394af Fix a screwup (my fault, oops) that caused the stack to get corrupted.
From Ian Dall <Ian.Dall@dsto.defence.gov.au> on port-pc532.
1997-03-24 00:04:53 +00:00
cgd
1b15d36cf1 eb64+ needs shared_intr.c 1997-03-24 00:00:33 +00:00
pk
f62b65006f Clamp burst sizes to maximum value of parent.
Reset ledma from leattach().
1997-03-23 22:54:26 +00:00
fvdl
17d7bd9d41 Check for the use of reserved ports on a per-request basis, unless
MNT_EXNORESPORT is specified. The check is cheap and doesn't impose
any extra overhead.
1997-03-23 20:55:51 +00:00
fvdl
1a6e45d35f Add MNT_EXNORESPORT option. 1997-03-23 20:54:06 +00:00
is
f63af0fda7 Now that ARP on ARCnet works, set it as default. 1997-03-23 15:59:41 +00:00
veego
196e8ba3c2 Resolve conflicts from merge. 1997-03-23 09:37:28 +00:00
is
4555777c80 Fix several bugs related to the new ARP code, and ARCnet ARP support.
Among other, add ARPHRD_ARCNET definition, make sure the hardware type is
set on outgoing ARP packets, make sure we dont send out replies as broadcasts.
1997-03-23 01:22:35 +00:00
cgd
da14b3d856 clean up isp_poll() so that it works more correctly. (Modeled on the version
in the BusLogic driver.)
1997-03-23 00:50:07 +00:00
cgd
d9eb899be8 add the PPP_FILTER option 1997-03-23 00:48:37 +00:00
ragge
720d1ef3f7 Update address struct to recognize KA420 motherboard. 1997-03-22 23:05:31 +00:00
ragge
65469bc546 CPU support for MV3100. (KA41) 1997-03-22 23:02:07 +00:00
pk
a13464f5c9 Garbage collect. 1997-03-22 22:13:17 +00:00
pk
f839bb9816 Add a `[ide]c_ncachelines' field to cacheinfo structure; initialize
and use it where appropriate.
Add `swift' and `turbosparc' cache enable function.
1997-03-22 22:03:25 +00:00
pk
8d0c0fd49b For each major "module", define a separate set of MMU control register bits. 1997-03-22 19:15:53 +00:00
mycroft
7d3520e146 Redo the way exceptions are set up, and add a handler for
exception 15, which the P6 local APIC may erroneously send us.
1997-03-22 16:56:00 +00:00
ragge
ab80098c50 Clean up DZ console routines. Use memory size from boot (if provided). 1997-03-22 12:50:56 +00:00
ragge
608bad4ba2 Bugfixes to lance routines. Get memory size from rpb to pass to kernel.
Support some more CPU types in boot.
1997-03-22 12:47:27 +00:00
thorpej
edad9d2e05 Purely cosmetic whitespace/indentation changes (mmm, indent(1)) 1997-03-22 09:13:48 +00:00
thorpej
e321bba79a Purely cosmetic whitespace/indentation changes (mmm, indent(1)) 1997-03-22 09:03:29 +00:00
thorpej
83edf0b6cd - oops, fix a missing space in a printf
- allow whitespace before a command, and if there is only whitespace,
  don't print the help message (seeing a help message after just
  tapping return can be a shade annoying).
1997-03-22 09:00:41 +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
thorpej
ecfdbcaa40 Mimmick the old boot block's hdN -> Xd0 (where X is specified by the
disklabel type) unit conversion behavior.
1997-03-22 04:15:51 +00:00
thorpej
f07be03679 Purely cosmetic whitespace and indentation changes (mmm, indent(1)) 1997-03-22 01:48:27 +00:00
thorpej
5e82fddd43 Purely cosmetic whitespace/indentation changes (mmm, indent(1)) 1997-03-22 01:41:34 +00:00
thorpej
ddf4bc9113 Don't abort if we don't find an MBR or NetBSD MBR partition; simply assume
that the NetBSD portion of the disk begins at sector 0.
1997-03-22 01:33:10 +00:00
mycroft
e44dc60fc6 Fix editing error in new config changes. 1997-03-22 00:17:59 +00:00
thorpej
5bd8a86d23 Link installboot statically so that it can be used on install floppies
and in emergency situations.
1997-03-22 00:16:56 +00:00
gwr
c874276d35 First cut at crashdump support. 1997-03-21 22:46:05 +00:00
thorpej
0e541517e5 Nuke unneeded "machine ..." line, pointed out by John Birrell. 1997-03-21 22:40:33 +00:00
scottr
f3f27175b6 Clean up after arp conversion; from Erik Bertelsen, closes PR 3372. 1997-03-21 21:42:39 +00:00
gwr
00ae7b5b2a Oh well... use our own version of this. 1997-03-21 18:57:54 +00:00
mycroft
9e9b78f1b5 Don't feed packets to BPF that were not `sent' from the loopback device.
From PR 1693, by Jean-Luc Richier.
1997-03-21 16:58:49 +00:00
pk
e38b52a46b Thinko. 1997-03-21 16:29:34 +00:00
pk
1bc742e6dd cypress_cache_enable: clear bits explicitly before setting. 1997-03-21 15:35:51 +00:00
pk
d584dba41d Use `setpgt4m()' in some more places. 1997-03-21 15:19:29 +00:00
pk
3a7c1b8d57 viking: flush cache before enabling MMU. 1997-03-21 14:30:19 +00:00
veego
d34943dc4f Add a missing test for the PicassoIV, which fix the colour problem. 1997-03-21 09:40:58 +00:00
matthias
c796ad8010 Add missing arp tag for se driver. 1997-03-21 08:55:09 +00:00
pk
e221d20b5b Compute a cache attribute correctlier. 1997-03-21 08:39:40 +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
jeremy
4d949455d4 Fixed address for bwtwo framebuffer. 1997-03-21 07:28:36 +00:00
mikel
e19a744a21 kern.osrevision now returns value of NetBSD symbol (from <sys/param.h>),
not BSD symbol.  fixes PR kern/2016.
1997-03-21 06:50:48 +00:00
cgd
e2effbd3b9 define Elf{,32,64}_Note as appropriate, add a constant for NetBSD-specific
notes' 'name' fields, and add a couple of NetBSD-specific note types.
1997-03-21 05:34:40 +00:00
mycroft
cf83d6c33f Use native IPL_AUDIO for i386. 1997-03-21 04:36:29 +00:00
mycroft
1963665c7e Add IPL_AUDIO. 1997-03-21 04:34:18 +00:00
mycroft
188dec4d19 Clean up a bit, and export isa_dmamask() and isa_dmaunmask() interfaces. 1997-03-21 02:17:11 +00:00
pk
cb8601ae21 In viking_pcache_flush(), use a "flash flush" during boot-strapping. 1997-03-21 01:49:03 +00:00
pk
28350d7d18 Set pcache_flush_line function pointer for correct cache configuration. 1997-03-21 01:47:15 +00:00
pk
31f3ff5346 Store cache associativities in the `cacheinfo' structure, and use it
in computing the cache "alias distance" and in the viking cache line
flush function.
1997-03-21 01:32:15 +00:00
cgd
a823d31f7e fix check for bus number when root dev is behind PPB 1997-03-21 01:26:08 +00:00
cgd
26c8aefcc3 clean up CPU specs a bit. Add entries for the jensen and eb64+ (commented
out since they're not currently supported, but the options are 'known').
Add 'se' Cabletron SCSI Ethernet driver.
1997-03-21 01:12:40 +00:00
cgd
f0833f24f4 clean up CPU specs a bit. Add entries for the jensen and eb64+ (commented
out since they're not currently supported, but the options are 'known').
1997-03-21 01:12:21 +00:00
cgd
2d3755c5ba files file entry for eb64+ 1997-03-21 01:09:02 +00:00
mycroft
51c794927e Minor changes. 1997-03-21 00:56:43 +00:00
mycroft
9bc57d2244 Add PnP ID for SB AWE32. 1997-03-21 00:49:38 +00:00
mycroft
3523bc35d5 Add an isa_dmacount() function, to get the current residual count on a channel. 1997-03-21 00:00:21 +00:00
pk
d79f5b1733 Add declaration. 1997-03-20 23:57:30 +00:00
pk
5704efd375 Replace many setpte4m() calls with a simpler helper function because
the address of the desired PTE location is readily available in the
callers context (setpte4m() retraces the entire 3-level structure
to arrive at the PTE location).

Also, in many cases we can do away with the distinction between pmaps
that have or have not allocated a context. This is really only useful
in cases where we're interested in the REF or MOD bits which can differ
in the TLB version of a PTE.  By doing this, we avoid getpte()'s which
in many cases instruct the MMU to start a table walk only to find out
that there's nothing there after going 2/3 of the way, or waste a TLB
entry because of TLB flushing soon after getpte() completes.

In addition, there's a hook to flush the cache line corresponding to
the (kernel virtual) location of a PTE entry when it gets altered.
1997-03-20 23:48:37 +00:00
pk
6cea599cbf Add hook for flushing a single cache line. 1997-03-20 23:26:23 +00:00
pk
63c1c6ab1c Remove a bunch of no-ops. 1997-03-20 21:44:21 +00:00
mycroft
6f51eb5c3d Use autoinitialize DMA mode on the SB2 and later. Partly from Torsten Duwe. 1997-03-20 21:42:11 +00:00
chuck
63c14f2d75 MAJOR CHANGES: [contributed by Chuck Cranor <chuck@ccrc.wustl.edu> and
Anne Hutton <hutton@isi.edu>]:
   - add support for Adaptec 155 PCI ATM cards (e.g. ANA-5940)
          - add sc->is_adaptec to handle differences between cards.
          - break out MID_MK_TXQ/MID_MK_RXQ seperate macros to handle
                  the new Adaptec format TXQ/RXQ.
          - adjust en_dqneed to return 1 on ADP (since the Adaptec can
                  DMA anything in one DRQ/DTQ!)
          - add hook for a bus specific reset function (adaptec has
                  a seperate reset register that needs to be hit when
                  resettting the midway).
          - adjust DMA test to not worry about burst sizes on the
                  adaptec (since it handles it all for us!) and to handle
                  the new DTQ/DRQ format.
          - add Adaptec DMA support to en_txlaunch() and en_service()


BUG FIXES:
   - fixed receiver panic under heavy load ("lost mbuf in slot 0!").
          when the reassembly buffer overflows, the T-bit is set in
          the RDB and the data field is empty.  en_service() sets up
          a 4-byte (RDB size) dummy DMA without IF_ENQUEUE.  but the
          recv intr handling in en_intr() always does IF_DEQUEUE.
          as a result, a successive recv intr loses its mbuf and
          leads to a panic.  the solution is to only IF_DEQUEUE if
          the interrupt has non-zero length (indicating that there
          is an mbuf to get).   in order for this to work, EN_DQ_MK
          must always be non-zero.   we do this by or'ing in an unused
          bit (0x80000).
                  reported by: Kenjiro Cho <kjc@csl.sony.co.jp>

   - fix setting of transmit channel when txspeed[] is non-zero
          (e.g. traffic shaping).    the old scheme didn't work
          properly (it allowed the same VCI to use multiple tx channels
          thus defeating the txspeed[] parameter).   the new scheme
          statically assigns a VC to a channel when txspeed[] is set.
          [note that the code to set txspeed[] isn't in the driver right
          now since a MI interface to do this hasn't been made yet]
          we add sc->txvc2slot[] and sc->txslot[n].nref for this.
                  reported by: Kenjiro Cho <kjc@csl.sony.co.jp>,
                                  Milind M Buddihikot <milind@ccrc.wustl.edu>,
                                  Dong Lin <dong@eecs.harvard.edu>

   - when doing SRAM copies, be sure to round up the length to the next
          largest word (otherwise the driver will try to do a byte clean
          up DMA and then get an ID error interrupt).


MINOR CLEANUPS:
   - clean up loops in DMA test
                  contributed by: Kenjiro Cho <kjc@csl.sony.co.jp>

   - restructure and cleanup of en_read/en_write macros/inlines

   - clean up some byte ordering stuff so that we are consistant throughout
          the driver
1997-03-20 21:34:42 +00:00
chuck
aeee0bf5a5 add support for adaptec PCI atm cards (see midway.c log for details) 1997-03-20 21:30:46 +00:00
jeremy
4882df57ff Change location of if_ether.h to net/ from netinet/. 1997-03-20 21:21:00 +00:00
pk
5718c246fd Define various no-op functions. 1997-03-20 21:16:20 +00:00
pk
7cf0d72881 Add a `no-op' function that the compiler can not touch. 1997-03-20 21:10:31 +00:00
chuck
e64066a694 regen 1997-03-20 20:22:17 +00:00
chuck
088d71a793 - add Adaptec ATM ID's (0x5900, 0x5905). still trying to find out how they
correspond to the ANA numbers...  certainly includes ANA-5940.
 - add Efficient Nets product 0x0000.  according to linux pci.h
	the 0x0000 is an FPGA version of the midway card and the 0x0002
	is the ASIC version.
1997-03-20 20:18:43 +00:00
mycroft
b89990fba6 Oops; fix pasto. 1997-03-20 20:18:40 +00:00
mycroft
4f9648674a Make sure we round the block size to a multiple of the sample size. 1997-03-20 20:15:24 +00:00
scottr
1c9987dab4 Several minor changes:
- Indent some comments appropriately per KNF.
 - Output all diagnostics using the device name rather than a static string.
 - Fix a (mostly marmless) bug in snintr(), where loss of heartbeat wasn't
   properly ignored and could mask the `receive descriptors exhausted'
   diagnostic.
1997-03-20 17:47:51 +00:00
mycroft
7a55cafeeb Implement set_format. 1997-03-20 16:51:38 +00:00
gwr
a4b8e33b2b This needs muli-include protection now. 1997-03-20 16:21:10 +00:00
is
6c55a345c6 Make this compile with NetBSD-1.2D (if_ether.h location changed). 1997-03-20 16:15:15 +00:00
is
5df51f68f4 Make this compile with 1.2D (if_ether.h location changed) 1997-03-20 16:14:22 +00:00
mycroft
2c6048e49f Make sure to recalculate the block size after changing the
sampling rate.  Also, nuke the global variable audio_blocksize.
1997-03-20 16:13:55 +00:00
mycroft
b1a3eda88c Copy back the format we set in SNDCTL_DSP_SETFMT. 1997-03-20 16:11:29 +00:00
mycroft
e0b3534b6c Remove bogus block rounding code. If the application sets a
block size explicitly, it had better know what it's doing.  From
PR 2587, by Robert Baron.
1997-03-20 16:04:22 +00:00
gwr
c3f299a527 Now using dev/ic/ncr53c9x.c 1997-03-20 16:01:36 +00:00
gwr
c921c9b954 This needs muli-include protection now. 1997-03-20 15:56:44 +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