Commit Graph

51789 Commits

Author SHA1 Message Date
bjh21
4e3bf132c0 Add comments naming our private-use characters (in lower case, to make them
distinct from real Unicode characters).
2001-12-02 12:46:32 +00:00
lukem
e2387142a7 convert cdev_ir_init() to use the cdev__ocrwip_init() helper macro,
like everything else with the same cdev methods does.  (hi lennart! :)
2001-12-02 12:17:12 +00:00
mjl
f14e78b4c3 Disable bzero/memset assembler implementation until the dependency
problem on assym.h is sorted out and TRW to get at CACHELINESIZE in
the kernel is determined.
2001-12-02 11:03:39 +00:00
augustss
031a2873ed Add irframe and cir devices. 2001-12-02 10:45:40 +00:00
augustss
b540959734 Add framework for Ir devices. The irframe device is for delivering IrDA
frame to user land and the cir device is for consumer Ir (remote controls).

This code is only partially finished, but the irframe device works (given
a low level driver for the actual IrDA device).
2001-12-02 10:44:43 +00:00
augustss
ceb54d1040 Add irbus (IrDA) and cir (Consumer Ir) and related file directives. 2001-12-02 10:41:52 +00:00
uch
bd9aab9cb5 make this compile again. 2001-12-02 10:37:53 +00:00
uch
2c8098281b TX39, R5900 cache configuration. 2001-12-02 10:37:25 +00:00
augustss
a8ef9684b0 Add cdev_ir_init() macro. 2001-12-02 10:36:33 +00:00
minoura
1cf5c38da0 Descend to new boot programs. 2001-12-02 09:59:39 +00:00
minoura
99978cf934 Install as installboot.new. 2001-12-02 09:58:56 +00:00
manu
ef711afc33 Added enough of prctl emulation so that program do not crash on exit 2001-12-02 09:23:58 +00:00
manu
427b57c20e Added SGI_USE_FP_BCOPY and SGI_TOSSTSAVE commands that are also needed
for dynamic linking
2001-12-02 09:22:39 +00:00
manu
cfcac1c4fb Uses svr4_mmap for mmap32 emulation. This will not implement all the
IRIX functionnality, but it should be enough to get dynamic linking working
2001-12-02 08:47:17 +00:00
manu
e2898fe96b Added a bit of sysmp() emulation necessary for dynamic linking. 2001-12-02 08:30:10 +00:00
manu
fd6a281221 Added twomissing SYSCALL_SHIFT for indirect syscall through SYS_syscall 2001-12-02 08:28:18 +00:00
augustss
051c7d6423 Prototype for config_makeroom(), the routine that expands the cd_devs array. 2001-12-02 02:42:25 +00:00
augustss
d845d14a6c Move the code that expands the cd_devs array into a subroutine. 2001-12-02 02:40:57 +00:00
gmcgarry
6baa42f8ce Don't use dev/cninit.c, since we have our own custom implementation. 2001-12-02 01:28:54 +00:00
gmcgarry
72dc6ccf2b Type cast for bus_space_vaddr() 2001-12-02 01:20:33 +00:00
tsutsui
0ba0d05efe Use pmap_kenter_pa() rather than pmap_enter() for msgbufaddr. 2001-12-02 01:17:52 +00:00
gmcgarry
adb908503d Add identifiers for HP devices. 2001-12-02 01:17:51 +00:00
ross
43fe22fed0 Revert previous; the _e003U definition is used elsewhere. 2001-12-02 01:04:26 +00:00
jdolecek
ed1e2f54e9 add 'lkm' to SUBDIR - it got mistakely got removed in last revision 2001-12-02 00:47:21 +00:00
jdolecek
2ff8a38d00 nuke the #include "opt_compat_irix.h", too 2001-12-02 00:46:03 +00:00
tsutsui
1011f9fbcc Don't define COMPAT_SUNOS here. It is defined in opt_compat_sunos.h
and <sys/ioctl.h> and <sys/tty.h> include it properly.

XXX Is this needed for LKM?
2001-12-02 00:35:25 +00:00
tsutsui
babc971829 #ifdef'ed out debug printf. 2001-12-01 23:39:11 +00:00
tsutsui
163114ab3c Implement pmap_kenter_pa() and pmap_kremove() properly.
This should fix `kernel diagnostic assertion "rv" failed' panic
and the problem was tracked down by tsubai.
Also add small optimization in pmap_enter() and pmap_remove(), from tsubai.
2001-12-01 23:34:52 +00:00
thorpej
72dee19a8c Reset the i80200 ICU and PMU to a pristine state very early. 2001-12-01 23:06:45 +00:00
manu
0e18d4c1b0 Fixed a typo 2001-12-01 22:19:38 +00:00
manu
11ea5b82d7 Fixed a bug in vmcmdset reuse. IRIX binaries seems to pass syssgi(ELFMAP)
without crashing now.
2001-12-01 22:14:15 +00:00
chuck
00168f4ce0 fix bug in amap_wiperange() detected by enami tsugutomo.
loop control was wrong in one case.
2001-12-01 22:11:13 +00:00
thorpej
a5a8439141 Make the snake slither in a slightly more interesting pattern that
also happens to have 8 positions (and thus has a slightly more efficient
implementation).
2001-12-01 21:23:17 +00:00
martin
6e766675c6 Fail early when trying to identify a pppoe interface softc (from a
HOST UNIQUE token) and our list of interfaces is empty. Without this
test an unitinalized pointer may be dereferenced.
2001-12-01 18:25:23 +00:00
bjh21
a7297d1928 Slight tweak to AST handling logic -- on return from ast_handler(),
IRQs are enabled, so we have to disable them again before checking
astpending.
2001-12-01 17:30:07 +00:00
bjh21
15d94a4c59 On a VT100, the "scanline 5" character is also used for box drawing, so
represent it as U+2500 (BOX DRAWINGS LIGHT HORIZONTAL).  This makes NetHack
DECgraphics mode work properly on a wscons console using an IBM-encoded font.
2001-12-01 16:07:58 +00:00
fredette
f1673ae4dd Abstract out a large chunk of the kernel build machinery so that new
build features (such as ross's DEBUGLIST) can easily be applied to all
ports.  This should reduce the complexity of each port's kernel
Makefile considerably.
2001-12-01 15:23:18 +00:00
bjh21
e4dac015cd Don't define get_cachetype() unless it's going to be used. 2001-12-01 14:21:18 +00:00
aymeric
6c197325c8 catch up with amiga's conf.h by adding definition of cdev_par_init 2001-12-01 14:14:58 +00:00
aymeric
4680be2d7c add wscons support so that amiga/conf.c compiles 2001-12-01 14:13:49 +00:00
aymeric
dd4455abf7 catch up with "recent" new egcs check 2001-12-01 14:12:58 +00:00
aymeric
e3ed0e40da do not include opt_lev6_defer.h when compiling for powerpc 2001-12-01 13:44:22 +00:00
jdolecek
c65c74ab28 regenerate (allocate identifier for NCR 53c90) 2001-12-01 10:44:35 +00:00
jdolecek
8272a293b7 allocate identifier for NCR 53C90 2001-12-01 10:43:36 +00:00
jdolecek
4b334401ca Nonworking NCR 53c90 attachment. I don't get any interrupts from
the device yet, need to find real NCR53c90 docs to figure out what's wrong.
2001-12-01 10:42:38 +00:00
enami
e69c410de5 Shorten wmesg so that they can be distinguished in ps/top output. 2001-12-01 09:42:39 +00:00
enami
b56cddb826 Fix null pointer dereference when EHCI_DEBUG is defined (and
debug is enabled).
2001-12-01 09:39:32 +00:00
thorpej
3fd0a58e9d On the i80200, disable ECC in the Bus Controller Unit early on; we
don't really have code to deal with ECC errors yet.
2001-12-01 06:33:40 +00:00
thorpej
216b9b2ea6 - Don't enable FIQs; nothing uses them (yet).
- Steer i80200 PMU and BCU interrupts to IRQ# (for lack of a better
  place, at the moment).
- Disable all interrupts other than external-IRQ# in the i80200 ICU;
  we don't deal with any of the others, yet.
2001-12-01 06:15:36 +00:00
thorpej
5936a89bf5 Add register definitions for the i80200 Interrupt Controller Unit,
Bus Controller Unit, and Performance Monitoring Unit.
2001-12-01 05:46:19 +00:00
perry
1564ce55c4 bring back. we need to fix these, not remove them. 2001-12-01 02:15:39 +00:00
thorpej
a7cfcd87fd Implement a "snake" for the 7-segment display. 2001-12-01 02:04:27 +00:00
thorpej
5f8b540ed9 Remove U from the display seg constants. 2001-12-01 02:02:46 +00:00
bouyer
49aef70ae6 Add st at atapibus, now that it works. 2001-12-01 00:09:07 +00:00
bouyer
c6c2c476eb Hum, no need to print a message each time we're waiting for the drive. 2001-12-01 00:05:04 +00:00
bouyer
e6922f82d6 Various quirks for the ATAPI OnStream DI-30, mostly from the FreeBSD driver.
Many thanks to Chris Pinnock for giving me remote access to his hardware.
2001-12-01 00:03:45 +00:00
bouyer
cd8d64fe2b For ATAPI tape drives, poll for DSC (using a callout), to get the real
status of the command, and make sure the drive is ready for the next one.
2001-12-01 00:00:29 +00:00
manu
cde20c2503 First implementation of syssgi(SGI_ELFMAP). 2001-11-30 21:56:03 +00:00
thorpej
e41179bfd0 Need <arm/cpufunc.h> for cache-related variables. 2001-11-30 19:43:20 +00:00
thorpej
2b08dcc43b Clarify a comment to state that it is intentional that we attach
only the Secondary PCI bus (it's the only bus which can have a
device space hidden from any PCI host on the Primary bus).

Also, use the bus number from the PPB businfo register seecondary bus
field rather than hard-coding "1".
2001-11-30 19:29:44 +00:00
thorpej
e90eccc52c Clarify a comment. 2001-11-30 19:26:03 +00:00
fredette
d4f3b9c987 Catch-up to revision 1.135 of the sun3 pmap. This revision
corresponds tightly to that one.
2001-11-30 18:22:51 +00:00
fredette
a5c8b5d17f Implement bus_space_mmap. 2001-11-30 18:11:56 +00:00
fredette
d925ceec5b vm_offset_t -> vaddr_t or paddr_t, as appropriate.
Purge register qualifiers.
bcopy() -> memcpy(), bzero() -> memset()
No longer try to protect the kernel with uvm_map_protect,
pmap_bootstrap has already done this.
Now use pmap_kenter_pa/pmap_kremove when dumping, instead
of pmap_enter/pmap_remove.
2001-11-30 18:10:27 +00:00
fredette
bbb634ca9e vm_offset_t -> vaddr_t or paddr_t or db_addr_t, as appropriate.
vm_size_t -> vsize_t
Purge register qualifiers.
bcopy() -> memcpy(), bzero() -> memset()
2001-11-30 18:06:55 +00:00
fredette
94ae8e87a9 Purge vm_offset_t. 2001-11-30 17:52:33 +00:00
fredette
a9847551d5 vm_offset_t -> paddr_t
Implement bus_space_mmap.
2001-11-30 17:49:10 +00:00
fredette
450c4305c1 vm_offset_t -> vaddr_t
Removed register qualifiers.
2001-11-30 17:47:04 +00:00
kleink
e9d7166203 asm -> __asm. 2001-11-30 16:21:16 +00:00
fredette
66e0981854 Make sure that an unlabeled device gets at least RAW_PART
in the default in-core disklabel, instead of only a single
partition, so that applying a new disklabel can work normally.
bcopy() -> memcpy(), bzero() -> memset()
2001-11-30 16:11:10 +00:00
fredette
da1e437744 Implement bus_space_mmap. 2001-11-30 16:04:25 +00:00
fredette
47884ee136 vm_offset_t -> vaddr_t 2001-11-30 16:00:27 +00:00
fredette
b9b98bff66 Convert to use genassym.cf and genassym.sh, as other ports do. 2001-11-30 15:58:24 +00:00
fredette
af0a38f1d6 In kernel config files, now mention the options SCSI_OLD_NOINQUIRY,
NFS_V2_ONLY, and VNODE_OP_NOINLINE, commented out as appropriate
for each configuration.
Convert to use genassym.cf and genassym.sh, as other ports do.
2001-11-30 15:54:31 +00:00
christos
420771d7cc PR/14781: Matthew Fredette: Clamp the number of read-ahead pages to 16 because
other code has this limit. Also while I am here, convert the magic 16 into
a #define constant and use it in the appropriate places. This is a temporary
fix, since all this read-ahead business is XXXUBC anyway.
2001-11-30 15:18:39 +00:00
augustss
2781ac8e07 Regen. 2001-11-30 13:41:17 +00:00
augustss
a287e24799 Add new devices. From URA Hiroshi in PR 14790. 2001-11-30 13:41:00 +00:00
msaitoh
1c87566f38 fix previous commit 2001-11-30 10:31:32 +00:00
msaitoh
797d100f77 fix printf format 2001-11-30 10:06:46 +00:00
chs
bf5f058642 don't depend on other headers to include sys/proc.h for us. 2001-11-30 07:53:13 +00:00
chs
68b5980eb0 call VOP_PUTPAGES() directly instead of indirecting through
the UVM pager op vector.
2001-11-30 07:08:53 +00:00
chs
a4f1bc813a pick up changes from ufs_balloc_range(). 2001-11-30 07:06:19 +00:00
chs
9958c29316 VOP_PUTPAGES() requires page-aligned offsets, so be sure to provide such.
fixes PR 14759.

(while I'm here, call VOP_PUTPAGES() directly instead of indirecting through
the UVM pager op vector.)
2001-11-30 07:05:53 +00:00
enami
a0ae8adf89 Declare some asm statement with output as volatile. Without this,
gcc with -march=pentiumpro produce bad code.
2001-11-30 06:53:56 +00:00
gmcgarry
f6b3e39803 Don't abuse preprocessor flags. 2001-11-30 06:40:52 +00:00
gmcgarry
b35b20d732 Remove clock_machdep.h. 2001-11-30 06:30:52 +00:00
thorpej
0046f5dadd - Comment-out EXT2FS, MSDOSFS.
- Uncomment FDESC, KERNFS, PROCFS,
- Add commented-out DEBUG.
- Hard-wire the location of some of the on-board PCI devices.
- Also build a "netbsd-fxp0" with the root FS hard-wired to
  the on-board Ethernet.
2001-11-30 03:01:23 +00:00
itojun
e86f5a87e8 sync with latest GENERIC. 2001-11-30 02:40:57 +00:00
mjl
8231ab74c5 Add assembler version of strlen. 2001-11-30 02:27:20 +00:00
mjl
625c08cf7e Outifdef some stuff not needed in the _KERNEL case. 2001-11-30 02:25:50 +00:00
enami
b3d722b5b5 Since we know that `va' is non-NULL here, no need to test if it is NULL. 2001-11-30 01:54:21 +00:00
enami
ba7af71cd5 Use cached pointer to next buf instead of re-fetching it. GCC actually
generates different code.
2001-11-30 01:31:30 +00:00
christos
9caaf10ee6 PR/14776: Emmanuel Dreyfus: cross device hard link causes panic.
Call VOP_ABORTOP on the right vnode damnit!
2001-11-29 22:32:53 +00:00
thorpej
2494c460a5 Use inline functions for the byte swap routines. Allows libc to build
again (-Wshadow).
2001-11-29 22:32:45 +00:00
bjh21
de5af1d829 Add "options FLASHYTHING", which causes IPL changes to trigger screen border
colour changes.  This gives quite a good real-time visual impression of what
the system's doing at reasonable overhead.
2001-11-29 22:17:16 +00:00
christos
2c06265fb5 welcome to 1.5Z [struct ucred changes] 2001-11-29 21:24:02 +00:00
christos
a74164fa6e sprinkle crcvt() 2001-11-29 21:23:13 +00:00
christos
b2cfd799a6 use struct uucred in nfsd_svcargs so that we don't break the sys_nfssvc() ABI. 2001-11-29 21:22:50 +00:00
christos
0fdce3fa8a sprinkle crcvt() 2001-11-29 21:21:29 +00:00
christos
2a73d40eab introduce crcvt() that converts from struct uucred to struct ucred. 2001-11-29 21:21:13 +00:00
christos
710a2e8de1 Welcome to 1.5Z [struct ucred changes] 2001-11-29 21:20:36 +00:00
christos
edd0fb6c43 use struct uucred in export_args. 2001-11-29 21:20:17 +00:00
christos
4328373c61 Introduce struct uucred which is our ``old'' ucred structure. This is
going to be used the kernel interfaces to userland, so that we don't
break the existing ABI. struct ucred has now been modified to have
u_int32_t for cr_ref and cr_ngroups.
2001-11-29 21:20:00 +00:00
atatat
d8382e86b5 Make sure this directory is kept. 2001-11-29 20:07:52 +00:00
atatat
5d4244e082 We need to include <uvm/uvm.h> instead of (not) including
<uvm/uvm_extern.h> so that assym.h can be built.
2001-11-29 20:04:19 +00:00
briggs
9a0fda91f4 SUNOS_M_NATIVE is now a macro that takes an arg, not a constant. 2001-11-29 18:53:50 +00:00
lukem
91d1bbeaf3 Deprecate fnv_32_*() API. We'll replace this with a more generic hash API. 2001-11-29 18:39:08 +00:00
thorpej
33bfd7be53 Fix typo in copyright notice. 2001-11-29 17:15:44 +00:00
thorpej
a2c8fc94fe Provide a way for platforms to move away from the old RiscPC-centric
interrupt code.  Garbage-collect some unused stuff.
2001-11-29 17:14:02 +00:00
thorpej
a93f7ef419 Provide a hook for platform-specific interrupt code to specify
the "spl" cookie in the switch frame.
2001-11-29 17:12:22 +00:00
thorpej
b0f775a467 Remove some overly-paranoid debug code that grovels too much
platform-specific internals.
2001-11-29 17:10:31 +00:00
wiz
e0492a661d Update note about ioctl tsleep error with error report. 2001-11-29 15:01:19 +00:00
augustss
4b06fc39aa Regen. 2001-11-29 13:58:41 +00:00
augustss
7a7025366e Add some ISD devices. 2001-11-29 13:58:22 +00:00
augustss
c01e71bac5 Plug a memory leak in an error case. 2001-11-29 11:07:12 +00:00
simonb
dfb9621f52 Nuke dk_establish() and use device_register() instead.
Tested by booting off sd0 and sd1.
2001-11-29 08:40:59 +00:00
thorpej
8ae5055ed9 Add routines for accessing the general purpose I/O facility of
the i80312 Companion I/O chip.
2001-11-29 08:27:11 +00:00
thorpej
574dba96b1 Update copyright. 2001-11-29 08:26:18 +00:00
lukem
e54643e8f7 minor knf 2001-11-29 02:58:18 +00:00
lukem
efc46c2fb9 minor knf 2001-11-29 02:46:55 +00:00
thorpej
c5ecb8d8c5 Use the new arm_dcache_align variable to set the PCI device BHLC
register.
2001-11-29 02:26:50 +00:00
thorpej
959181a8b2 Fetch cache info from the Cache Type register on ARM7TDMI and "greater"
processors.  Report this when the processor is attached.
2001-11-29 02:24:58 +00:00
mjl
4ee3b0f097 Add assembler versions of ffs, bzero and memset. 2001-11-29 00:27:07 +00:00
mjl
90acd67a3c Need CACHELINESIZE for libkern memset. 2001-11-29 00:16:35 +00:00
thorpej
636e9cd08b Add a "cacheline_size" argument to pci_configure_bus(). It is used
to set the cacheline size in the BHLC register.  This should be the
size of the largest D-cache line on a system.
2001-11-28 23:48:34 +00:00
christos
c563f940be ELINK_W4_UBYTESOK is 0x0d. This is probably why kim is getting x2 numbers
in stats.
2001-11-28 23:46:42 +00:00
thorpej
85a1db0fda Disable MRL, MRM, and MWI for now. 2001-11-28 22:39:09 +00:00
thorpej
bd3e75a9df Oops, make sure to add in the physical base of the PCI memory
window when mapping PCI mem space.  (Whee, I can take out my
local hack, now).
2001-11-28 21:08:47 +00:00
jdolecek
8528a3409b Match also product id 0x627c, it was omitted by mistake.
Problem pointed out by Carl Drougge on tech-kern, thanks!
2001-11-28 20:56:47 +00:00
manu
55c08f5ede Back out the copy of theses files to userland 2001-11-28 20:13:34 +00:00
thorpej
818da5433c Make this compile again after the cs8900 driver changes. 2001-11-28 19:32:07 +00:00
christos
ac3540cd92 and it is TCP_COMPAT_42 not CP_COMPAT_42, I am sharpening my bricks. 2001-11-28 17:40:57 +00:00
christos
87953c1f1d it is MROUTING, not ROUTING... 2001-11-28 17:39:22 +00:00
christos
8fc71f4259 include ioctl_compat.h unconditionally. 2001-11-28 13:46:06 +00:00
kleink
e5341ee40f No point in installing svr4_machdep.h. 2001-11-28 13:14:12 +00:00
manu
fa1e4588d9 We need to copy new SVR4 header files to /usr/include/sys... 2001-11-28 12:13:49 +00:00
manu
2f3a7bf5f8 Need to include <sys/ioctl_compat.h> to build this with COMPAT_IRIX.
Maybe this is needed for COMPAT_SVR4 too, I'm not sure.
2001-11-28 12:02:59 +00:00
manu
7839e13a9c On IRIX, the first 88 system calls are quite plain SVR4, and the 137
remaining are IRIX specific. We know use SVR4 emulation for the first 88
system calls.
2001-11-28 12:00:53 +00:00
manu
a268e72f56 Add support for COMPAT_IRIX 2001-11-28 11:56:43 +00:00
manu
f73e64b4be Added support for COMPAT_IRIX 2001-11-28 11:54:15 +00:00
manu
9d2b93114a Updated comment about COMPAT_IRIX: we start working on o32 first... 2001-11-28 11:45:36 +00:00
lukem
ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
kleink
a83174b856 Update to reflect that unlike in m68k a.out environments, where the .align
directive is given a log2 argument, .align is given a linear argument in
m68k ELF environments.
2001-11-28 09:49:51 +00:00
darrenr
dd626d89c9 recompute hlen after calling pfil_run_hooks() in case ip_hl was changed. 2001-11-28 09:25:13 +00:00
nisimura
9f8ca586ad Fix a small typo in comment. 2001-11-28 08:49:19 +00:00
lukem
71376e0797 use #ifdef MEMORY_DISK_DYNAMIC (for consistency with the rest of the kernel) 2001-11-28 05:55:34 +00:00
lukem
9cd50b3b95 use #if defined(x) instead of #if defined x 2001-11-28 05:47:37 +00:00
lukem
9f42ccc795 use #ifdef DDB (for consistency with the rest of the kernel) 2001-11-28 05:45:27 +00:00
lukem
371fd3fc10 use #ifdef RAID_AUTOCONFIG (for consistency with the rest of the kernel) 2001-11-28 05:39:13 +00:00
lukem
e336250e74 use #ifdef INET instead of #if INET (for consistency with the rest of the kernel) 2001-11-28 05:22:48 +00:00
atatat
9fb85484bc Misplaced colon. 2001-11-28 03:58:25 +00:00
soren
8f4d2338dc Now that simonb has fixed LKM's on MIPS, enable building them. 2001-11-28 03:52:27 +00:00
soren
0b55de12ee Nuke. These are very unlikely to start witht the current libsa, and can
always be brought back if necessary.
2001-11-28 03:03:43 +00:00
thorpej
a9b25a66fa When processing ASTs:
- Loop until astpending is clear upon return from ast().
- Clear astpending *before* re-enabling interrupts.
2001-11-28 01:31:59 +00:00
lukem
f69269330e add some empty comment lines to make this more readable (IMHO) 2001-11-28 01:13:21 +00:00
thorpej
379948c31f - Garbage-collect some unused cruft.
- When processing ASTs, restore interrupts *after* clearing astpending.
2001-11-28 01:06:19 +00:00
fredette
4fd267f75d Added the new defopt SCSI_OLD_NOINQUIRY; this is used instead
of sun2 to wrap code that conjures up INQUIRY responses for
certain specific old devices.
2001-11-28 01:04:49 +00:00
thorpej
b9caa4cbc7 Don't grovel interrupt-related info here; if a platform wants to
do that, let it do that in a way it can control.
2001-11-28 00:19:53 +00:00
thorpej
a2fa0b1029 Add prototypes for new XScale write-through cache routines. 2001-11-28 00:18:46 +00:00
thorpej
8e96318c12 Don't define interrupt handler-related offsets here. 2001-11-28 00:18:13 +00:00
atatat
df7d7405f8 Alter the way that LINKTEXT and LINKDATA (and LINKENTRY) are set so
that empty values for TEXTADDR and DATAADDR (and ENTRYPOINT) will not
screw things up.  Add support for SYSTEM_LD_TAIL_EXTRA which some
ports (not yet converted) are using.  Add support for GENASSYM_EXTRAS
which has just been added to (some of) the arm ports.
2001-11-27 23:28:42 +00:00
yamt
dc2a9f16a0 don't allocate a mbuf cluster if we don't need. 2001-11-27 21:40:55 +00:00
bouyer
1cd410986d In cn_get_magic() don't increment i in the for(;;) loop, as it's already
set to point to the next value with CNS_MAGIC_NEXT().
Now it's obvious that the magic string on my U5 is +++++ and not +++ :)
2001-11-27 20:00:36 +00:00
oki
3936fc4740 Fixed forgot map .idata section for some binaries. 2001-11-27 17:59:49 +00:00
augustss
113024244c Make it compile in the absence of networks. Closes PR 14274 (mine). 2001-11-27 17:32:57 +00:00
fredette
73001afb44 When opening the mouse port, be sure to open it for 8 data bits.
The sun2 PROM can leave the port configured for 7.
2001-11-27 16:19:43 +00:00
onoe
afdb23ddea Set ONES (must be ones) bits in tmd1 of tx descriptors.
This fix avoids VMware 3.0/WinXP to crash.
2001-11-27 13:49:03 +00:00
yamt
b2dc60987f add isapnp frontend for cs driver. 2001-11-27 12:23:31 +00:00
yamt
e9dd0249c8 regen for IBM EtherJet ISA. 2001-11-27 12:21:49 +00:00
yamt
dcb7807cbe add IBM EtherJet ISA. 2001-11-27 12:20:39 +00:00
itojun
f8321e02a6 fix cast128 with shorter key length. sync with kame 2001-11-27 11:19:36 +00:00
jdolecek
577b809930 crfree(): add DIAGNOSTIC sanity check of cr_ref; unfortunately, if the memory
is freed prematurely the check won't be triggered immediatelly, probably
since the memory is likely to be reused fast; but it _would_ be triggered
eventually
2001-11-27 07:30:03 +00:00
enami
60adc294b9 Regen. 2001-11-27 03:25:53 +00:00
enami
f349dc8748 cvs -q update -j1.147 -j1.148 pcmciadevs 2001-11-27 03:25:16 +00:00
thorpej
28466919a2 Use <machine/intr.h> rather than <machine/irqhandler.h> 2001-11-27 01:03:52 +00:00
thorpej
ce1401fe6e Use <machine/intr.h>, not <machine/irqhandler.h> 2001-11-27 00:53:11 +00:00
thorpej
5cdf707d06 defopt COMPAT_IRIX 2001-11-27 00:50:46 +00:00
thorpej
7184ed949e Update copyright notice. 2001-11-27 00:35:34 +00:00
thorpej
34ce8c531b Don't need to include <machine/irqhandler.h> 2001-11-27 00:34:48 +00:00
thorpej
0a6ce2ccf5 Use the generic 32-bit ARM genassym.cf 2001-11-27 00:25:32 +00:00
thorpej
8d636bc825 Blah, hpcarm also has its own intr.c 2001-11-27 00:24:44 +00:00
thorpej
8cd82ab7b7 Move interrupt-related stuff out of the generic 32-bit ARM genassym.cf
and into platform-specific genassym.cf files.
2001-11-27 00:15:58 +00:00
thorpej
37677ca786 Allow port-specific Makefile fragments to specify a list of additional
genassym.cf fragments, if desired.
2001-11-26 23:54:49 +00:00
thorpej
2c47b0a10f Pasto in last. 2001-11-26 23:52:58 +00:00
thorpej
ed112809c9 Allow port-specific Makefile fragments to specify a list of additional
genassym.cf fragments, if desired.
2001-11-26 23:44:58 +00:00
thorpej
9d58f1fcb2 Rename NOCACHE -> PPC_4XX_NOCACHE to avoid conflict with the namei
flag of the same name.

From Frank van der Linden <fvdl@wasabisystems.com>.
2001-11-26 23:31:56 +00:00
fredette
f0002ba642 Added macros for the bits in the SYSBUS byte, and macros
for the i82596 PORT access interface, from the documentation
for that chip.  These help clarify writes to the SYSBUS
part of the SCP, and PORT usage by i82596-aware drivers.
2001-11-26 23:30:59 +00:00
thorpej
9235283af1 Rename NOCACHE -> PPC_4XX_NOCACHE to avoid conflict with the namei
flag of the same name.

From Frank van der Linden <fvdl@wasabisystems.com>.
2001-11-26 23:26:33 +00:00
thorpej
77fdde7f2c Reset the unused RPN bits in a TLBLO to 0, as specified by the PPC401B3
user's manual, page 8-40.

From Frank van der Linden <fvdl@wasabisystems.com>.
2001-11-26 23:24:20 +00:00
thorpej
2d89f9075b Move interrupt-related stuff out of stubs.c into intr.c. 2001-11-26 23:19:04 +00:00
thorpej
bb706190b3 Add code to run the XScale cache in write-though mode, and do so
for now...
2001-11-26 22:26:44 +00:00
manu
46f63b37c1 Removed an unused line 2001-11-26 21:44:53 +00:00
manu
12c949a188 Added COMPAT_IRIX (being developped, not functionnal at that time) 2001-11-26 21:38:41 +00:00
manu
be8254f3a8 Added code to match IRIX N32 binaries 2001-11-26 21:36:24 +00:00
fredette
708a12fced A new config file for VME-only machines 2001-11-26 21:20:35 +00:00
fredette
7bed926c6e COMPAT_SUNOS requires the 1.3 sigreturn code, so include it
even if COMPAT_13 isn't defined.
2001-11-26 21:10:32 +00:00
thorpej
0ca43a5fde Use <arm/arm32/psl.h>, not <machine/psl.h>. 2001-11-26 20:51:57 +00:00
thorpej
87f09650f1 Oops, don't use the generic spl.S; hpcarm provides its own. 2001-11-26 20:49:52 +00:00
thorpej
c8c624e4aa Don't include <machine/psl.h> directly. 2001-11-26 20:49:04 +00:00
thorpej
e0c4ce6999 Use <arm/arm32/psl.h> rather than <machine/psl.h>. 2001-11-26 20:43:46 +00:00
thorpej
87cab44e4e Delete <machine/psl.h> from the ARM ports. It's not a header that
we need to provide to MI code or to userland, and it's also not a
header that generic ARM code should be including directly.
2001-11-26 20:41:42 +00:00
fredette
83c021b2a7 Added quirk entries for Adaptec and Emulex SCSI interposer boards.
Decode a limited set of SASI/SCSI-1 sense codes, and under sun2
only, conjure up INQUIRY responses for these boards.
2001-11-26 20:39:29 +00:00
jdolecek
fd7c36bef3 need compat_exec.c for some old a.out formats 2001-11-26 20:38:15 +00:00
thorpej
534b950d29 Move the interrupt-related file declarations into port-specific
config descriptions so that each port choose whether or not to
use it.
2001-11-26 20:33:43 +00:00
thorpej
7b3d7b3072 Remove the NEWINTR stuff; it's not used, incomplete, and I'm trying
to detangle the ARM interrupt code.
2001-11-26 20:26:20 +00:00
augustss
380fd47edb Change wchan name for usb task thread. 2001-11-26 20:16:55 +00:00
fredette
ec3eeda2fe Use bus_space on sun2.
Update the comment to match list of bus_space-using ports.
Removed some old unused asm() labels.
2001-11-26 20:15:48 +00:00
yamt
adbdd3e6f6 add $NetBSD$ and copyright notice and rcsid. 2001-11-26 19:55:38 +00:00
yamt
f6b0ec4cce - regen for IBM SCSI PCMCIA. 2001-11-26 19:49:34 +00:00
yamt
64b2149540 add IBM SCSI PCMCIA. 2001-11-26 19:48:55 +00:00
yamt
dbaca00330 move dev/isa/cs89x0{.c,{var,reg}.h} into dev/ic
and split isadma parts into /dev/isa/cs89x0isa*.
2001-11-26 19:17:05 +00:00
fredette
7eac246b74 Added support for running 68010 SunOS executables. 2001-11-26 18:15:16 +00:00
thorpej
8ec81cf263 Sprinkle CPWAIT around to enforce some barriers. Also deal with some
pre-B-step errata: must clean-dcache-line to an address before
invalidate-dcache-line to that address, or the dirty bits will not
get cleanred in the dcache array for that line.
2001-11-26 18:09:08 +00:00
fredette
3de224080a trap1 also needs to be handled under COMPAT_SUNOS. 2001-11-26 18:08:37 +00:00
fredette
877ea05895 Only declare the console keyboard on zs if it's a Sun-2
or later keyboard.
2001-11-26 18:06:36 +00:00
thorpej
d8415403ba Fix brain'o in handling of schedhz and profhz. Also, make sure to
compute tickfix after computing tick (not that tickfix should ever
be non-zero, but there for completeness).
2001-11-26 18:01:05 +00:00
fredette
6aa55077e7 Disabled some more things that lighter kernels don't need,
and picked up some formatting fixes from GENERIC.
2001-11-26 17:51:08 +00:00
yamt
9324423e84 remove "stg", that I accidentally commited.
thanks, Tsutsui-san.
2001-11-26 14:21:33 +00:00
shin
3dfc0ff3ab fix pasteo. 2001-11-26 13:16:17 +00:00
yamt
b43f7a4791 add pcmcia frontend for cs driver. 2001-11-26 11:17:34 +00:00
yamt
7af704bf48 - add power management code.
- use ether_ioctl instead of its own code.
  (make ifconfig down works properly.)
2001-11-26 11:14:50 +00:00
tron
e75321130b Back out new "hme" driver because it causes a performance regression on
"netio" on an U5.
2001-11-26 10:39:29 +00:00
tron
7287466499 Bug fixes for VLAN handling supplied by Klaus Klein in private e-mail. 2001-11-26 06:51:12 +00:00
ichiro
a103dcf333 support BUFFALO CFtype WLAN card
wi0 at pcmcia1 function 0: BUFFALO, WLI-CF-S11G,
wi0: 802.11 address 00:07:40:0f:03:ea
wi0: using RF:PRISM2.5 MAC:ISL3873, Firmware: 1.3 variant 4
2001-11-26 04:34:56 +00:00
ichiro
1c1ddcc034 regen 2001-11-26 04:19:12 +00:00
ichiro
3dcc51c184 add device: BUFFALO AirStation CFtype WLAN Card 2001-11-26 04:18:26 +00:00
itojun
8391ace8b7 in_cksum.s is needed for inet6 too 2001-11-26 02:55:39 +00:00
itojun
969cf96980 make it compile without INET 2001-11-26 02:41:20 +00:00
thorpej
3b97bd4996 Remove dummy includes. 2001-11-26 01:03:58 +00:00
thorpej
da03707c2f Moved to <sys/disklabel_acorn.h> 2001-11-26 01:03:23 +00:00
thorpej
e4b45721eb Remove Shark-specific header file. 2001-11-26 01:03:00 +00:00
thorpej
dc19fe137e Don't install includes which userland doesn't need. 2001-11-26 01:02:28 +00:00
jonathan
879d358535 * Add entry for Dolphin Peripherals 4036 dual-serial card.
(Note: PCI ID conflicts with Dolphin Peripherals 4025; a 4025 may
   attach two serial units, but I cannot find one to test).
2001-11-26 00:41:24 +00:00
thorpej
57854f014a Install disklabel_acorn.h 2001-11-25 22:49:39 +00:00
tron
99756bfe86 Pull in Jason Wright's latest changes to the "hme" driver from OpenBSD.
This supports direct DMA from and into mbuf cluster, and VLAN
handling is done a bit differently.
2001-11-25 22:12:01 +00:00
augustss
a6ba091eef Add a quirk for Olympus C-1. From FreeBSD (by iedowse) 2001-11-25 19:15:46 +00:00
augustss
596224e54f Pay attention to the timeout value passed down by the scsipi layer. 2001-11-25 19:05:22 +00:00
thorpej
4fbe7a81e0 G/c riscbsd_partition; it's not used by anything, and is the same
as the riscix_partition anyway.
2001-11-25 19:04:48 +00:00
thorpej
013b705fdc G/c the unused (and #if 0'd) bits of cpu_disklabel. Fetch disklabel_acorn.h
from the correct place.
2001-11-25 19:02:03 +00:00
augustss
6fcfa35836 Regen. 2001-11-25 17:17:42 +00:00
augustss
f070b78088 Add Olympus C-1. 2001-11-25 17:17:22 +00:00
thorpej
1b71762f33 Move disklabel_acorn.h to <sys/disklabel_acorn.h>, much like we did
with disklabel_mbr.h.  More cleanup yet to come.
2001-11-25 16:22:47 +00:00
minoura
090189cb5a Surround a conditionally used varable with #if. 2001-11-25 16:11:56 +00:00
minoura
bbfb453233 Remove unused variables.
Correct printf format strings.
2001-11-25 16:00:05 +00:00
thorpej
2b74082b7b End the "new ARM includes strategy" experiment. The new strategy
broke too many assumptions makde by other parts of the source tree,
and the strategy and how it was supposed to work was never discussed
on tech-userlevel, nor was it applied consistently (to all ARM ports
and to other ports which have common MACHINE_ARCH code, such as MIPS,
m68k, powerpc).

Verified to complete a full "make build" on cats, dnard, evbarm,
and netwinder.
2001-11-25 15:55:53 +00:00
minoura
fe68996902 Previous commit was incomplete. 2001-11-25 15:45:26 +00:00
minoura
e8ac9084a2 Make this file compile again. 2001-11-25 15:43:06 +00:00
minoura
bc2457e5a5 Delete unused variables. 2001-11-25 15:42:23 +00:00
soren
bf7d9c855e Adjust for dsclock name change. 2001-11-25 15:26:03 +00:00
soren
07992b8797 Forgot pooka's license header. 2001-11-25 15:13:53 +00:00
soren
45192487a5 O2 RTC attachment, based on code from Antti Kantee. 2001-11-25 15:05:04 +00:00
takemura
21006d2057 Added SigmarionII entry. 2001-11-25 14:39:50 +00:00
takemura
365ab4ac40 Deleted unused include files. 2001-11-25 14:39:20 +00:00
chs
1b8f294146 disallow mapping negative offsets for both regular files and block devices. 2001-11-25 06:42:47 +00:00
isaki
9803619f9a Sync with GENERIC 1.67 2001-11-25 05:21:12 +00:00
isaki
adf7d48092 Add an ethernet part of Nereid. 2001-11-25 05:10:03 +00:00
minoura
9011251c05 Sync. with GENERIC plus others. 2001-11-25 01:27:49 +00:00
minoura
67b7ba9580 se0 is dead. 2001-11-25 01:23:45 +00:00
minoura
fb3e999db8 One more floppy fix. 2001-11-25 00:42:11 +00:00
minoura
f7b4b90acd Avoid using array chaining mode of DMAC. 2001-11-25 00:38:50 +00:00
lukem
73191c8c28 comment out CRYPTO_MD_DES_ENC & CRYPTO_MD_BF_ENC; they're not used
anywhere in the kernel, they're not defopt-ed, and config(8) -v
complains about them
2001-11-25 00:02:12 +00:00
yamt
ce170de115 - add (partial?) i/o mode support.
- add partial cs8920 support.
- add detach code.
- add a quirk for EtherJet PCMCIA with cardbus bridge.
(above "partial" means "engough to support EtherJet PCMCIA")
2001-11-24 20:18:55 +00:00
thorpej
a3a8490ca2 Sanitize hpcarm includes somewhat, make them more like other ARM ports. 2001-11-24 17:39:31 +00:00
minoura
c5979593b7 Remove debug messages.
Fix bogus floppy check.
2001-11-24 16:38:16 +00:00
minoura
6018e68205 C version of installboot(8).
Shell script version required sed, od, etc. which were too big for install
media.
2001-11-24 16:26:56 +00:00
minoura
12c8367914 boot_ufs can now used as the disk primary boot. 2001-11-24 16:22:54 +00:00
minoura
a8f7d98ad9 Emit the binaries directly from the loader. 2001-11-24 16:18:44 +00:00
minoura
c957ecf172 Support BSD style disklabel on harddisks.
XXX need consistency check between the native label and the BSD label.
2001-11-24 16:08:25 +00:00
martin
86c6c53869 Sanity check the tunnel route after computing it and don't mark the
interface up if there is no route or the route loops back to ourself.
This helps to avoid pilot errors which would result in kernel stack
overflows.
2001-11-24 15:46:08 +00:00
jdolecek
67238c609c The header part of driver overhault:
* simplify and clean the attach code a lot, and support the 'drive'
  locator
* pass proper dev_t to readdisklabel() - formerly, the passed value was
  completely broken (used incorrect major and wrong minor), but worked
  by accident
* worker thread is now spawned per controller, rather than per-drive;
  i/o cannot be done concurrently by different drivers, only one
  i/o can be pending at any time
* simplify the command queue code, just sleep appropriately when
  !poll case, g/c 'async' code formerly needed, move the bio code
  from ed_mca.c to edc_mca.c:edc_bio()
* other misc cleanups
2001-11-24 12:46:15 +00:00
jdolecek
211d58f020 don't need opt_mcaverbose.h here
print 'memory configured' instead of just 'configured' for memory expansion
cards
2001-11-24 12:33:14 +00:00
isaki
26b511b905 fix typo s/68551/68851/ in a comment. 2001-11-24 06:53:16 +00:00
thorpej
525c88a3c4 Cleanup, don't install headers that userland doesn't need. 2001-11-24 03:56:48 +00:00
thorpej
ccbcd042c1 Clean this up, don't install files that userland doens't need. 2001-11-24 03:54:52 +00:00
thorpej
ce8333e910 This is a Shark-specific file; don't need it here. 2001-11-24 03:52:34 +00:00
thorpej
c5269c1608 Make the ARM, Ltd. floating point emulator work w/ ELF. 2001-11-24 03:39:17 +00:00
thorpej
372f11b657 The ARM, Ltd. floating point emulator has moved to arch/arm. 2001-11-24 01:43:20 +00:00
thorpej
fc2c469259 The ARM, Ltd. floating point emulator has moved to arch/arm. 2001-11-24 01:27:11 +00:00
thorpej
87fe867c21 Move the ARM, Ltd. floating point emulator to arch/arm. 2001-11-24 01:26:23 +00:00
thorpej
598f003e0a More G/C. 2001-11-24 01:16:54 +00:00
thorpej
1cfe216e3b Garbage-collect more acorn32-specific stuff. 2001-11-24 01:15:36 +00:00
thorpej
99ae803762 Gerbage-collect a lot of stuff long since moved to arch/acorn32. 2001-11-24 01:11:51 +00:00
perry
7c92f5c3a7 add a VTOC macro that doesn't cast, and fix a spurious lvalue cast with it. 2001-11-24 01:11:34 +00:00
thorpej
1a60d78375 These files are no longer used; the Acorn RiscPC port is now
NetBSD/acorn32.
2001-11-24 01:02:21 +00:00
thorpej
ef9741def9 No need to install bootconfig.h 2001-11-24 00:57:43 +00:00
martin
c21931cf1d Make this respect down interfaces. 2001-11-24 00:21:27 +00:00
thorpej
2e546f76dd Don't need "options PROG32" anymore. 2001-11-24 00:11:00 +00:00
soren
2e3553d407 Make sure to hook into DDB/KGDB if so requested. 2001-11-23 23:48:07 +00:00
thorpej
49592e9870 No need to install irqhandler.h 2001-11-23 23:34:48 +00:00
jdolecek
bb23eba3d8 MCA DMA hooked via bus_dma, so remove one
add entry regarding AHA-1640 (the driver needs testing)
2001-11-23 22:57:34 +00:00
jdolecek
07312f0fbb Convert over to use the new MCA DMA facilities, which encapsulate
the MCA DMA controller access. This also means we gain >16MB RAM support.

While here, overhaul the driver to saner state, especially:
* simplify and clean the attach code a lot, and support the 'drive'
  locator
* pass proper dev_t to readdisklabel() - formerly, the passed value was
  completely broken (used incorrect major and wrong minor), but worked
  by accident
* worker thread is now spawned per controller, rather than per-drive;
  i/o cannot be done concurrently by different drivers, only one
  i/o can be pending at any time
* simplify the command queue code, just sleep appropriately when
  !poll case, g/c 'async' code formerly needed, move the bio code
  from ed_mca.c to edc_mca.c:edc_bio()
* put all string arrays used by edc_dump_status_block() within #ifdef EDC_DEBUG,
  and use numbers instead if it's not defined; this cuts object size by 5KB
* other misc cleanups
2001-11-23 22:53:09 +00:00
jdolecek
90fac765da add 'drive' locator to mca edc 2001-11-23 22:35:46 +00:00
chs
9b6f5a226b macos partition tables appear to use 512 bytes per record rather than
1 sector per record.  change the label code to use the same layout
so that CDs with macos partition tables work.
2001-11-23 22:31:22 +00:00
jdolecek
851fb345aa add mca_dmamap_create() prototype for MI code 2001-11-23 22:29:16 +00:00
jdolecek
ed11067c01 Properly glue in the MCA DMA controller support, using bus_dma
interface, using the code from dev/mca/edc_mca.c:edc_setup_dma()
as a base. Use ISA routines for dmamap/dmamem functions, primarily
to get the buffer bouncing for >16MB RAM machines.  The MCA DMA
channel is stored in unused upper 4 bits of ISA DMA cookie's
id_flags, hopefully that's not too disgusting :)
Export mca_dmamap_create(), which returns map suitable for further DMA
operations using MCA DMA controller.

mca_busprobe(): also report if machine has 32bit DMA (feature byte 2
bit 1)

Use symbolic names for DMA controller commands - I've finally got
info what they mean from Tymm Twillman's Linux include/asm/mca_dma.h.
No more magic constants! Also fix bug in the way DMA counter has been
setup - for 16bit DMA, it's necessary to tell the controller _half_
the byte count. This was wrong in the former code.
2001-11-23 22:24:36 +00:00
jdolecek
bf7f67be85 if the LKM support is not compiled in, don't bother using exec_lock
at all, it's only needed in LKM case

use #if defined(LKM) || defined(_LKM) condition for netbsd32_execve.c,
to DTRT when either compiled statically into kernel with LKM support,
or compiled as a LKM
2001-11-23 22:02:39 +00:00
chs
a106161b5a add spaces for KNF. confirmed to produce identical objects. 2001-11-23 21:44:25 +00:00
thorpej
b8ed19b4ef No longer need <machine/undefined.h>. 2001-11-23 21:23:30 +00:00
thorpej
fc019be5fd Use <arm/undefined.h> instead of <machine/undefined.h>. 2001-11-23 21:18:29 +00:00
thorpej
597c20c6d6 Don't need a <machine/profileio.h> on these platforms. 2001-11-23 20:56:27 +00:00