Commit Graph

39711 Commits

Author SHA1 Message Date
matt
5d9fda1ecd switch size_t, ptrdiff_t, & ssize_t to long int (signed or unsigned) for
__ELF__.
2000-07-17 02:52:24 +00:00
thorpej
887bebaa71 Define IOASIC_DMA_BLOCKSIZE (4096 bytes). 2000-07-17 02:18:17 +00:00
thorpej
8623daff6d G/c some unused (and incorrect, for our usage) definitions. 2000-07-17 02:17:13 +00:00
thorpej
95f72dd4aa Use the IOASIC_DMA_ADDR() macro now that it is fixed. 2000-07-17 01:29:02 +00:00
thorpej
cd6fa19644 Make sure to get the upper 5 bits of the page address mixed in
in IOASIC_DMA_ADDR(), as the le_ioasic attachment does.  Noted
by Gregory McGarry.
2000-07-17 01:28:16 +00:00
jdolecek
77c0fe57cf convert to use version template and newvers_stand.sh script for generating
bootblock revision strings, use bootbock_name[] (i.e. "NetBSD/sun3")
	in initial bootblock messages instead of just "NetBSD"

while here, do sligh Makefile cleanup to share more code between them and also
	to make buildable on NetBSD 1.4.1 (my test compile system)
get rid of the XX define hack for netboot & ufsboot, build xxboot.c as
	part of libsa - previos main() was renamed to xxboot_main(), main()
	is now in respective conf.c files and calls xxboot_main() with
	appropriate name of boot block type

XXX I had no chance to actually test the resulting bootblocks, but the
changes were fairly streightforward and should no influence functionality of
boot code
2000-07-16 21:56:12 +00:00
fvdl
57e3691758 Don't wait for B_READ buffers to finish in vfs_shutdown, it makes no sense
to do so.

From Ethan Solomita.
2000-07-16 21:07:24 +00:00
tron
114bb7f9d9 If card is in power state D3 put it into power state D0 so that it will
at least work after the next reboot.
2000-07-16 20:18:48 +00:00
bjh21
d9151a2dc8 Add a uuencoded tokenised BASIC version of BBBB, since it can't yet be
generated without RISC OS.
2000-07-16 12:54:04 +00:00
bjh21
87dbab4963 Warn about <8bpp screen modes.
Fix a typo in "page in use" message.
2000-07-16 12:46:50 +00:00
itojun
5f09b77987 s/IPSEC_IPV6FWD/IPSEC/. this should correct strange behavior on ipv6
forwarding (even if policy asks for tunnel mode encryption, packets
go out in clear).  sync with kame.
2000-07-16 07:57:55 +00:00
christos
480203ba75 change intptr_t and uintptr_t to long and unsigned long respectively. This
is a noop on 32 bit machines, but it makes lint quiet and it is more correct.
2000-07-16 02:18:11 +00:00
itojun
a2744a4cf8 do not pull sys/queue.h from netinet6/in6.h. PR10597.
some sync with kame.
2000-07-16 01:10:34 +00:00
jdolecek
24c327fe78 Add an option to do case-insensitive lookups even on Rock-Ridge CD-ROMS.
Add 'rrcaseins' option to mount_cd9660(8).

This addresses kern/2419 by Jason Downs.
2000-07-15 21:40:42 +00:00
jdolecek
e7d7ef2275 one less - though we don't have 'notrans', we have 'nomaplcase' now 2000-07-15 21:37:50 +00:00
jhawk
859057e6b3 Fix uninitialized variable (reg) in fxp_pci_confreg_restore();
this could result in garbage being written to the PCI status register,
which is unlikely to have had a serious effect. This was with us from
an #if 0 added in rev 1.6.
2000-07-15 21:36:19 +00:00
tron
9feae259a4 Avoid printing duplicate colon when card is waked up. 2000-07-15 20:57:24 +00:00
matt
2890290b0f Add com* at obio0. (Tadpole & JavaStation) 2000-07-15 19:59:53 +00:00
tron
cfe61a3025 Un-__P'ify kernel prototypes. 2000-07-15 19:59:27 +00:00
matt
1d97a430c4 Enhance this so it support the com port on the JavaStation 1 as well as
the tadpole internal modem.
2000-07-15 19:57:03 +00:00
scw
83e844cf03 Add a prototype for netintr() 2000-07-15 19:17:19 +00:00
drochner
54ccff0437 define "80x24" screen types for better vt100 compatibility 2000-07-15 18:47:54 +00:00
scw
20305c6623 Fix a typo in the `device_lookup()' changes. 2000-07-15 18:12:42 +00:00
scw
b3b275a389 The install ramdisk has grown somewhat, and now overwrites the
`ie' chip's packet buffer... Moving it up to just below the netboot
image (4MB) should leave room for a few more year's bloat. ;-)
2000-07-15 16:04:24 +00:00
eeh
eb5863f522 #ifdef BOOT_DEBUG --> BDPRINTF(PDB_BOOT, (...)) 2000-07-15 14:26:39 +00:00
tron
61c607b9fe Improve kernel message when card is in power state D3. Instead of...
epic0 at pci0 dev 11 function 0 epic0: unable to wake up from ...

... print this:

epic0 at pci0 dev 11 function 0: unable to wake up from power state D3
2000-07-15 10:32:36 +00:00
tron
498310f5be Check if card was put into sleep mode using PCI/ACPI power management
and try to restart it. This patch based on hints by Jason Thorpe.
2000-07-14 22:00:32 +00:00
tv
1276c517f4 Remove ENOTSUP for the moment. This needs a unique number, as noted by
kleink, and there are a few more from SUSv2 that we should have for
completeness anyway--these will be added in the near future.
2000-07-14 21:39:56 +00:00
soren
b141a6bfe8 Merge-o. 2000-07-14 21:09:45 +00:00
eeh
4eacbabe76 Make 64-bit stack tracebacks look decent. 2000-07-14 21:07:10 +00:00
eeh
6667752114 Move some macro definitions out of genassym and into locore.s 2000-07-14 21:04:16 +00:00
eeh
3143adecfb Tell gcc that stores clobber "memory". Probably makes no difference since
they should not be used to access normal memory anyway.
2000-07-14 21:02:11 +00:00
eeh
41da794863 Make all the inline functions static. 2000-07-14 21:00:17 +00:00
eeh
7b6085ff22 Add support for 64-bit PIC and dynamic linking. 2000-07-14 20:59:07 +00:00
jeffs
1dfa0ec96d Use cpu_intr() definition from mips/cpu.h instead of local one. 2000-07-14 18:35:38 +00:00
thorpej
9d069ade37 Sprinkle some const. 2000-07-14 18:26:46 +00:00
oster
dc4b749234 Fix the status reporting for copybacks. Thanks to Hubert Feyrer for
reporting the problem.
2000-07-14 15:26:29 +00:00
pk
9de310aebe Use per-PBM control/status register addresses provided by the PROM.
Print version/implementation info.
2000-07-14 15:13:35 +00:00
pk
04fe9636ba Provide details on the `psy_csr' register. 2000-07-14 15:09:51 +00:00
pk
8258c0e780 Fix padding in struct pci_ctl. 2000-07-14 13:17:12 +00:00
pk
e5a9cce870 Cast physmem to u_int64_t before applying ctob(). 2000-07-14 13:15:44 +00:00
fvdl
9067306192 Don't use *(unsigned int *)data to get the signal number out; this will
fail on LP64-BE systems. Also, fix up the invalid signal number check.
2000-07-14 12:10:58 +00:00
is
d8205b6db1 Do a dummy read after writing through the memory access pipeline, to flush
it, before starting the command to install the multicast list.
(We did it right for writing data packets, but failed here.)
Without this, the last multicast address installed won't be made active.
2000-07-14 10:50:50 +00:00
pk
68edef1bf6 Back out previous for now; it requires a system wide prototype change. 2000-07-14 09:58:52 +00:00
matthias
2d699aa6ce Change some comment formatting. 2000-07-14 08:21:14 +00:00
matthias
0688add8e8 Take care of prototype changes for console probe and console getc. 2000-07-14 08:18:49 +00:00
jun
ceafcbd834 apply Kenji Aoyama <aoyama@nk.mcu.or.jp>'s patch
on port-hpcmips-ja@jp.netbsd.org Mon, 10 Jul 2000 21:21:47 +0900

FIX:
  Can't read CIS tuple chain:some TDK CF Flash memory card.
2000-07-14 08:02:12 +00:00
thorpej
b221909e32 Sprinkle some const. 2000-07-14 07:21:50 +00:00
thorpej
195bf5c09f - Fix the likely cause of the "ps(1) hangs machine" problem. Always
vslock the user pages for the data being copied out to userspace,
  so that we won't sleep while holding a lock in case we need to
  fault the pages in.
- Sprinkle some const and ANSI'ify some things while here.
2000-07-14 07:21:21 +00:00
thorpej
8fd9032b90 ANSI'ify. 2000-07-14 07:14:33 +00:00
thorpej
424346ba85 Const'ify string constants. 2000-07-14 07:14:03 +00:00
thorpej
ba40fcada3 Sprinkle in some const. 2000-07-14 07:12:47 +00:00
tsubai
500013914e Make timebase frequency value adjustable. 2000-07-14 05:53:31 +00:00
tv
69e557a91c Add _XOPEN_SOURCE protections. The need for these is questionable, advised
by kleink about the E* predefined namespace; we'll look into that.

Also add ENOTSUP from SUSv2 as an alias for EOPNOTSUPP.  It's used by the
SUSv2 pthreads interface, has the same meaning, and pthreads does not use
EOPNOTSUPP.
2000-07-14 00:52:02 +00:00
pk
c32ffb8447 Make physmem' an unsigned int', so it can properly represent large memory
configurations.
2000-07-14 00:02:35 +00:00
jdolecek
5942ac860b switch to sys/conf/newvers_stand.sh for generating vers.c 2000-07-13 22:25:14 +00:00
jdolecek
9c15bcabda switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
2000-07-13 22:18:12 +00:00
jdolecek
f6330c6500 switch to sys/conf/newvers_stand.sh for generating vers.c
sync comments in */version with i386
add a hack to ${PROG} target so that symlinks machine, pmax, mips are
  created properly even when building on NetBSD/pmax 1.4.1
2000-07-13 22:18:08 +00:00
jdolecek
432831b01b add couple of flags which can be used to avoid generating some of the
information.
Put standard TNF copyright in, since this file no longer uses the old code.
2000-07-13 22:04:44 +00:00
msaitoh
1fa850b0ef config file for Dreamcast 2000-07-13 18:11:53 +00:00
soren
e527d66d55 Fix mem_no. Pointed out by cgd. 2000-07-13 18:10:38 +00:00
msaitoh
e633c4ca18 don't initialize BSC when BSC is already initialized (e.g. Dreamcast) 2000-07-13 18:02:10 +00:00
cgd
ca051b5fb3 fix some obvious paste errors in 'uk' cdev inits 2000-07-13 17:40:34 +00:00
thorpej
75159452f1 Sync w/ kern_time.c and sys_generic.c 2000-07-13 17:39:03 +00:00
thorpej
f9ba0345f1 XXX Use of hzto() return value needs to be double-checked here. 2000-07-13 17:35:03 +00:00
thorpej
c55e09bd44 Add a comment about the hzto() return value. 2000-07-13 17:32:06 +00:00
thorpej
c0c8481a2a New hzto() function from FreeBSD and Artur Grabowski <art@stacken.kth.se>.
Stops sleeps from returning early (by up to a clock tick), and return 0
ticks for timeouts that should happen now or in the past.

Returning 0 is different from the legacy hzto() interface, and callers
need to check for it.
2000-07-13 17:06:15 +00:00
pk
9da8631e2b printf() format for 64-bit integers tf_pc' and tf_npc'. 2000-07-13 16:44:03 +00:00
simonb
b10a1b69be Add a KERN_CONSDEV sysctl that returns cn_tab->cn_dev (if cn_tab is not
NULL).
2000-07-13 14:26:43 +00:00
itojun
20964b0c23 fatal bug fix from kame (rtentry refcnt goes negative if we play with IPv6
address/routing table too much).

in6_ifloop_request()
  not to request rtrequest to return an rtentry except for the ADD
  operation, in order to avoid misdecreasing the refcnt (which might
  cause leak of rtentry)
2000-07-13 09:56:20 +00:00
mjacob
c9f691d778 Correct omissions inadvertantly introduced when the non-debug
version (macro) was updated in exec.h.
2000-07-13 09:34:23 +00:00
jeffs
ef9531850e Add comment that overriding the sysctl defines in machine/cpu.h
breaks userland binary compatiabiltiy between mips ports.  Move
check down so common values are always defined here.
2000-07-13 07:37:11 +00:00
mrg
c0f74e1bda remove memreg.h. 2000-07-13 06:30:16 +00:00
mrg
22820972ac remove vaddrs.h 2000-07-13 06:25:55 +00:00
mrg
81ec8bef47 remove old (bogus) comment. 2000-07-13 06:23:07 +00:00
thorpej
3eedcb3009 Whitespace police. 2000-07-13 05:47:39 +00:00
mrg
d5a1bec37e bump some system values. 2000-07-13 05:40:51 +00:00
itojun
f5211e847a remove m_pulldown statistics code. it is highly experimental and belong
to kame tree only (not for *bsd).
2000-07-13 05:34:21 +00:00
matt
cb551c438d Reflect the new reality. 2000-07-13 03:18:22 +00:00
matt
841f05f1b2 Use <machine/asm.h> 2000-07-13 03:17:21 +00:00
matt
20b3698aee Include libkern.h 2000-07-13 03:13:40 +00:00
matt
98ffc615b2 Use <machine/asm.h>. (e.g. prepare for ELF) 2000-07-13 03:13:05 +00:00
matt
b4c1bfd1f3 modify load_file to load at relative vms'a as specified in the phdr's. 2000-07-13 02:35:25 +00:00
matt
84bbae583c remove a debugging printf. 2000-07-13 02:33:36 +00:00
thorpej
ccb90e6fe9 When select(2)/poll(2) is awakened by a collision, recalculate the
timeout value for tsleep().  From Artur Grabowski <art@stacken.kth.se>.
2000-07-13 01:32:33 +00:00
matt
81ce10aa1f Extend the vmcmd stuff a bit. Add a flags field and define
VMCMD_BASE & VMCMD_RELATIVE.  This allows one to add vmcmds
which are relative to previous entries.  This is needed for
loading the VAX ld.elf_so
2000-07-13 01:24:04 +00:00
soren
c675def443 Update comment. 2000-07-12 23:14:09 +00:00
thorpej
5cae63e123 NetBSD -> __NetBSD__ in an #ifdef, and nuke sc_bpf; there's one in
the ifnet already.
2000-07-12 23:02:38 +00:00
thorpej
1a82fc879b Regen. 2000-07-12 22:59:54 +00:00
thorpej
16a4fd2bff Add DEC DE422 Ethernet. 2000-07-12 22:59:23 +00:00
thorpej
c0708e9ff1 Clean up bios_reg a little, and add support for accessing
the byte variants of the registers (e.g. %ah, %al, etc.).
2000-07-12 22:58:12 +00:00
jdolecek
b46e691b98 make bootprog_* const (pointed by Simon Burge) 2000-07-12 22:19:57 +00:00
pk
7e8f67ad97 No need to fetch the psycho's own registers as thet are already passed
down from the parent bus.  Also account for the difference in `reg'
properties in psycho vs sabre chips.
2000-07-12 21:49:44 +00:00
thorpej
b2a5b02fc9 Fix a couple of LP64 problems (long -> int32_t). 2000-07-12 21:15:33 +00:00
pk
f56554a578 If there is no "interrupt-map" property on the ebus node, assume the
child "interrupt" properties are already in a format suitable for
the parent bus.
2000-07-12 21:07:36 +00:00
jdolecek
c8f528ad5e switch to MI newvers_stand.sh version info generator 2000-07-12 21:05:35 +00:00
thorpej
1204c1faaf Oops, treat 2100A_A500 just like 2100_A500 in every place necessary. 2000-07-12 21:02:14 +00:00
jdolecek
aee8c6a2e9 new MI bootblock versioning helper for generating vers.c,
intended to replace all the various port's stand/*/newvers.sh scripts
architectures will be switched to this gradually as tested
2000-07-12 20:57:42 +00:00
thorpej
3182af4432 - Add Jensen support/devices.
- Add commented-out Sable/Lynx support/devices.
- Switch from `ncr' to `siop' by default.
- Add some missing `scsibus' configs to INSTALL.
2000-07-12 20:54:38 +00:00
thorpej
249773b538 Deal with another odd need of the Sable/Lynx systems, which need to
have an ISA chipset present before the PCI-EISA bridge has been
attached (because the STDIO module has an ISA DMA-using device,
the floppy controller, connected to it).
2000-07-12 20:50:00 +00:00
thorpej
a66c3e663c Code to support the DEC 2000/300 (DECpc AXP 150, a.k.a. "Jensen")
systems.  Thanks to Gyenes Istvan for the rounds of testing.
2000-07-12 20:36:07 +00:00
thorpej
55c41121ff Change from ncr' to siop' by default. 2000-07-12 20:27:25 +00:00
thorpej
42c89508c0 Uncomment the `fdc at sableio' lines. 2000-07-12 20:20:54 +00:00
eeh
1f45545899 Add UltraSPARC III specific flag bit. Currently ignored. 2000-07-11 21:55:11 +00:00
msaitoh
dc6054c8b0 add OBJCOPY?=objcopy 2000-07-11 18:47:09 +00:00
msaitoh
dafe13f724 callout()->callout_reset() 2000-07-11 18:46:22 +00:00
nathanw
dd44125396 Remove unused variable. 2000-07-11 16:08:15 +00:00
onoe
6c4d97da13 Indicate WEP capability to association request when WEP is enabled.
Without this fix, some (IEEE802.11 conformant) APs will send data to this
station without using WEP.
2000-07-11 12:54:00 +00:00
jeffs
f6812b853b Only define machdep sysctls if CPU_MAXID is not defined by machine/cpu.h.
This lets mips ports have additional machdep sysctl.  Define CPUISMIPS3
for MIPS1+MIPS2 as cpu_arch >= 3 to support mips4.  Add cpu_intr()
prototype so this is defined in one place.
2000-07-11 06:34:57 +00:00
jeffs
6b28794054 Add support for 3 QED special2 opcodes. 2000-07-11 06:27:58 +00:00
jeffs
54a85cb3af For 64b clean 32b compilation, do not bother setting SX And KX.
The current code does not maintain these in SR, and they are not
needed by 32b kernel code for mips3/4 instructions.
2000-07-11 06:26:08 +00:00
kleink
a5eeea36d4 Add back a failure return statement in check_header() which I accidently
deleted in rev. 1.46; pointed out by Chris Demetriou.
2000-07-11 06:23:38 +00:00
nisimura
4f051180a0 - Use PMAD-BA name for device match logic. It's not a real TURBOchannel
device and the id string is not found in option ROM string, but
  ULTRIX/OSF1 call it so anyway.
- Squash IOASIC DMA buffer allocation into device attach() sequence.
2000-07-11 04:10:25 +00:00
soren
77e30d85bf Oops. 2000-07-11 01:15:47 +00:00
soren
e3c19eafd0 Update comment. 2000-07-11 01:02:44 +00:00
jeffs
dcbf69bf94 Update mips3_locore_vec cache functions for mips3_L1TwoWayCache. Add cast
for clean compilation with _MIPS_BSD_API_LP32_64CLEAN set.
2000-07-10 23:21:16 +00:00
jdolecek
f7d523ebb6 make buildable with -Wall -Werror 2000-07-10 22:48:25 +00:00
jdolecek
b3c2dd691c make compilable with -Wall -Werror 2000-07-10 22:01:16 +00:00
jdolecek
42c88111e1 explicitly specify main() return type (make buildable with
-Wall -Werror)
2000-07-10 21:30:31 +00:00
jeffs
010c198b37 In setregs() flush sigreturn trampoline code from the d (MIPS3) and i cache.
Tested on geocast RM5231 platform.  This fixes a race in
regress/sys/kern/sigtramp.  Some other ports do the same thing.
2000-07-10 21:12:13 +00:00
jdolecek
27a5ba9e0a use <sys/exec_aout.h> instead of <a.out.h> - this is supposed
to be standalone after all
2000-07-10 20:36:15 +00:00
jdolecek
7e272173bd no need to include <a.out.h> here 2000-07-10 20:33:49 +00:00
eeh
f10d7699fc Break into debugger by typing `+++++', 2000-07-10 20:24:23 +00:00
ad
b71bddab49 Regen. 2000-07-10 16:32:07 +00:00
uch
e8ebb2a377 use mips3 cache op.
invalidate -> write-back invalidate
(although NetBSD/hpcmips run on write-through mode.)
suggested by cgd.
2000-07-10 16:23:18 +00:00
ad
5a5452c95d Add ICP Vortex RAID controllers. 2000-07-10 16:14:02 +00:00
onoe
b99e56173c do not allow non-priviledged user to change nwid via ifconfig. 2000-07-10 14:36:17 +00:00
mrg
0de5b6e260 these don't need <uvm/uvm_extern.h> at all, actually. 2000-07-10 13:54:54 +00:00
mrg
5b2b68bb7a fix a cast for sparc64. 2000-07-10 13:37:00 +00:00
onoe
c2ed037f55 move associated/synced/no-recent-beacons messages to IFF_DEBUG. 2000-07-10 12:32:53 +00:00
ragge
c71d0f69c6 Forgot a debug printf. 2000-07-10 10:45:21 +00:00
ragge
5ae755e1bf Save registers for eventually later usage.
Use REI to clear pipes after code copy.
2000-07-10 10:42:27 +00:00
ragge
baec928850 NODESIZE -> BI_NODESIZE. 2000-07-10 10:40:38 +00:00
ragge
ed83213bf2 Add support for VAX 6000 + VAX 8000. Tweak console routines.
Create a fake RPB if either netbooted (on machine without RPB) or
loaded from console storage (without VMB intervention).
2000-07-10 10:38:23 +00:00
ragge
175e6ad859 Add code that allows the boot blocks to be loaded by VMB.EXE, and
also have optional MTPR printf available.
2000-07-10 09:55:36 +00:00
itojun
ab492849bc implement net.inet.icmp.errppslimit.
make default value for net.inet.icmp.erratelimit to 0, as < 10ms value
does not do the right thing.
2000-07-10 09:31:29 +00:00
ragge
8658157274 Nexus vector number is 0x14-0x17, not 14-17! Fortunately, 3 wrong did
one right. Pointed out by Kenn Humborg (kenn@linux.ie).
2000-07-10 09:14:32 +00:00
eeh
7403ef3d00 Need to include <sys/exec_elf.h> to make things happy. So much for adding
dead code.
2000-07-10 01:15:17 +00:00
eeh
048f1387db Function signature for bus_intr_establish() changed. 2000-07-10 01:11:14 +00:00
eeh
3acffdb4a5 Update TODO list item #7. 2000-07-10 00:50:22 +00:00
eeh
1cfb5e6456 Grab and use the memory model info from the flags in the ELF header. 2000-07-09 22:39:17 +00:00
jhawk
469c88cc11 Clarify that the RX5C47X requires writes to the PCI_LEGACY to
disable and not PCI_BCR_INTR; this is what rev 1.9 did under
the label of "Maintenance."
2000-07-09 22:06:02 +00:00
eeh
ec71379542 Use TSO memory model for 32-bit userland. 2000-07-09 22:02:32 +00:00
eeh
e5cd515b89 Upgrate interrupt handling:
1) use interrupt vectors for specific zs chips rather than polling
	   all of them.

	2) use softintr_schedule() and schedule it for a particular device
	   rather than poll all devices.
2000-07-09 21:58:43 +00:00
jhawk
e6e9cc5c41 Move legacy pcic-mode disabling code from pccbb_chipinit() to
pccbbattach(). This is necessary as pccbb_chipinit() is deferred, and
may not run until after the pcic is already attached.

Now pcics are properly disabled on Sony VAIO, f'rinstance.
2000-07-09 21:58:30 +00:00
eeh
f43ab74a43 Shuffle around some fields to waste less space on LP64. 2000-07-09 21:55:24 +00:00
pk
406e0f779f Add a `device class' interrupt level argument (from machine/intr.h)
to bus_interrupt_establish().

It's currently only used in sparc64/dev/psycho.c to assign a CPU interrupt
level to devices in PCI slots.
2000-07-09 20:57:41 +00:00
pk
2a57393a0f Re-arrange headers; drop <machine/cpu.h>. 2000-07-09 20:38:34 +00:00
jdolecek
230b3462ea uncomment part which has been accidentaly commented out in last commit 2000-07-09 14:16:02 +00:00
jhawk
84fe4f536c Comment police. s/DIAGNOSTICS/DIAGNOSTIC/ 2000-07-09 14:13:04 +00:00
jdolecek
f61c58e333 fix accidentaly dropped dependance on wrtvid 2000-07-09 14:11:10 +00:00
jdolecek
0b9b0cbc03 backout previous change, this should not have been committed (yet) 2000-07-09 14:07:06 +00:00
jdolecek
26e11b6af2 Make buildable on NetBSD/mvme68k 1.4.1. 2000-07-09 13:47:33 +00:00
mrg
d132b13d89 regen 2000-07-09 13:40:20 +00:00
mrg
8f9515257a - massive warning fix fest.
- fix pread/pwrite return values (plus some other syscalls that looked
  similarly broken).
- prototypes and clean up for netbsd32_ioctl.c

now getpw*() works under compat32!
2000-07-09 13:39:31 +00:00
mrg
152f5c5f28 remove unused variable. 2000-07-09 13:35:54 +00:00
itojun
8a661b9beb be more cautious about tcp option length field. drop bogus ones earlier.
not sure if there is a real threat or not, but it seems that there's
possibility for overrun/underrun (like non-NOP option with optlen > cnt).
2000-07-09 12:49:08 +00:00
jdolecek
f6cf4e5f93 move struct sys_config from mca_machdep.c to mca_machdep.h
fix copyright (overlooked in original commit)
use bitmask_snprintf() instead of printf("...%b") (though that part is commented
	out anyway ATM)
2000-07-09 10:35:11 +00:00
nisimura
1566e57da8 Simplify address decode logic for memory parity error condition.
XXX Need to have a better reporting message here.
2000-07-09 09:14:29 +00:00
nisimura
3c55597b94 Add a patchwork prototype declaration for netintr(). 2000-07-09 08:08:20 +00:00
nisimura
194f2ce04e Comment clarification in this file. Have consistent terminology, ATC
instead of TLB.
2000-07-09 07:14:18 +00:00
itojun
d8a9a3cc7b add ppsratelimit(9), which does event-per-sec rate limitation.
use it from icmp6 error rate limitation code.
XXX better name for the function?
2000-07-09 06:44:57 +00:00
itojun
8f3d56a298 shorten splclock() period in ratelimit().
From: onoe
2000-07-09 06:40:08 +00:00
mrg
18c0283349 look in /emul/netbsd32 for __stat13() and __lstat13(). 2000-07-09 03:03:35 +00:00
mycroft
d621cc4cb0 Add missing newlines in some messages.
Set Vpp the same as Vcc by default.  We need to do more with voltage sense.
2000-07-09 01:55:18 +00:00
mycroft
39ff4faf53 Fix compiler warning. 2000-07-09 01:52:17 +00:00
mycroft
9ad7bd8d37 Increase the example DDB_HISTORY_SIZE. 2000-07-09 01:36:06 +00:00
mycroft
33090b8b89 Enable DDB history. 2000-07-09 01:35:52 +00:00
mycroft
caf07dfa04 When unmounting, make sure to free the syncer vnode so that it can be reused. 2000-07-09 00:59:03 +00:00
mycroft
bd8f07c394 Recognize the i82559ER. 2000-07-09 00:46:26 +00:00
mycroft
5cdb782283 Regen. 2000-07-09 00:45:56 +00:00
mycroft
9d0e35cc63 Add ID for i82559ER. 2000-07-09 00:45:14 +00:00
mycroft
4087b4e418 Do the interrupt fixup for all busses, not just bus 0.
This is necessary on some machines with multiple onboard PCI busses.
2000-07-09 00:42:47 +00:00
mycroft
0ef0f52d06 Turn on DDB history by default. 2000-07-09 00:41:24 +00:00
eeh
74e5e4f040 Fix for:
7.      Numbers starting with [a-f] should work, but symbols
        of the same name should have priority.
2000-07-08 21:35:32 +00:00
eeh
5a7cb20576 gdb requires a `struct fpstate' so provide one. 2000-07-08 19:25:14 +00:00
sommerfeld
dcf6e7b09e When receiving an rx interrupt on a closed or unconfigured port, read
the data out of the board anyway so it won't re-interrupt anyway.
Fix tested by C Kane <ckane@best.com>
2000-07-08 18:36:02 +00:00
sommerfeld
d5906caa54 Format paranoia 2000-07-08 18:11:02 +00:00
sommerfeld
bb22022c59 Format paranoia. 2000-07-08 18:10:25 +00:00
sommerfeld
4eec028c2a More format checking 2000-07-08 17:45:53 +00:00
sommerfeld
e292542bce More format attributes 2000-07-08 17:36:01 +00:00
sommerfeld
ed9ce99d8c printf format paranoia 2000-07-08 17:12:08 +00:00
sommerfeld
8951fce5df printf format safety 2000-07-08 17:10:22 +00:00
sommerfeld
eb1939c85f printf format paranoia 2000-07-08 17:09:02 +00:00
sommerfeld
26b0bc1c2e printf format safety 2000-07-08 17:08:35 +00:00
jdolecek
6a6ee4aa91 cleanup way vers.c file is created/compiled 2000-07-08 15:40:53 +00:00
jdolecek
50dc07c081 get the version number differently - instead of using RCS version number
of version file, take version from last line of that file as the part from
start of the line to ':'
2000-07-08 15:36:05 +00:00
jdolecek
89ccc75157 use _C_LABEL() for bootversion, instead of hardcoding the reference as _bootversion 2000-07-08 14:41:04 +00:00
pk
404e6e3a61 Drop KERNFS 2000-07-08 11:33:24 +00:00
tsubai
fba6fe287b * Redo previous; set PIR on 604 and 7400 only.
* printf clean-up.
2000-07-08 07:23:17 +00:00
mrg
065b56c096 backout part of previous: turn off intrdebug, and another debug message 2000-07-08 05:04:01 +00:00
mrg
6421cc8af8 regen 2000-07-08 04:39:50 +00:00
mrg
d74c0a2e3e add microSPARC IIep PCI controller 2000-07-08 04:38:55 +00:00
tsubai
7314c0eba6 Clear the reservation in __cpu_simple_lock_try even if it failed to lock.
(From ws@tools.de)
2000-07-08 04:36:56 +00:00
jhawk
d770f87fef Pullover rev 1.320 - rev 1.358 of GENERIC to IOPENER, and merge conflicts.
Add GENERIC rev in "from:" line to aid in future merging.
Major highlights include SOFTDEP, and, err, 4 blank lines.
2000-07-08 03:24:36 +00:00
jhawk
71f3f1c282 Pullup rev 1.233 - rev 1.358 of GENERIC to CARDBUS, and merge conflicts.
Add GENERIC rev in "from:" line to aid future merging.
Major highlights include COMPAT_14, COMPAT_AOUT, NTFS, OVERLAY,
SOFTDEP, INET6, IPSEC, pcic iosiz changes, cz, dpt, rtk (cardbus!),
awi, cnw, ray, wi, xi, joy, and gif.
2000-07-08 02:47:02 +00:00
tsutsui
7fb0549d87 Add ep* at isapnp and ep* at isa.
3c509 works fine on my CATS.
2000-07-08 01:24:35 +00:00
pk
2c1dc518bd Changes for readability:
- #define LP64 dependent STACKFRAME macro once
	- use a LOAD_ASCIZ macro for setting up the format string
	  for debug messages.
2000-07-07 23:28:28 +00:00
jhawk
e0b6c173e7 s/preserving ... bytes of symbol table/using ... bytes of symbol table/
"preserving" implies that the data may be copied and might otherwise
be freed, and that other data in the symbol table or sections of
the kernel might be freed, however there is no mechanism for these
things to take place, so "using" is clearer.
2000-07-07 21:55:18 +00:00
jhawk
21322c88b6 Observe deficiency in printfs reporting symbol table problems
before we have a message buffer.
2000-07-07 21:51:38 +00:00
jhawk
d58fe92d14 Detect ELF sections (string and symbol tables) by looking them
up by name (in .shstrtab) instead of guessing based on section
type (and throwing away the small one). In addition to being cleaner,
multiple symbol tables are no longer and error condition, so
booting netbsd.gdb no longer results in ddb being unable to use
*any* symbols.
2000-07-07 21:50:26 +00:00
pk
0d97100854 Use vme_dmamap_create().
Also, this device lives in VME_D16 data space.
2000-07-07 21:12:21 +00:00
pk
67f1f77b78 Use vme_dmamap_create(). 2000-07-07 21:11:08 +00:00
eeh
468c727a28 Temporary fix to prevent the clock from stopping on UIIi machines. 2000-07-07 19:59:36 +00:00
eeh
14b1b05f10 Rename GENERIC to GENERIC32 and GENERIC64 to GENERIC to allow snapshots to
build properly.
2000-07-07 19:11:56 +00:00
itojun
ec67eee51f sync with kame.
introduce in6_{recover,embed}scope, for in-kernel scoped-address manipulation.
improve in6_pcbnotify.
2000-07-07 15:54:16 +00:00
mrg
2b69bc2115 BUFCACHE=20 2000-07-07 14:22:57 +00:00
mrg
4384010332 more extent_alloc() fixes:
check that newstart + size - 1 doesn't overflow the end of the extent, rather
than the "dontcross" value, which can easily overflow the end of an extent
when being asked for an object with a large boundary requirement.  this test
is more valid, in any case, and fixes extent_alloc() failure when the start of
the extent is not "aligned".
2000-07-07 14:10:48 +00:00
bouyer
2646cf1612 Use the CMD PCI0648/9 IRQ ACK code for the 0646 too, makes the 0646 works
in native mode.
2000-07-07 13:54:25 +00:00
tsubai
446c144ae3 Set PIR only if MULTIPROCESSOR is defined. 2000-07-07 13:22:06 +00:00
mrg
b91804af6c split up debug flags so i can turn off some of them 2000-07-07 13:10:34 +00:00
pk
cacf690261 Try both the BOOTPARAM and DHCP protocol (in that order as is the custom
with Sun machines).
2000-07-07 12:59:16 +00:00
mrg
4b21f66d57 work around a bug passing arguments to iommu_dvma_load_raw() 2000-07-07 12:53:29 +00:00
mrg
c0f4ea2a12 check that this *entry* is BUSCLASS_NONE (not the current device) in
bus_compatible().  fixes boot device detection on sbus.  while i'm here,
sprinkle DPRINTF()s in the boot device detection code.
2000-07-07 12:44:47 +00:00
mrg
9a6c45e283 options BUFCACHE=20, plus a 64 bit config. 2000-07-07 08:44:16 +00:00
mjacob
58a60a43f2 Gah. Bad port from FreeBSD code (thanks Robert Elz) for setting
up default timeout for watchdogging commands.
2000-07-07 03:14:53 +00:00
eeh
3f2289a3d7 Handle bus_dma aligment properly. 2000-07-07 02:50:19 +00:00
wrstuden
f420228afb Define splaudio as splbio and IPL_AUDIO as IPL_BIO only if IPL_AUDIO
is not defined. Previously tested for specific system architectures (i386,
etc.) rather than just looking for IPL_AUDIO.
2000-07-07 01:11:12 +00:00
thorpej
2c9058efbb Oops, g/c some stuff from previous. 2000-07-06 23:29:13 +00:00
tsubai
059d5818cf include "opt_multiprocessor.h". 2000-07-06 23:27:29 +00:00
tsubai
9ad1103d98 Make it compile with "options MULTIPROCESSOR". 2000-07-06 22:56:22 +00:00
thorpej
65780061bd Define some more CTB formats. 2000-07-06 22:46:54 +00:00
perseant
562aaaa063 Fix so non-kernel code will compile (_LKM) 2000-07-06 20:32:06 +00:00
dmcmahill
db5c144019 make sure ofwboot.xcf gets installed 2000-07-06 19:42:55 +00:00
ragge
089ed65ef7 Add NMI and XMI outcommented, the same with VAX 6400 and VAX 8000. 2000-07-06 18:04:56 +00:00
ragge
8cc5c2c8f1 Rename NODESIZE to BI_NODESIZE. 2000-07-06 17:47:02 +00:00
ragge
c0f8f713bf Initial support for the XMI bus on VAX, MIPS and Alpha systems.
Not completely finished yet.
2000-07-06 17:45:52 +00:00
ragge
0e29b678ce Add xmi_mainbus.c file. 2000-07-06 17:43:38 +00:00
christos
2068dee670 elide lint cast type conversion warnings. 2000-07-06 17:42:55 +00:00
ragge
63852b4193 Some defines for the 6000/400 CPU. 2000-07-06 17:42:49 +00:00
ragge
443db45277 Framework for the mainbus-XMI block. Not completely finished. 2000-07-06 17:41:37 +00:00
ragge
b98189c9f5 CPU support for the 6000/400 CPU. No support for spinning up the
slave processor yet, though.
2000-07-06 17:40:00 +00:00
ragge
d5e70ee279 Add code to support loading of kernel directly via MOP.
This is only intended for development purposes, not production use.
2000-07-06 17:37:40 +00:00
ragge
6bf625c8c0 Recognise VAX 6000/400. 2000-07-06 17:36:22 +00:00
ragge
5c50116697 Console Communication Area (CCA) layout description.
Used on for example VAX 6000 machines.
2000-07-06 17:34:29 +00:00
onoe
a4d6bdac79 do not show wep keys to non-root users. 2000-07-06 17:22:25 +00:00
eeh
6a1f10a7d5 Added two new options to the bootblock: -V turns on verbose mode and -D
makes it load but not execute.  If fcode-debug? is enabled in the firmware
an arbitrary file can then be loaded with:

ok " <path>" do-boot
2000-07-06 17:15:07 +00:00
hannken
c8793c3d7e Change type kbd_t' from u_int_16_t' to `u_int32_t'.
This eliminates bogus casts from `int *' to `u_int_16_t*'.
2000-07-06 16:29:49 +00:00
bouyer
e2aaf9ef7f Work around a bug in AMD756 rev D2, from patches provided by David Sainty:
disable multiword DMA for these chips. multiword DMA can be forced with
options PCIIDE_AMD756_ENABLEDMA on rev D2 chips, but use at your own risk !
While I'm there remove a duplicate allocation of sc_wdcdev.nchannels in HPT
code.
2000-07-06 15:08:11 +00:00
eeh
63d57aa16a Fixup counter-timer interrupt lossage. 2000-07-06 14:13:05 +00:00
itojun
29251eb71f remove #ifdef __FreeBSD__ or __bsdi__, as netbsd if_gif.c diverged a little
from kame tree
2000-07-06 12:56:26 +00:00
itojun
210a3e2f80 remove unnecessary #include <netkey/key_debug.h>. from kame. 2000-07-06 12:51:39 +00:00
itojun
0a1e211454 - do not use bitfield for router renumbering header.
- add protection mechanism against ND cache corruption due to bad NUD hints.
- more stats
- icmp6 pps limitation.  TOOD: should implement ppsratecheck(9).
2000-07-06 12:36:18 +00:00
jdolecek
53385f1dfd adjust maximum number of vnodes in vnode cache according
to machine memory size upon boot if the number has not been specified
explicitly in kernel config - at this moment, 0.5% of system
memory is used for vnodes (but minimum NVNODE vnodes)
2000-07-06 09:51:54 +00:00
augustss
555fde1163 Fix reversed test in umass_activate(). Probably fixes PR 10520. 2000-07-06 07:11:18 +00:00
thorpej
70140a566d Some slight cleanup. 2000-07-06 04:34:26 +00:00
msaitoh
7f0eba7ad8 make spllower() return void. 2000-07-06 04:31:04 +00:00
tsubai
212a0a08d2 Implement powerpc spin lock functions. 2000-07-06 03:52:25 +00:00
jhawk
c4f2dfb0b9 Enable "old partition ID" compatibility by default, just as in biosboot. 2000-07-06 03:39:53 +00:00
thorpej
d28fe378bc Use device_lookup(). 2000-07-06 02:02:48 +00:00
mjacob
b47890a934 Reserve top nibble of status for use by the HBA. It's up to the
HBA to set or clear it.
2000-07-06 01:56:23 +00:00
thorpej
cb450cc444 Use device_lookup(). 2000-07-06 01:47:34 +00:00
mjacob
7ed7b1b9fd Per advice from thorpej, reinstated some of Erik's changes. 2000-07-06 01:17:38 +00:00
thorpej
5297dab6a8 Use device_lookup() *more*. 2000-07-06 00:48:53 +00:00
thorpej
cfaba33937 Use device_lookup(). 2000-07-06 00:43:04 +00:00
thorpej
fcebfb1295 Add a device_lookup() macro which encapsulates a small snippet of code
that tons and tons of files all over the tree duplicate, many in slightly
different ways.
2000-07-06 00:42:35 +00:00
thorpej
cde72a2c2b Garbage-collect __BDEVSW_DUMP_OLD_TYPE. 2000-07-05 23:31:12 +00:00
thorpej
9c86b65a92 Fix an omission in the gre cloning changes. 2000-07-05 22:45:25 +00:00
mjacob
09f7025e74 remove obsolete Qlogic isp options 2000-07-05 22:30:05 +00:00
mjacob
f78b367775 Roll core version. Get rid of dogactive (no longer used). Add in some
volatile flags (isp_mboxbsy- keeps a bitmask of expected output mailbox
registers) and storage for them (isp_mboxtmp). Get rid of macroized
LUN widths. This is determined at run time.
2000-07-05 22:28:08 +00:00
mjacob
7358822ab5 Fix incorrect uint8_t vs. u_int8_t usage. Add in offset macros for outgoing
mailbox regs and a INT_PENDING_MASK macro.
2000-07-05 22:26:53 +00:00
mjacob
b520c663d0 add MBOX_GET_RESOURCE_COUNT command 2000-07-05 22:25:53 +00:00
perseant
90b9d9b502 Clean up accounting of lfs_uinodes (dirty but unwritten inodes).
Make lfs_uinodes a signed quantity for debugging purposes, and set it to
zero as fs mount time.

Enclose setting/clearing of the dirty flags (IN_MODIFIED, IN_ACCESSED,
IN_CLEANING) in macros, and use those macros everywhere.  Make
LFS_ITIMES use these macros; updated the ITIMES macro in inode.h to know
about this.  Make ufs_getattr use ITIMES instead of FFS_ITIMES.
2000-07-05 22:25:43 +00:00
mjacob
93778c19b8 pick up FreeBSD changes 2000-07-05 22:25:34 +00:00
mjacob
3626695b49 Roll platform minor. We are now always supporting ISP2100_FABRIC. Add
in new MBOX_WAIT_COMPLETE/MBOX_NOTIFY_COMPLETE macros (ready for SMPizing).
Define STRNCAT inline for our usage.

Stealing a bit of the xs_status flags to maintain command state that
is pertinent for the hBA- should really reserve them for private usage
in scsipiconf.h.
2000-07-05 22:25:06 +00:00
mjacob
a743834a38 Redo watchdogs to handle cases of false death of commands- time
each command now.. Get rid of SCCLUn stuff. Use an isp_done routine
to handle cases of watchdog and isp_done racing to completion.
2000-07-05 22:23:05 +00:00
mjacob
a7560ced04 Add back in a (corrected) isp_prtstst function. 2000-07-05 22:21:44 +00:00
mjacob
e946846577 Back out previous commit- the author is incorrect. There is no 'narrow'
Qlogic controller driven by this chipset. If they don't want the verbosity,
don't compile a DIAGNOSTIC kernel.

Major amount of mailbox command rewrites- hopefully should fix some of the
outstanding PRs.

Change header to note that this is no longer maintained at NASA/Ames.
2000-07-05 22:20:51 +00:00
mjacob
c466b99a9a Use new isp_handle_index function. Redo how firmware is checked for
and loaded. Remember to enable interrupts after isp_reset but before
isp_attach. Return CMD_EAGAIN on request queue overflow so we can retry
the command when there's more queue space.
2000-07-05 22:12:23 +00:00
mjacob
855b5ef9b0 Use new isp_handle_index inline function. Change order in whch
some things are done. Remember to enable interrupts after calling
isp_reset but before isp_attach.
2000-07-05 22:10:56 +00:00
mjacob
f73a4d37e2 split firmware into smaller files 2000-07-05 22:09:08 +00:00
thorpej
6a900bc9ff Fix some zero-vs-NULL confusion. 2000-07-05 21:45:14 +00:00
thorpej
f77f419c50 Make that note that we really should be checking the viftable
in ip_mroute.c for duplicate tunnel entries, too.  Well, what
really needs to happen is that the mrouting code needs to be
changed to work w/ `gif' tunnels... but...
2000-07-05 21:32:51 +00:00
thorpej
4348603862 RFCs 1853, 2003, 2401 -- copy the DF bit. 2000-07-05 21:01:38 +00:00
bouyer
3c5afc2677 Back out previous, it has to be done in a different way. 2000-07-05 19:05:31 +00:00
bouyer
838676ce64 Apply patch from David Sainty <David.Sainty@optimation.co.nz>:
Some AMD controllers have a bug which can look up the machine when using DMA, so
disable DMA for some revisions (info provided by AMD).
"options PCIIDE_AMD756_ENABLEDMA" can be used to force DMA on these chips.
2000-07-05 18:58:41 +00:00
itojun
e93c7e8dd2 typo. From: jdolecek 2000-07-05 18:47:51 +00:00
thorpej
e5c397199f Use LIST_HEAD_INITIALIZER(), for correctness sake. 2000-07-05 18:45:26 +00:00
itojun
5f1c4bb519 use memory mapped address, instead of i/o memory access, for control
registers.  rationale:
- Netwave cards choke if we map i/o memory to >= 0x400
- even though, CIS tuple talks nothing about it
- it is not possible to specify range in pcmcia_io_map
- it would be very bad to do a try-and-error bus_space allocation for
  i/o memory regions < 0x400
- we can have exactly the same functionality with memory mapped access
this should correct PR 10139.

the memory mapped access idea was from WIDE wildboar/bsdi cnw code.
2000-07-05 18:42:19 +00:00
bouyer
4c19b21f72 3c503 works on alpha, add:
ec0 at isa? port 0x250 iomem 0xd8000 irq 9  # 3Com 3c503 Ethernet
2000-07-05 18:40:47 +00:00
thorpej
4ec021cecf Make gre(4) a cloning network pseudo-device. 2000-07-05 18:14:13 +00:00
thorpej
7f86d18846 stf(4) is now a cloning network interface (although, only one is allowed
to be created).
2000-07-05 17:08:18 +00:00
jdolecek
84846c5caa kern.maxvnodes (and hence desireddquot) depends more directly on NVNODE than
on NPROC, adjust the hint to tablefull() accordingly
2000-07-05 17:08:14 +00:00
thorpej
f7e579e2f7 Fix a memory leak in the gif_clone_create() error path. 2000-07-05 16:54:19 +00:00
jhawk
92276a6ce3 "set" now displays the name of the variable, old value, and new value,
just as "write" does.
2000-07-05 16:29:25 +00:00
minoura
417c4e6dc1 include GENERIC, instead of defining all the options and devices. 2000-07-05 16:19:48 +00:00
minoura
f67a6a75d2 More reduce size. 2000-07-05 16:18:02 +00:00
bouyer
fa436f165c HPT: use pciide_channels[i] not pciide_channels[0]. My HPT370 now probes
both channels (but still doesn't work properly; I suspect I got a broken one).
2000-07-05 16:11:35 +00:00
tsubai
73db3f2b79 First attempt to spin up the secondary processor on 180MP and 200MP.
XXX Need more work.
2000-07-05 16:02:38 +00:00
pk
f6d8b8e963 We want to index the PCI `interrupt clear' registers with the Interrupt
Number Offset.  (this stuff needs a serious cleanup).
2000-07-05 12:11:59 +00:00
nisimura
30c1d4ba1c - Withdraw ZS_IOASIC_DMA conditional which has never been useful.
- Sanitize ZS register access.
2000-07-05 07:50:57 +00:00
scottr
c019fa32ca Revert a bit of the last change to make this compile again. 2000-07-05 07:33:52 +00:00
sommerfeld
bd29eb7984 regenerate 2000-07-05 04:10:15 +00:00
sommerfeld
502fc00210 Comment out EON ISO-over-ip tunneling pseudo-driver, and document as
broken/fragile.  Unlikely to be of much use, and confuses new users
when their system crashes when they, or their dhclient stumble over
it.  See kern/10500, kern/8994 for the gory details.
2000-07-05 04:07:22 +00:00
nisimura
7b6a572aae zs_ioasic external declarations are stored in zs_ioasicvar.h. 2000-07-05 03:06:53 +00:00
nisimura
534c33a095 Use dev/tc/ directory for DEC3000 Z85C30s. 2000-07-05 02:50:39 +00:00
nisimura
728e424e54 Repopulate 4 files, zs_ioasic.c and zs_ioasicvar.h from arch/alpha/tc,
zskbd.c and zsms.c from dev/dec/, respectively.  No functionality
change this time.
2000-07-05 02:48:50 +00:00
christos
76acd28d57 delint a macro 2000-07-05 02:47:23 +00:00
christos
f142d4254d added a linted comment about non-portable bitfields. Unfortunately it cannot
be fixed portably.
2000-07-05 02:45:03 +00:00
onoe
807a12c8cd change the argument of SIOCS80211NWID and SIOCG80211NWID ioctls from
u_int8_t array to struct ieee80211_nwid to prepend length field.
The length field is necessary because IEEE 802.11 spec doesn't prohibit
even '\0' for SSID.
Though the name and the value of SIOC... macro is unchanged, this change
breaks binary compatibility.  The only affected userland program on the
tree is ifconfig(8).
As Jason suggested on tech-net, it is better than live with problems
since there are no releases for this ioctls yet.
2000-07-05 02:35:53 +00:00
onoe
af32c63489 remove unneeded include "opt_awi.h" 2000-07-05 02:27:25 +00:00
perseant
bc303e52cb Fix errors observed while trying to fill the filesystem with yesterday's
fixes:

- Write copies of bfree and avail in the CLEANERINFO block, so the
  cleaner doesn't have to guess which superblock has the current
  information (if indeed any do).

- Tighten up accounting of lfs_avail (more needs to be done).

- When cleansing indirect blocks of UNWRITTEN, make sure not to mark
  them clean, since they'll need to be rewritten later.
2000-07-04 22:30:37 +00:00
tsubai
b513be4daa s/#include/include/ 2000-07-04 22:25:06 +00:00
pk
0cc7c0e470 Report spurious VME interrupts only #ifdef DEBUG for now. The i82586
based `ie1' board seems to cause this for no apparent reason.
2000-07-04 22:22:56 +00:00
mjacob
eb17c77233 Add missing second argument to tablefull call. I *think* the added
message makes sense- somebody might want to check it.
2000-07-04 20:31:55 +00:00
thorpej
83e31f15b2 faith(4) is now a cloning pseudo-device. 2000-07-04 20:02:46 +00:00
thorpej
920e0d4a44 Don't allow IFF_PROMISC to be changed directly by userspace. It
interferes with the reference counting done by ifpromisc(), and is
essentially impossible to get the semantics correct if we allow this
flag to be directly toggled.

No programs should really be affected by this; IFF_PROMISC is basically
useless without bpf, anyway, and bpf still provides a way to set
promiscuous mode on an interface (which uses ifpromisc()).
2000-07-04 19:09:17 +00:00
thorpej
445487c8f3 Move ifpromimsc() to if.c 2000-07-04 18:46:49 +00:00
enami
88a0f6ee93 Match with promise ultra100/ata contoller. I haven't actually test this
contoller with ultra100 drive, but it works at least with ultra66 or more
older drive
2000-07-04 16:34:33 +00:00
enami
fa92d1c635 Regen. 2000-07-04 16:30:42 +00:00
enami
a710a5e35e Add device ID of promise ultra100/ata controller. 2000-07-04 16:27:32 +00:00
tsutsui
904f3cd34f Add wlan. 2000-07-04 15:57:02 +00:00
jdolecek
1ec07d7439 change tablefull() to accept one more parameter - optional hint
use that to inform about way to raise current limit when we reach maximum
number of processes, descriptors or vnodes

XXX hopefully I catched all users of tablefull()
2000-07-04 15:33:28 +00:00
pk
e7adcbdb13 enet dma: claim interrupt as appropriate. 2000-07-04 14:58:36 +00:00
onoe
7411709050 Support WEP functions for awi driver. 2000-07-04 14:47:58 +00:00
onoe
793eb28211 Support WEP functions for awi driver.
arc4 implementation by Kalle Kaukonen has been added.
	define "wlan" in files.
		XXX: only awi depends on wlan for now.
	Allow authentication for adhoc (IBSS) mode.
Disable adhoc mode without bssid (mediaopt adhoc,flag0) for FH radio.
	FH cannot work without synchronization by beacons.
Align IP header for ethernet encapsulation (IFF_FLAG0) mode.
Print available access points for IFF_DEBUG.
2000-07-04 14:27:56 +00:00
is
87803a8f14 amigappc: siop -> asiop 2000-07-04 14:18:06 +00:00
onoe
0e23cbd506 Remove unneeded include <sys/kernel.h> from FreeBSD by <phk@freebsd.org> 2000-07-04 14:16:21 +00:00
pk
3214045e75 GC dead code. 2000-07-04 14:05:34 +00:00
tsutsui
93d627808a Update some entries:
- add amigappc devices
- add sgimips devices
- add cmpci, cy82c693, cz, fwbus, fwohci, sysmon, viaenv, viapm and xmi
- add necpb for arc
- add pcons for sparc64
- add xsii for pmax
- ncr for vax is renamed to si
- si for sparc is now MI

XXX siop for amigappc should be renamed to asiop?
2000-07-04 14:01:31 +00:00
pk
3cffbb811c Pass correct argument to the console channel close routine. 2000-07-04 13:57:40 +00:00
augustss
8f0fb77674 MAke sure bass&treble start in their mid position. 2000-07-04 10:02:45 +00:00
augustss
17ac2f03ee Implement OSS_GETVERSION.
Accept mixer values above max (100).
Handle the info from AUDIO_MIXER_DEVINFO properly, parts of it is opaque.
2000-07-04 09:56:14 +00:00
matthias
fe19ad9450 struct db_variable has changed. Change db_spec_regs prototype and make
this compile again.
2000-07-04 06:23:49 +00:00
wrstuden
168faa04b6 Oops.. Forgot to grow chrtoblktb[]. Pointed out by tsubai. 2000-07-04 05:48:36 +00:00
itojun
aa0b8be4f4 move ipsec_{hex,bin}dump() into #ifdef wrapper.
libipsec: remove unnecessary #include key_debug.h.
2000-07-04 04:41:54 +00:00
thorpej
a02e08bf4f Remove work-around for Lite-On PNIC in tlp_filter_setup() that is
apparently no longer necessary (probably due to other fixes that
have happened in the filter setup path) and is in fact harmful.

Based on a patch from Krister Walfridsson, who claims this makes
his newer NetGear FA-310TX work (although, my older NetGear FA-310TX
still does not, but fails in an entirely different way).
2000-07-04 04:18:17 +00:00
itojun
33d6ee7269 sync with sys/dev/ic/adwlib.h change (s/ADV_TICKLE/ADW_TICKLE/)
not sure if it is right.  comments?
2000-07-04 04:17:03 +00:00
thorpej
49014bf59f Restructure the PHY entry points to use a structure of entry points
instead of discrete function pointers, and extend this to include
a "reset" entry point.  Make sure any PHY-specific reset routine is
always used, and provide one for the LXT-970 which disables MII
interrupts (as is done for a few other PHYs we have drivers for).
2000-07-04 03:28:59 +00:00
nisimura
4dcd114ad5 Unnecessary to include <dev/tc/tcreg.h>. 2000-07-04 02:37:51 +00:00
nisimura
87eac96162 Make sure to settle tcdsreg.h and tcdsvar.h in /usr/include/dev/tc/. 2000-07-04 02:31:21 +00:00
nisimura
1de4ec68b4 Repopulate TCDS dual channel SCSI adapter to MI dev/tc, squashing
internals for better layering between TCDS DMA ASIC and ASC SCSI
controller.
2000-07-04 02:22:08 +00:00
thorpej
464c773f27 Oops, restrict SIOCIF{CREATE,DESTROY} to super-user. 2000-07-04 01:51:22 +00:00
thorpej
d0827b0ed7 sparc/dev/sireg.h -> dev/vme/sireg.h 2000-07-04 01:29:14 +00:00
nisimura
0c92b006c6 Fix negative timeout symptoms caused by integer multiply overflow,
which is revealed with larger HZ systems like NetBSD/pmax (256Hz)
and NetBSD/alpha (1024Hz) as reported by PR#8645.  Polled tape
drive access is done with maximum 6 hour timeout which ended up
with negative time and then confused SCSI bus severely.
2000-07-04 01:10:18 +00:00
pk
93f987a210 The `si' driver has been transformed into an MI VME frontend. 2000-07-03 23:30:33 +00:00
matt
8fbc28d991 Revert WEAK_ALIAS back to ELF only.
Change ALTENTRY so there is no change of alignment or section
2000-07-03 23:05:32 +00:00
thorpej
7878bcc14c Don't bother with minor printing, except on the LCA CPUs (because
that tells us if we have a 21066 or 21068).
2000-07-03 21:21:26 +00:00
pk
047b6f9582 * Remove MAX_DMA_LEN & si_minphys().
* Disable the DMA engine when setting up a DMA transfer, just in case
  the 5380 driver didn't instruct us to do so already.
* More useful debug output when entering the "left-over bytes" case after
  a DMA transfer finishes.
2000-07-03 20:55:12 +00:00
perseant
eccd5fb47a Fix i_ffs_blocks in fragment extension case where fragment has not yet
been written to disk.
2000-07-03 20:12:42 +00:00
fvdl
7c1d5ec58f Correct typo in previous. 2000-07-03 18:22:10 +00:00
dante
fa845b7795 Fix a off-by-one error in sc_freeze_dev[].
Thanks to kwesterback@home.com
2000-07-03 18:14:18 +00:00
eeh
968524445a Prevent interrupts from being posted if they are active and deprecate polled
interrupts.  This seems to eliminate the spurious interrupts.
2000-07-03 17:56:06 +00:00
thorpej
10e6c623b3 Print the system serial number. 2000-07-03 17:52:33 +00:00
eeh
58c36586cd Use the same IPLs as everyone else. 2000-07-03 17:42:37 +00:00
mrg
16fd30ec1d - add a bus class check to the conversion of prom names to NetBSD driver
names, as we need to convert `pci' to both `psycho' and `simba'.  add
a member to dev_compat_table[] for this, using BUSCLASS_NONE for when
we don't care (all other cases, currently).  add `ide' -> `pciide' and
`disk' -> `wd' mappings here, also.
- "psycho" is a BUSCLASS_MAINBUS device; it has UPA attachment semantics.


this fixes bootpath detection for IDE disks.
2000-07-03 14:38:05 +00:00
soren
df788ce137 A few tweaks. Still not a real driver. 2000-07-03 12:50:09 +00:00
scottr
d08e3b12a4 Stabilize ADB support for some non-Apple ADB peripherals. This is the
second (and final) part of the fix for PR 10086.  (There are no longer
any infinite-wait busy loops in the ADB driver!)
2000-07-03 08:59:26 +00:00
perseant
235a4dd595 i_lfs_effnblks fixes. Put debugging printfs under #ifdef DEBUG_LFS. 2000-07-03 08:20:58 +00:00
gmcgarry
cc05a49fb0 Regen. 2000-07-03 06:05:44 +00:00