Commit Graph

45454 Commits

Author SHA1 Message Date
jdolecek 593eb4314b Change names of WD80x3x cards to what is in ADF's at
http://members.aol.com/mcapage1/adflist1.htm
Add couple IBM WD80x3x clones
Arrange so that appropriate defines are generated for WD80x3x cards
2001-03-23 18:12:13 +00:00
jdolecek 6d79f8ce1e Split we(4) driver to bus independant and ISA-specific parts, in preparation
for MCA attachment.
2001-03-23 17:34:41 +00:00
fvdl 2e3722d635 Remove a debugging printf. 2001-03-23 14:11:39 +00:00
is b1e3063f0b Move tx chain result handling into iystart(). This way, ww normally only
need an interupt when the hardware hits tx chain end. We switch on one
int per packet sent when we fill up and go into OACTIVE mode.
Measured total interupt savings on large NFS writes: 20%.
2001-03-23 13:15:27 +00:00
fvdl 509b0d01a5 Do an explicit VOP_UNLOCK in ufs_vinit before setting v_op to
spec_vnode_ops_p. Workaround for a lock leak. Problem tracked
down by der Mouse.
2001-03-23 12:15:34 +00:00
toshii d2f3ad2de2 Support machdep.booted_kernel sysctl. 2001-03-23 11:10:10 +00:00
sato 8f5f11180a o add sysctl machdep.booted_kernel support.
o add sysctl machdep.root_devoce support.
2001-03-23 11:09:49 +00:00
tsubai 95a27e3b60 Remove devices which don't exist on floppy based models.
Now boot floppy fits 1.4MB again.
2001-03-23 09:30:49 +00:00
toshii 7ed6dadd10 Handle bootargs passed by hpcboot.
Change stack pointer initialization.
2001-03-23 08:58:14 +00:00
toshii 3bf1867147 Rebuild after the bootarg change. 2001-03-23 08:51:23 +00:00
toshii 59b3c088fe Pass bootargs like usual function calls.
Initialize sp register to more useful value.
2001-03-23 08:48:12 +00:00
toshii 07b77f05ce Have LINEBYTES for jornada720. 2001-03-23 08:46:56 +00:00
lukem b240b7a4e1 #ifdef KGDB, call kgdb_connect(1) if KS_Cmd_Debugger (a la ddb invoking
console_debugger() in the same situation).
this makes it easier to get remote kgdb going if you forget to use boot -d.
2001-03-23 04:22:36 +00:00
simonb 5aa49b6404 Delete unused uvtopte() macro. 2001-03-23 01:27:59 +00:00
petrov b47f68b66c fix 'show registers' mis-aligned access, PR11580 2001-03-22 22:20:28 +00:00
manu ea545137cc Added a missing native to linux signal number translation in linux_sendsig(),
when building the trap frape
2001-03-22 22:10:04 +00:00
uch 51243a1c74 add Hugarian and German keymap
patch by Laszlo Szabo <rka@rka.hu>
2001-03-22 18:37:32 +00:00
uch 40de0e48b0 add ELF kernel linker script. 2001-03-22 18:35:33 +00:00
uch 5a79dd1121 load symbol table to DDB if ELF kernel. 2001-03-22 18:34:08 +00:00
uch 7060cad775 recompile. 2001-03-22 18:30:49 +00:00
uch 4e6c980fa0 add HD64461 UART serial console.
add SH3 SCI console method
add SH3 TMU register dump
use generic serial console when companion chip is unknown.
2001-03-22 18:27:51 +00:00
uch a7876b44d8 add file logging method. 2001-03-22 18:26:45 +00:00
uch 044f4eb367 fix calcurating kernend bug. 2001-03-22 18:23:08 +00:00
uch 87aeed6110 fix file handle leek. 2001-03-22 18:21:02 +00:00
uch bf58a25f9b weakly machine dependent configuration moved to machine_config.cpp 2001-03-22 18:20:35 +00:00
uch 62bef7c830 fix file pointer bug. 2001-03-22 18:19:36 +00:00
uch f0190d355c add machine independent serial console method. (use WinCE API) 2001-03-22 18:19:09 +00:00
uch 985f960311 add HP Jornada 690 Hungarian, German entry and
my target machines (CASIO Cassiopeia A-55V, HITACHI PERSONA HPW-650PA).
2001-03-22 18:16:13 +00:00
jdolecek 031c6d8c24 Add MCA ep(4) attachment, for 3Com 3c529-type cards. Tested with 3c529-TP,
provided to me by David Brownlee (thanks!).

Performance of this card is quite poor on my PS/2 with 386DX, like 100KB/s
at best, but as low as 5KB/s when transferring bigger files due to
packet overruns. It would be good to revisit this later, probably by
teaching the ic code to use RX Early.
2001-03-22 16:54:45 +00:00
mrg 74786e7894 remove overzealous locking changes. 2001-03-22 15:56:43 +00:00
is fe9376e508 Oops. We _do_ need to receive broadcasts. At least as long as we want ARP. 2001-03-22 14:30:47 +00:00
minoura 23d323f4f9 Sync with amiga 1.15.
Make this compile again (when building the LKMs).
2001-03-22 12:47:11 +00:00
minoura b711716241 A bit of ELF support. From scw. 2001-03-22 12:46:19 +00:00
jdolecek 4ffa6a80d6 convert to use ether_ioctl()
fix bunch of typos
2001-03-22 12:00:26 +00:00
itojun c35e5ed1b2 do not dereference p_vmspace, if it is not initialized yet (NULL). 2001-03-22 08:26:14 +00:00
matthias 2282e42ec2 Fix type in pliptransmit declaration (C version). Noticed by
Tyrel Beede <tb90@mail.csuchico.edu>.
2001-03-22 08:14:23 +00:00
mrg 0fa02bb6e6 sync with sparc64. 2001-03-22 06:21:43 +00:00
mrg e563dea3f6 sync with sparc64 (just some debug messages.) 2001-03-22 06:21:15 +00:00
lukem b4e2b14fe6 convert to ANSI KNF 2001-03-22 04:52:25 +00:00
tsubai ce8902b7fe Merge my MP tree. At this point, Daystar dual 604 card (i.e. Power Macintosh
9500/180MP and 9600/200MP) runs at least into single-user mode, possibly
multi-user mode (not stable yet).
2001-03-22 04:11:46 +00:00
toshii 2d6322c3be Handle ELF symbol table. 2001-03-22 03:45:39 +00:00
lukem 9f60674a47 now that duplicated stuff has been moved to sys/conf.h, remove unnecessary
defs for: lpt, joy, pc
2001-03-21 23:42:14 +00:00
lukem 723cd818d8 move duplicate definitions for:
pc, lpt, joy, ocis, apm, satlink, i4bctl, i4brbch, i4btel, i4btrc, i4b
from the port-specific arch/*/*/conf.c files into sys/conf.h
2001-03-21 22:25:52 +00:00
itojun 3e898c9239 in nd6_cache_lladdr(), set nd6_gctimer to ln_expire just after the state
transition to STALE.  fixes tahi test breakage.  sync with kame.
2001-03-21 21:56:29 +00:00
ragge 4a933b0a25 VAX_STYP_690 added, from Lord Isildur. 2001-03-21 21:11:13 +00:00
thorpej 93d642a1b3 1.5T -- PR_ABRTACPTDIS in protosw. 2001-03-21 19:43:05 +00:00
thorpej 20fe4e2d96 Add a protosw flag, PR_ABRTACPTDIS (Abort on Accept of Disconnected
Socket), and add it to the protocols that use that behavior (all
PR_LISTEN protocols except for PF_LOCAL stream sockets).
2001-03-21 19:22:27 +00:00
itojun 4ce63adb1e do not inject packets to ipfilter, if the packet went through IPsec tunnel.
http://www.netbsd.org/Documentation/network/ipsec/#ipf-interaction
2001-03-21 19:12:56 +00:00
soren 912c115675 s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message. 2001-03-21 18:40:28 +00:00
soren 1d7d1bd0db Regen. 2001-03-21 18:10:34 +00:00
soren 984c03180f Lower-case a few hex digits for easier searching. 2001-03-21 18:10:13 +00:00
toshii 7e9512010c Oops. I forgot this line. 2001-03-21 17:43:39 +00:00
toshii 4b32677535 Map DMA controller and disable its DMA channels. 2001-03-21 17:42:37 +00:00
toshii f8dab8e69a Make card insertion/removal work.
XXX powerdown and {io,mem}_unmap are still missing.
2001-03-21 16:16:35 +00:00
toshii 7c429e90c2 Handle interrupt polarity. 2001-03-21 16:08:34 +00:00
toshii f1b9737b90 Fix nit. 2001-03-21 14:48:30 +00:00
toshii d16849a006 Make this compile again. 2001-03-21 14:40:00 +00:00
tsutsui a13921cd57 Remove -DVM86 from CPPFLAGS. 2001-03-21 14:38:16 +00:00
ad fad8449663 Decrease the timeouts on QUEIESCE and CLEAR lest the adapter doesn't reply. 2001-03-21 14:27:05 +00:00
toshii b0b31f8cfc Rebuild binaries after ELF symbol table support. 2001-03-21 14:18:28 +00:00
tsutsui 8c60f09e43 - Use ${PRINTOBJDIR}
- size -> ${SIZE}
2001-03-21 14:08:03 +00:00
toshii 358a8ee71a Load ELF symbol table for DDB. 2001-03-21 14:06:25 +00:00
toshii 5b519fb0f9 Fill in framebuffer address for jornada720. 2001-03-21 14:05:10 +00:00
tsutsui 45480ac3bc Move rules to create m68k and machine symlinks to common Makefile.inc. 2001-03-21 13:43:58 +00:00
tsubai 577fa61b83 Enable interrupts before calling interrupt handler(s). 2001-03-21 11:38:39 +00:00
tsutsui 34e44075e0 - Remove "NOMAN= yes"
- Use "WARNS?= 1" rather than add warning options to COPTS.
2001-03-21 11:08:52 +00:00
tsutsui 650e6506dc Remove "NOxxx= yes" lines since "MKxxx= no" is enough. 2001-03-21 11:02:24 +00:00
tsutsui 9ae0cb4d12 Make sure to create m68k and machine symlinks to include loadfile_machdep.h. 2001-03-21 10:58:54 +00:00
mrg 47e6a41505 only lock the kernel around sy_call if !SYCALL_MPSAFE 2001-03-21 09:01:16 +00:00
bouyer be5f917514 Add a small delay before reset at attach time, required by one old ATAPI
CD. Reported by Onno van der Linden.
2001-03-21 08:44:14 +00:00
itojun 93b8b31feb set rmx_mtu to L2 interface mtu, instead of 0, on mtudisc timeout.
ip6_output() change is for safety.  sync with kame
2001-03-21 07:52:13 +00:00
chs 5947ce8284 make this compile without rnd. 2001-03-21 03:35:11 +00:00
chs 11fe9ca446 use ubc_winshift instead of ubc_winsize in pmaps to set up kernel
virtual space.  the latter isn't initialized yet when the value is needed.
fixes PR 12440.
2001-03-21 03:16:05 +00:00
mrg af58b235e0 adapt to systems with out interrupt-map & interrupt-map-mask properties. 2001-03-21 01:33:47 +00:00
hubertf b11582be50 regen for trident cyberclade 2001-03-21 01:10:06 +00:00
hubertf d54969d21f Add Trident CyberBlade as found in Toshiba Satellite Pro 4600 2001-03-21 01:09:36 +00:00
pk b54ea24924 Merge in4_cksum(). 2001-03-21 00:38:47 +00:00
bjh21 de59def2f2 Remove spurious #define mod_base. 2001-03-20 23:29:07 +00:00
bjh21 998606396f Move struct podule_list and struct podule_description to podulebus.h.
They're MI, even if only arm32 actually uses them at present.
2001-03-20 23:27:04 +00:00
bjh21 86d6442c28 Move machine-dependent podulebus headers to <machine/podulebus_machdep.h>.
<dev/podulebus/podulebus.h> is the canonical file to include, and includes
<machine/podulebus_machdep.h>.
<arch/${MACHINE}/poudulebus/podulebus.h> remains for backward compatibility.
2001-03-20 22:59:39 +00:00
bjh21 61e80eef9b As Richard Earnshaw pointed out, bus_space_copy_1() and bus_space_copy_2()
had the wrong names and did the wrong things.  Both are now fixed.
2001-03-20 22:56:16 +00:00
augustss 2ff439c85c Add quirks for Panasonic MultiMediaCard adapter (attaches via USB). 2001-03-20 22:39:51 +00:00
augustss 93b623b541 Extend quirks to 32 bits. Add two new ATAPI quirks, one to
deal with a bad byte5 of the capacity descriptor, one to
handle devices that lack the flex geometry page.
2001-03-20 22:39:08 +00:00
thorpej 7a3c8f81a5 Two changes, designed to make us even more resilient against TCP
ISS attacks (which we already fend off quite well).

1. First-cut implementation of RFC1948, Steve Bellovin's cryptographic
   hash method of generating TCP ISS values.  Note, this code is experimental
   and disabled by default (experimental enough that I don't export the
   variable via sysctl yet, either).  There are a couple of issues I'd
   like to discuss with Steve, so this code should only be used by people
   who really know what they're doing.

2. Per a recent thread on Bugtraq, it's possible to determine a system's
   uptime by snooping the RFC1323 TCP timestamp options sent by a host; in
   4.4BSD, timestamps are created by incrementing the tcp_now variable
   at 2 Hz; there's even a company out there that uses this to determine
   web server uptime.  According to Newsham's paper "The Problem With
   Random Increments", while NetBSD's TCP ISS generation method is much
   better than the "random increment" method used by FreeBSD and OpenBSD,
   it is still theoretically possible to mount an attack against NetBSD's
   method if the attacker knows how many times the tcp_iss_seq variable
   has been incremented.  By not leaking uptime information, we can make
   that much harder to determine.  So, we avoid the leak by giving each
   TCP connection a timebase of 0.
2001-03-20 20:07:51 +00:00
reinoud df2b9ae2bd Initial commit of wscons for the RiscPC/A7000 arm32 family. There is still lots
to do notably the mouse, some issues about 4 bpp modes and most of all Xwscons !

This code will still allow usage of the old vidcconsole complete with X etc.
Note that the wscons code can now only be booted with the new bootloader but
kernels compiled with vidcconsole can still be booted the old way.
2001-03-20 18:20:53 +00:00
toshii 1f21d8b280 hpcarm kernel is ELF. 2001-03-20 18:01:49 +00:00
bouyer 66f705d045 Don't set up PDC2xx_SCR the same way for promise Ultra/66 & Ultra/100,
this special setup seems to break some adapters.
Reported by Kazushi Marukawa.
2001-03-20 17:56:46 +00:00
bouyer df43ec1064 Add BUS_DMA_STREAMING for the data bus_dmamap_load(). 2001-03-20 17:54:39 +00:00
uch b4095cd8bf support HITACHI PERSONA configuration. 2001-03-20 16:05:42 +00:00
uch 889e6d332a initialize TMU 2001-03-20 16:04:01 +00:00
uch 39081f8af1 make HD64461 UART module usable on HITACHI PERSONA 2001-03-20 16:03:28 +00:00
tsubai dc7eafe744 Redo previous. Instead of defining another type, mask upper bits of pvr. 2001-03-20 15:52:07 +00:00
reinoud d7858fb571 Add RiscPC (arm32) keyboard. It basicly returns AT scancodes but since it has to
use a seperate keyboard driver (pckbdc not available) i cant guarantee that it is
100% compatible with AT scan codes
2001-03-20 15:51:18 +00:00
pk 4cefebdf8d Fix fall-out from previous change: the map's DMA address is valid only
after bus_dmamap_load().
2001-03-20 15:39:20 +00:00
reinoud 482f11868a Added dependency for "VIDCCONSOLE" (old console code) for the physcon char
device on console (makedev(4,0)) to aid in wscons transition.
2001-03-20 15:39:16 +00:00
ad 056ea0d17a +#include <dev/i2o/iopio.h> 2001-03-20 13:21:00 +00:00
ad ef80e73a4e Split limits and ioctl defs out of iopvar.h. 2001-03-20 13:02:25 +00:00
ad ebf5110997 Major update; basically, improve performance somewhat and play nicer with
Intel and AMI IOPs. There still exists one nasty problem with Intel adapters
when under load, which I'm working on.
2001-03-20 13:01:48 +00:00
reinoud adbed15428 Replace `bitsperpixel' by `log2_bpp' for thats the value that is in it
and not the number of bits per pixel !
2001-03-20 12:52:03 +00:00
reinoud e8f67fd5b7 `bitsperpixel' in the bootconfig structure is replaced by `log2_bpp'
for thats the value that is in it anyway and not the number of bits per pixel !
This to avoid confusion.
2001-03-20 12:50:08 +00:00
reinoud 2ac5b2f7cf Replace `bitsperpixel' by `log2_bpp' for thats the value that is in it
and not the number of bits per pixel !
2001-03-20 12:48:37 +00:00
matt 96184e84cf Add a diagnostic when we encounter an unknown boot device type. 2001-03-20 05:51:35 +00:00
lukem 7fec679447 sync to GENERIC 1.400 2001-03-20 05:49:32 +00:00
lukem 4ed1ad8e29 A generic implementation of the Fowler/Noll/Vo hash (FNV hash),
as described at:
	http://www.isthe.com/chongo/tech/comp/fnv/

This was implemented for FreeBSD by Peter Wemm.
2001-03-20 02:10:18 +00:00
mrg b10a79d548 regen 2001-03-20 00:41:19 +00:00
mrg f921de978d add sun device ids found on sunblade1000 systems. 2001-03-20 00:39:12 +00:00
bjh21 b4d35ec9a7 ei(4) is now MI, in a limited sense at least. 2001-03-20 00:15:26 +00:00
bjh21 0fe2c0aedc These have moved to sys/dev/podulebus. 2001-03-20 00:13:16 +00:00
bjh21 2c4e09f4c9 Revert last change, which shouldn't have applied to this file. 2001-03-20 00:04:28 +00:00
bjh21 23836945a3 Redefine bus_space_addr_t to be a raw address, for compatibility with arm32
podulebus drivers.
2001-03-20 00:03:10 +00:00
bjh21 34cca2e23e Pull in shared podulebus drivers. 2001-03-20 00:01:37 +00:00
bjh21 90567f2deb Quick hack to pull in podulebus.h for the current architecture.
This should be done better (probably with <machine/podulebus_machdep.h> later.
2001-03-19 23:59:33 +00:00
bjh21 66261e4fd6 Shared arm26/arm32 version of arm26 Ether1 driver. Seems to work on both
architectures.
2001-03-19 23:58:12 +00:00
bjh21 2821b16ef4 Quick hack implementation of region ops. Not very pretty, but good enough
to get ei(4) working on arm32.
2001-03-19 23:56:45 +00:00
bjh21 4d5762c860 This file depends on <machine/io.h>. 2001-03-19 23:03:59 +00:00
bjh21 e7cc62cc44 A few #defines for the common podulebus API. 2001-03-19 22:59:13 +00:00
rearnsha 51e6b460ab Slightly smaller code and tune for StrongARM. 2001-03-19 22:51:51 +00:00
jdolecek 3dfa223aa3 Stylistic nit - don't use mca_devinfo(), print the info directly, we know
what we are attaching.
2001-03-19 22:33:35 +00:00
jdolecek 8a2d4dc652 regen 2001-03-19 22:24:17 +00:00
jdolecek 198b90eb12 Add entry for ATI AT1720T, another card I've got from David Brownlee. 2001-03-19 22:23:58 +00:00
jdolecek e6d6148e4d regen 2001-03-19 22:20:30 +00:00
jdolecek 4f0e120ebb Add couple of Computone products; I looked up ADF for 0x61f3 (which
I am owner of) and found couple others as well.
Mark 3c529-type cards and IBM Internal modem for inclusion in mcadevs.h.
2001-03-19 22:20:05 +00:00
jdolecek 1360c6c34c add com at mca, bpfilter
add comment for elmc, describing what it is for
2001-03-19 22:08:17 +00:00
jdolecek 40d893a3f7 remove bogus ef entry 2001-03-19 21:58:09 +00:00
jdolecek 1c341b3d49 Provide MCA com(4) attachment. Tested with IBM Internal modem, kindly
donated to me by David Brownlee <abs@anim.dreamworks.com>.
2001-03-19 21:56:43 +00:00
bjh21 1c300d3ee8 Make pa_*_base bus_addr_ts. 2001-03-19 21:03:47 +00:00
tsutsui 7ba79ec9f4 Switch news68k to ELF:
- Move options EXEC_ELF32 to std.news68k
2001-03-19 17:06:11 +00:00
tsutsui e0694eb01f Switch news68k to ELF:
- Move options EXEC_ELF32 to std.news68k
 - Add options COMPAT_AOUT_M68K to each config file
2001-03-19 16:59:19 +00:00
mrg 0b2a9fa53d kill QUOTA on everglades. 2001-03-19 05:35:51 +00:00
simonb d618ec62ad In sys_obreak(), the return value of atop() was being used to change
the process dsize for both positive and negative changes.  Since atop()
casts its result to a paddr_t (which is unsigned), negative changes in
process data size resulted in unrealistic dsizes being set.  Use
"dsize -= atop(-diff)" for a negative diffs.  Fixes the "Impossible
process sizes" mentioned on current-users.

Unsigned cast catch and much debugging help from Martin Laubach.
2001-03-19 02:25:33 +00:00
lukem 211a59bbed be consistent with whitespace 2001-03-19 01:10:51 +00:00
chs c40daf0aed change uvm_winsize to uvm_winshift so that we can avoid division
by a non-constant value.
2001-03-19 00:29:03 +00:00
chs e47583af2c missed some KERN_FAILUREs. 2001-03-18 23:43:53 +00:00
ichiro 89063179ad enable I-O DATA WN-B11/PCM wlan card with WEP
reported by Shingo WATANABE <nabe@nabechan.org>
2001-03-18 21:13:12 +00:00
ichiro 7c7a848854 regen 2001-03-18 21:12:01 +00:00
ichiro 6fb0c29aed add product I-O DATA WN-B11/PCM wlan 2001-03-18 21:11:30 +00:00
rearnsha 77d7115444 Spelling mistake (saftey -> safety). No functional change. 2001-03-18 18:49:37 +00:00
chs e533061fce in mem_access_fault*(), when invoking the pcb_onfault mechanism, pass the
return value of uvm_fault() to the onfault routine via %o0.  users of
pcb_onfault now return this value to their callers rather than always
returning EFAULT. this allows i/o errors in VOP_GETPAGES() to be returned
back to read(), etc.
2001-03-18 17:11:22 +00:00
rearnsha f8ffa07954 Always restore the spl value when returning form physconkbd. 2001-03-18 17:03:26 +00:00
rearnsha 62dd3b3608 Fix a couple of cases where we could return without restoring the
SPL value.  Fixes a problem with the Xserver on A7000 kernels.
2001-03-18 17:00:56 +00:00
bjh21 614827277d Switch over to using podulebus_irq_establish(). 2001-03-18 16:58:55 +00:00
bjh21 5c98fe3fec Gratuitous change of signature for podulebus_irq_establish(). It now takes
an opaque podulebus_intr_handle_t, which can be found in podulebus_attach_args.
It's actually the slot number, but don't tell anyone.
2001-03-18 15:56:04 +00:00
itojun 846f79ea76 LAMB uses nonstandard timer frequency. set TIMER_FREQ to appropriate
value (otherwise severe clock delay will result).
http://www.wildlab.com/bbs/logview.cgi?pg=9&no=521
2001-03-18 15:24:14 +00:00
mrg 3bb2b205f9 show the cpu a process is running on in proc 2001-03-18 14:24:10 +00:00
mrg 45d39a2030 redo previous slightly differently. 2001-03-18 14:10:34 +00:00
mrg e82b5bb630 "mach slock" for simple_locks 2001-03-18 14:06:10 +00:00
bjh21 949f93d279 If uvm_fault() returns an error, pass it on to the pcb_onfault handler
if there is one.  They already arrange to return it to their callers.
2001-03-18 14:04:04 +00:00
manu bfaa81d0e1 Fixed typos in comments 2001-03-18 11:31:44 +00:00
chs 1fae55f3ae in trap(), when invoking the pcb_onfault mechanism, pass the return value
of uvm_fault() to the onfault routine via %eax.  users of pcb_onfault now
return this value to their callers rather than always returning EFAULT.
this allows i/o errors in VOP_GETPAGES() to be returned back to read(), etc.
2001-03-18 02:53:09 +00:00
bjh21 6c42a5d73a Move over to using podulebus_irq_establish. 2001-03-18 01:31:03 +00:00
bjh21 63059bd6dc Remove redundant sc_ih from struct ea_softc. 2001-03-18 01:30:30 +00:00
bjh21 b369fdfd44 Use podulebus_irq_establish().
To avoid complexity, don't bother with ea_irq_claim() and ea_irq_release() any
more.  This driver will be replaced with an MI one soon eough -- it just
happened to be convenient for me to test.
2001-03-18 00:00:43 +00:00
bjh21 f98a674d6d Add podulebus_irq_establish(), with the same spec as the arm26 one. 2001-03-17 23:58:43 +00:00
is d7e64c2e21 Method array for a really big inter-byte offset. 2001-03-17 22:03:12 +00:00
bjh21 16198f2b92 Podulebus convergence:
pa_memc_[th] -> pa_mod_[th]
Add pa_easi_*
Add pa_*_base
Add pa_slot_flags to indicate whether EASI is supported.
2001-03-17 21:56:06 +00:00
leo 14d2d5706f Conditionalize inclusion of the interrupt handlers for 'kbd', 'zs' and
'ncrscsi' since they are not present on the Milan.
2001-03-17 20:56:31 +00:00
bjh21 697e84ed46 Update for new location of podules.h and podule_data.h 2001-03-17 20:34:43 +00:00
bjh21 e6a3d0d5c9 Move generated files from sys/arch/arm32/podulebus to sys/dev/podulebus. 2001-03-17 20:32:00 +00:00
bjh21 255336b13c Migrate known-podules list from arch/arm32/podulebus to dev/podulebus. 2001-03-17 19:05:19 +00:00
bjh21 17b6222740 Small beginnings of podulebus convergence: Have podule drivers print colons
in attach messages, rather than doing it in podulebusprint().
2001-03-17 18:46:25 +00:00
bjh21 bfc2063e69 Create an ARM2-specific undefined-instruction handler which deals with the
undef/SWI bug and handles emulating SWP.

Untested bacuse my ARM2 machine isn't currently set up.
2001-03-17 18:12:09 +00:00
jdolecek 9ca881a33a the elmc initialization problem is hopefully fixed 2001-03-17 17:00:38 +00:00
jdolecek bc5acf5f90 Move the code to write the interrupt number info back before the first card
reset (same place as in the Linux driver). Hopefully this would fix
the initialization problem I've seen previously (cannot repeat it
even without this change no matter how I play with the card).
Remove the comment about the initialization problem now.
2001-03-17 16:59:29 +00:00
sato daf7016248 * enable HPCFB_MULTI codes.
* delete unneed non HPCFB_MULTI codes.
2001-03-17 14:59:33 +00:00
jdolecek 3261555469 bump maxusers to 8 2001-03-17 09:55:32 +00:00
jdolecek f3d3e9a30e add elmc(4)
convert from memory disk to diskless-type config
2001-03-17 09:53:54 +00:00
pooka 6c3e28927e fix typo in comment 2001-03-17 09:38:36 +00:00
chs edb041f0d1 return the real error from pgo_fault(). 2001-03-17 04:01:24 +00:00
chs 19accb3d77 return the real error from VOP_GETPAGES(). 2001-03-17 04:01:02 +00:00
thorpej 79e48a7370 Regen. 2001-03-17 02:26:48 +00:00
thorpej 4628dbd48d Fixup some Intel Gig-E entries. 2001-03-17 02:26:26 +00:00
mrg 0fcd32a415 "mach cpu" is MP only. 2001-03-17 01:54:17 +00:00
jdolecek 5ff8accde5 The 3c523 now driver works (with quite acceptable performance, like 320KB/s
for ftp and like 310KB/s via nfs); since there is still issue
with the card initialization, move the entry to bugs subsection
2001-03-17 00:19:36 +00:00
jdolecek 5f6a534773 regen - 3c523 entry change 2001-03-17 00:16:38 +00:00
jdolecek 4f637b65bc adjust the 3c523 entry to fit the actual product name 2001-03-17 00:15:33 +00:00
jdolecek 668d11a549 add elmc (at MCA) 2001-03-16 23:04:01 +00:00
jdolecek 94720e3009 Add driver for 3Com EtherLink/MC (3c523) Ethernet MCA card. This beast uses
i82586-based controller, similarily to e.g. ai(4), el(4) or ix(4).
The driver was modelled after the ai(4) driver.

Due to lack of better documentation, Linux 3c523 driver was used
to find out 3c523-specific quirks. Of course, the necessary work was greatly
reduced by our decend generic ic/i82586 code :)

Finally, NetBSD supports an ethernet card on IBM PS/2!
2001-03-16 23:03:15 +00:00
leo 395516e7aa Some minor, atari only, changes to make this work on the Milan:
- Adjust for the driver to be configured as fdisa
  - Add a for the atari correct fd_types array
  - Work around the fact that the atari has no machine/conf.h
2001-03-16 21:33:33 +00:00
leo a5fdf3f1cf Atari specific stuff to implement the Milan floppy. The Milan uses standard
ISA floppy hardware. Configure as:
    fdcisa0 at isa? port 0x3f0 irq 6 drq 2
2001-03-16 21:31:55 +00:00
marcus fab9e9b3bb sc_port_units was set incorrectly at probe time. 2001-03-16 19:57:49 +00:00
ross e10dbcfa2b Sigh.
Revert the revert. Naturally, I considered OpenBSD and FreeBSD when I fixed
the incorrect use of the spl*() interface. The change I made is _required_
for both NetBSD _and_ OpenBSD, or the code won't even COMPILE except on
i386, and it is acceptable on FreeBSD. Your revert and mod rebroke it on
OpenBSD and tangled things up on NetBSD.  It made no difference on FreeBSD.

In particular, there are 2,895 uses of splx() within the FreeBSD kernel,
and only a mere 21, that's "twenty one" uses of intrmask_t, and those are
almost exclusively in the guts of the interrupt implementation, _not_ in
the _use_ of the exported spl*() functions.  It's perfectly OK to `int s
= spltty()' in a portable driver in FreeBSD.

For that matter, FreeBSD (-current at least) does not even *use* spl*()
any more and stubs them all out with inlines that do _nothing_ except return
0, making intrmask_t vs int _even less_ important there than it already
was.

I think it's great that you want to start hacking on the kernel, but do
note that this is certainly the most simple of the kernel interfaces. It
just gets worse from here. Be careful out there!
2001-03-16 19:32:35 +00:00
bjh21 9dfd56f6dc Make this compile with "options DEBUG" again. 2001-03-16 18:11:57 +00:00
bouyer d95448cbd3 Ops, forgot to commit this file along with the "variable com freq" support.
Thanks to Bill Sommerfeld for pointing this out.
2001-03-16 16:43:54 +00:00
wiz 038e997989 Restore non-NetBSD parts -- we're still sharing this code. 2001-03-16 15:06:24 +00:00
is a4dce1a3f4 Don't need to use the hash filter for a single individual address; make
sure concurrent receive processing is disabled.
2001-03-16 13:43:31 +00:00
is 929c6ab654 Don't abort chain processing on error. 2001-03-16 13:02:51 +00:00
augustss 5c7eb8bc86 Regen. 2001-03-16 12:48:16 +00:00
augustss 91c12c470c Add Panasonic MultiMediaCard adapter. 2001-03-16 12:47:51 +00:00
itojun e4ecd03f2a drop packets with link-local addresses,
if (internally-used) interface ID portion is already filled.  sync with kame
2001-03-16 12:22:34 +00:00
is 89adf47818 Full documentation helps. Among other bugs, remove off-by-one-error when
initializing tx upper limit register.
2001-03-16 12:01:30 +00:00
hubertf cda43785c6 Add comment on what 'overtemp' is about. OK'd by eeh. 2001-03-16 10:47:25 +00:00
mrg e44f962032 steal a few mach commands from sparc64. add a #if 0'ed "mach cpu" 2001-03-16 10:28:53 +00:00
mrg 48fc32e16e #ifdef DDB, add new function cpu_debug_dump(). define CPU_INFO_ITERATOR and
CPU_INFO_FOREACH.
2001-03-16 10:26:11 +00:00
manu 802ed4d55c Removed an unused oldbrk variable in linux_sys_brk() 2001-03-16 07:46:57 +00:00
mrg 85b0b4096f s/rv/error/ in a uprintf(). (rv isn't defined.) 2001-03-16 04:05:15 +00:00
manu 27a41174dd Made linux_sys_brk() cleaner (no functionnality change) 2001-03-15 23:23:26 +00:00
enami fe99796a13 Make fwohci works on big endian cpu (e.g., powermac g4). 2001-03-15 23:01:33 +00:00
ross 6fafd0bb60 Do critical sections a better way. 2001-03-15 22:49:27 +00:00
enami bb839b38fa - Wrap long line.
- Consistently use #define<TAB> instead of #define<SPACE>.
2001-03-15 22:26:03 +00:00
enami f0643cdf2a Fix indentation and white space usage. 2001-03-15 22:20:12 +00:00
ross ac906a109d LP64 a kprintf(9) 2001-03-15 21:59:09 +00:00
abs c51634b970 Regen after adding Hauppauge WinTV USB FM 2001-03-15 20:10:08 +00:00
abs 4bd593f038 Add Hauppauge WinTV USB FM 2001-03-15 20:09:50 +00:00
tsubai e679c63257 Accept 8000Hz (XXX). 2001-03-15 19:55:16 +00:00
tsubai 5eab0287fb Use write-through caching for video ram. (Disabled by default, for now.) 2001-03-15 19:48:04 +00:00
tsubai 4382a59d64 Add ulinear16 support.
Return EINVAL if specified rate is not available.
2001-03-15 19:42:42 +00:00
manu 1208df7bdf Fixed brk() emulation. We now keep track of the processes' idea of the
break value. See http://mail-index.netbsd.org/tech-kern/2001/03/15/0000.html
for more details.
2001-03-15 19:18:20 +00:00
bouyer 8c5e25e486 1010 has clock quadrupler but without PPL, so use SF_CHIP_DBLR. 2001-03-15 17:41:28 +00:00
bouyer 2b318d4800 Note that SF_CHIP_QUAD is for clock quadrupler with busy wait for PPL.
SF_CHIP_DBLR is for clock doubler or quadrupler.
2001-03-15 17:38:59 +00:00
uch 054158f994 HD64461 UART module support. 2001-03-15 17:30:55 +00:00
uch 106c0aee60 setup bootinfo.bi_cnuse at bootloader phase. 2001-03-15 17:24:45 +00:00
tsubai 123c25cc93 Remove PAGER_MAP_SIZE definition -- use default value. Instead, decrease
VM_MAX_KERNEL_BUF.
2001-03-15 16:06:59 +00:00
tsutsui 585b6f2b0a Fix tyop in comments. 2001-03-15 13:45:00 +00:00
is 4925cee33b It's one more if the max. coll. bit is set. 2001-03-15 13:27:31 +00:00
is 56ae0825ba Thats collisions, not errors! 2001-03-15 13:23:23 +00:00
chs ac3bc537bd eliminate the KERN_* error codes in favor of the traditional E* codes.
the mapping is:

KERN_SUCCESS			0
KERN_INVALID_ADDRESS		EFAULT
KERN_PROTECTION_FAILURE		EACCES
KERN_NO_SPACE			ENOMEM
KERN_INVALID_ARGUMENT		EINVAL
KERN_FAILURE			various, mostly turn into KASSERTs
KERN_RESOURCE_SHORTAGE		ENOMEM
KERN_NOT_RECEIVER		<unused>
KERN_NO_ACCESS			<unused>
KERN_PAGES_LOCKED		<unused>
2001-03-15 06:10:32 +00:00
mrg ef26546e15 lock the kernel around calling interrupt stubs. 2001-03-15 03:20:43 +00:00
mrg 122b3a0e67 sprinkle KERNEL_LOCK() and KERNEL_PROC_LOCK() where they're missing. add
SYSCALL_DEBUG support to trap.c.
2001-03-15 03:01:39 +00:00
drochner ba30691de0 This file needs <machine/types.h> to DTRT wrt __HAVE_OLD_DISKLABEL.
disklabel(5) doesn't tell to include it explicitely (as other platforms),
so include <sys/types.h> implicitely
2001-03-14 16:39:33 +00:00
christos 2142a2c4ea populate OSABI list 2001-03-14 16:27:15 +00:00
ichiro 38bf48d59a Implement uplcom_intr().
use interrupt pipe of USB serial adapter
2001-03-14 15:53:01 +00:00
toshii c08eec9f47 Use hpc/hpc/disksubr.c. 2001-03-14 14:47:40 +00:00
toshii 300d398485 Move references to arm/arm/disksubr*.c from files.arm to
files.{arm26,arm32,dnard}.
2001-03-14 14:39:45 +00:00
drochner 35067a1717 this driver doesn't work on my thinkpad, so disable the match for the
IBM/0x00dd subsystem ID too
2001-03-14 11:38:55 +00:00
mjacob 272082c697 ansify code 2001-03-14 06:58:25 +00:00
onoe 9b1d7974ba make compilable again without FW_DEBUG. 2001-03-14 06:46:17 +00:00
mjacob ecdaf852b2 Clean up licence a bit. ANSIfy. 2001-03-14 05:47:56 +00:00
mjacob c67c3d855d Clean up and update copyright (remove advertising clause). Clean
up header guard.  Clean up structure definition for at2_entry so
it's correct rather than derived from at_entry- this is important
for unswizzling purposes. Add a whole bunch of unswizzle macros-
they're not quite right yet but at least they're a start. Note that
we now have, for at_entry, a 16 bit firmware handle as part of what
had been at_reserved- this is to correlate ATIOs with CTIOs- and
this must be carried along as part of a tag value to use with all
CTIOs we send in relation to this ATIO. ANSIfy.
2001-03-14 05:46:50 +00:00
mjacob 98381c7a2d ANSIfy source. 2001-03-14 05:44:46 +00:00
mjacob 8d81f18e84 Handles are now 16 bits. ANSIfy. 2001-03-14 05:44:21 +00:00
mjacob 765a49664e Roll core minor. ANSify. 2001-03-14 05:14:36 +00:00
mjacob 6112b6b2e7 Clean up some comments. Expand usage of cd_reserved. Expand cd_tagval
to 32 bits so it can haul along this furshlugginer handle for parallel
SCSI as well as a regular vanilla 8 bit SCSI tag.
2001-03-14 05:10:38 +00:00
mjacob 928cef6eb8 Clean up license && copyright a tad. ct_reserved should now be more
properly called ct_syshandle.
2001-03-14 05:01:54 +00:00
mjacob 5d68eec9d1 Handles are now u_int16_t instead of u_int32_t. ANSIfy (NetBSD was the holdout). 2001-03-14 04:55:21 +00:00
mjacob 4a005e2d38 Update copyright date. ANSIfy isp.c (NetBSD was the holdout of all
the platforms this code runs on). Handles are now u_int16_t, so adjust
code as required.
2001-03-14 04:54:13 +00:00
christos 6e6957a277 regen 2001-03-14 01:41:29 +00:00
christos 47ae449748 PR/12405: Wolfgang Rupprecht: Add another abocom card (linksys pcm200) 2001-03-14 01:41:09 +00:00
eeh b612a766a7 Handle overtemp intr. 2001-03-14 00:52:19 +00:00
bjh21 c3c5158d00 Change the value of tf_pc in undefined-instruction handlers on arm32. It now
always points to the undefined instruction in question.  It's up to the
handler to advance it to the next instruction if it wants execution to
continue there.  This is how things have always worked on arm26.
2001-03-13 23:56:48 +00:00
bjh21 ce3ad2275b Update FPU detection to use remove_coproc_handler(). 2001-03-13 23:51:48 +00:00
sommerfeld d02dde9937 Change ffs_dirpref() to pay attention to the amount of available free
space before deciding which cylinder group should contain a new directory
inode.

Fixes kern/11983; works around some, but not all, of the side effects
of kern/11989.

Tested by me for well over a month on my laptop; preliminary versions of
the fix were tested by Frank van der Linden and Herb Peyerl.
2001-03-13 21:16:23 +00:00
bjh21 a7ba6bb441 Update for new linked-list undefined-instruction handler. 2001-03-13 21:00:13 +00:00
bjh21 aebf9049d4 Update to use install_coproc_handler_static(), since install_coproc_handler()
isn't safe this early.

XXX hpcarm should use db_machine_init() to do this.
2001-03-13 20:52:48 +00:00
bjh21 c72a18bddc Separate out the SIGTRAP (gdb breakpoint) generator from undefinedinstruction()
so it's no longer a special case.
2001-03-13 20:22:02 +00:00
bjh21 db1f089718 Initialise the undefined-instruction handler at startup. 2001-03-13 20:20:43 +00:00
scw bb17ec14d3 Conditionalise inclusion of opt_compat_svr4.h for the benefit of LKMs. 2001-03-13 18:47:19 +00:00
bouyer c7871f80bf Looks like "VSCom PCI-800H" should be in fact "Titan PCI-800H". 2001-03-13 17:23:52 +00:00
bouyer 2f52d98a08 Regen. 2001-03-13 17:22:27 +00:00
bouyer 6bf4720913 Add Titan Electronics Inc vendor ID (from linux) and Titan VS-800H
product.
2001-03-13 17:21:16 +00:00
uch 2e79fe1ec7 add SH4 configuration.
(SH) don't access SCIF if the Windows CE's COM1 is not connected to SCIF.
2001-03-13 16:31:29 +00:00