Commit Graph

41072 Commits

Author SHA1 Message Date
enami
3a909c64a6 Use splnet instead of splimp in wi_ioctl. 2000-10-12 04:50:58 +00:00
msaitoh
0a5e7f9f3f enclose offsetof macro definition with #ifndef offsetof ... #endif 2000-10-12 03:42:33 +00:00
enami
4c00a9d6aa Bail out initailzation on buffer allocation failure. 2000-10-12 03:29:59 +00:00
oster
fc40c38df6 Minor fixup for a printf(). Noted by Robert Elz. 2000-10-12 03:28:49 +00:00
onoe
29780c8cd7 add Tulip (tlp) at apbus 2000-10-12 03:18:41 +00:00
onoe
3c201cca80 change the type of the apbus interrupt handler from void to int
for each driver to indicate the interrupt has been handled or not.
2000-10-12 03:17:25 +00:00
onoe
935577e7bc Tulip driver for NWB-5852A, which is an APbus board with DEC-21140A chip.
without MII.  It supports 100BaseTX only.  Half duplex/Full duplex can
be specified manually, but there are no auto negotiation functionality.

XXX:	It takes 34 seconds before sending/receiving packets on the wire
	after initial setup.  It is obviously a bug because the board
	just works fine on NEWS-OS, but I cannot find what's wrong...
	Once it starts working, it seems there are no problems.
2000-10-12 03:15:59 +00:00
onoe
31624ad662 use macro to access interrupt mask register. 2000-10-12 03:15:21 +00:00
onoe
f2c3050d29 change the type of the apbus interrupt handler from void to int
for each driver to indicate the interrupt has been handled or not.
2000-10-12 03:13:47 +00:00
onoe
be4c939451 change the type of the apbus interrupt handler from void to int
for each driver to indicate the interrupt has been handled or not.
add prototype of apbus_dmatag_init() function, which allocates memory
and initialize its member including bus space handle to flush DMA write
cache.  Note that the allocated pointer must be freed.
2000-10-12 03:12:01 +00:00
onoe
655ba83924 Allow multiple interrupt handler on same interrupt event.
Clear interrupt mask for specified interrupt in apbus_intr_establish().
Add dma stuff; define apbus_dmamap_sync() to flush DMA write cache by
accessing the corresponding I/O port.
2000-10-12 03:11:38 +00:00
onoe
de22372491 Use 1MHz freerun counter for microtime().
Show address for bus error, and DMA address error.
	should be panic, but only printf for now.
2000-10-12 03:10:37 +00:00
onoe
68f82490a3 Support scsi boot device for NWS-5000.
Support NWS-3700, which is very similar with NWS-3400.
Do not depend on modelid of idrom, which is useless in most cases.
2000-10-12 03:10:07 +00:00
onoe
4e2e140f75 Do not access graphic console if probing framebuffer fails for NWS-3400.
Use serial console instead regardless the dipsw.
2000-10-12 03:08:58 +00:00
onoe
1383251d9a Bus I/O and DMA access macros/routines. 2000-10-12 03:07:59 +00:00
onoe
0ff12521fa Add address for free running 1MHz 1counter.
Add registers for APbus I/F gatearray.
2000-10-12 03:07:02 +00:00
itojun
32e7a2cd70 hifn7751 crypto card driver. from openbsd.
does nothing useful at this moment - initailize the chip, that's all.
TODO: crypto logic framework in kernel (see openbsd sys/crypto)
TODO: ipsec frontend (need major rework in ipsec tree - should start with busywait)
TODO: character device frontend
2000-10-12 02:59:59 +00:00
itojun
8d7ce38746 regen 2000-10-12 02:54:13 +00:00
itojun
429b0af909 pci device ID for hifn 7751-based crypto cards. from openbsd. 2000-10-12 02:52:58 +00:00
enami
b204f9e433 Use ether_ioctl. 2000-10-12 02:24:08 +00:00
sommerfeld
2383226766 Silence format warning. 2000-10-11 22:03:33 +00:00
mhitch
28c4cc2851 Use uncached memory so this has a chance of working on R4x00 DECstations.
My 5000/260 hung hard when a PMAG-D board was probed during boot.
2000-10-11 17:55:56 +00:00
thorpej
76589fafd4 - uvmspace_share(): If p2 has a vmspace already, make sure to deactivate
it and free it as appropriate.  Activate p2's new address space once
  it references p1's.
- uvm_fork(): Make sure the child's vmspace is NULL before calling
  uvmspace_share() (the child doens't have one already in this case).

These changes do not change the behavior for the current use of
uvmspace_share() (vfork(2)), but make it possible for an already
running process (such as a kernel thread) to properly attach to
another process's address space.
2000-10-11 17:27:58 +00:00
thorpej
47a2016cdc - Change SAVE_HINT() to take a "check" value. This value is compared
to the contents of the hint in the map, and the hint saved in the
  map only if the two values match.  When an unconditional save is
  required, the "check" value passed should be map->hint (and the
  compiler will optimize the test away).  When deleting a map entry,
  the new SAVE_HINT() will only change the hint if the entry being
  deleted was the hint value (thus preserving any meaningful hint
  that may have been there previously, rather than stomping on it).
- Add a missing hint update when deleting the map entry in
  uvm_map_entry_unlink().  This is the fix for kern/11125, from
  ITOH Yasufumi <itohy@netbsd.org>.
2000-10-11 17:21:11 +00:00
thorpej
2198741306 Use ether_ioctl(). 2000-10-11 16:57:45 +00:00
thorpej
339724bb6f NetBSD 1.5H: struct ifnet changed. 2000-10-11 16:55:11 +00:00
thorpej
fabbb33a60 Implement ether_ioctl(), ioctl operations common to all Ethernet
interfaces.
2000-10-11 16:53:41 +00:00
thorpej
7e2259325b Change the if_reset vector to if_init, and add an if_stop. if_stop
also takes an argument indicating whether or not the interface should
also be disabled (i.e. power removed, resources freed, etc.)
2000-10-11 16:52:34 +00:00
onoe
fcde56c9ba Add flags to indicate that tlp_init() should set some more BUSMODE bits.
TULIPF_BLE	/* data is big endian */
	TULIPF_DBO	/* descriptor is big endian */
These setting is required for Big-endian bus front-end (such as APbus for
newsmips) to work with tulip.  Also,
	sc_maxburst
member is added to the tulip_softc to limit the maximum burst length.
This member defaults to zero which means no restriction for burst length.
2000-10-11 14:59:52 +00:00
pk
0abaf0f210 Fix compilation errors: unused variable & missing function return values. 2000-10-10 23:33:52 +00:00
jeffs
bdbb241be6 Fix race between pmap_enter() and pagedaemon. If we are low on memory and
pmap_enter() cannot allocate the segmap return failure if PMAP_CANFAIL
instead of sleeping.  Otherwise panic.  Both alpha and i386 do this.  Do
not pmap_enter_pv() until after this is done so the data structures are
not partially allocated.  This should prevent pmap_page_protect() from
getting stuck when called from pagedaemon.
2000-10-10 20:39:42 +00:00
jeffs
db1bb008f9 Set return value correctly for memcpy/memmove. 2000-10-10 20:29:03 +00:00
he
489b832f9b Add randomness sampling from hil, sd and rd devices. 2000-10-10 19:58:42 +00:00
itojun
8fa0e6b9f7 sync with kame ($KAME$) 2000-10-10 16:26:43 +00:00
enami
0b9cbefe70 Don't initialize TCP twice on v4/v6 dual stack kernel. 2000-10-10 13:25:28 +00:00
augustss
41bb27ce0d Regen. 2000-10-10 12:38:24 +00:00
augustss
1f06d9f822 Another vendor&product code. 2000-10-10 12:38:00 +00:00
augustss
8adc2fb7f3 Don't free unallocated pointer in detach (can happen if detach happens
before attach has finished).
2000-10-10 12:37:01 +00:00
itojun
014e2a97b5 fix comment (s/IPv6/IP/) 2000-10-10 11:43:51 +00:00
ad
e126f09103 Switch to sys/dev/md_root.c. 2000-10-10 10:25:55 +00:00
itojun
b69ea2a63d make it work right on non-32bit arch. from kjc@csl.sony.co.jp 2000-10-10 10:15:00 +00:00
ad
04e67112d6 Remove defunct bpfdetach()/ether_ifdetach() calls. 2000-10-10 10:07:35 +00:00
thorpej
053e3ba195 Make sure to set the residual count to 0 after a miniroot access
or after bitbucketing I/O during shutdown.
2000-10-09 18:07:06 +00:00
bouyer
64c818a7e2 Emit a warning when a symbol is undefined. 2000-10-09 15:57:56 +00:00
enami
db6fba6bdf Move inclusion of rnd.h and sys/rnd.h from tulip.c to tulipvar.h. 2000-10-09 14:31:01 +00:00
enami
ca88e2b6bd Make tulip a random source. 2000-10-09 12:54:28 +00:00
dbj
15034fe38a add rnd_source field to mb8796_softc
this fixes compile problems with rnd pseudo-device added to GENERIC kernel
patch submitted by greg oster
2000-10-09 10:45:45 +00:00
nisimura
778081cbf4 Add mtc0 insn to load TX3900 config register value to determine Dcache size. 2000-10-09 10:14:23 +00:00
nisimura
89e5c346a4 mips1_ConfigCache() has gone. 2000-10-09 07:33:31 +00:00
onoe
eb1f8f2a3a Map the ioctl number of ifioctl ('i') group as much as possible.
commands are:		FreeBSD	NetBSD
	SIOCALIFADDR	27	28
	SIOCGLIFADDR	28	29
	SIOCDLIFADDR	29	30
	SIOCGIFMTU	51	126
	SIOCSIFMTU	52	127
* SIOCGLIFADDR is necessary for cvsup to work.
commands not emulated are:
	SIOCGIFPHYS, SIOCSIFPHYS, SIOCGIFSTATUS, SIOCSIFLLADDR
2000-10-09 06:19:31 +00:00