Commit Graph

56159 Commits

Author SHA1 Message Date
bjh21 2a1092efaa Sort the Wild Vision parallel card into order. 2002-05-22 23:46:36 +00:00
bjh21 1e170f49cd Regen (merge of RISC iX manufacturers list). 2002-05-22 23:27:16 +00:00
bjh21 35010db489 Merge in the list of manufacturer IDs from <arm/xcb.h> on RISC iX 1.2.
Where they differ with what we've had historically, I've kept our value
and added a comment.  The RISC iX list stops at 65 (0x41).
2002-05-22 23:23:23 +00:00
bjh21 205186731b Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers.  This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus.  Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
2002-05-22 22:43:13 +00:00
bjh21 6d59ad5ec5 Add podule_readcmos(), for getting the CMOS configuration for a podule.
Only implemented on acorn26 for now, but the acorn32 implementation should
be pretty much identical.
2002-05-22 22:13:12 +00:00
manu d72c924447 First implementation of a few usync_cntl commands. 2002-05-22 21:32:21 +00:00
thorpej d4260bb037 Back out an unintended change. 2002-05-22 19:06:23 +00:00
wiz f7d76b1062 bcmp -> memcmp. 2002-05-22 16:03:14 +00:00
wiz 45bbb2368f bcopy -> memcpy. Reviewed by Greg Oster. 2002-05-22 15:40:47 +00:00
uch ba28fa4dc2 change disklabel to
16 partition.
 no bsd area of the disk.
2002-05-22 15:01:33 +00:00
drochner 7a829b7e85 -Subtract vm_map_min(kernel_map) from kernel virtual addresses to get offsets
into kernel_object where this was missing.
 (important here because VM_MIN_KERNEL_ADDRESS != 0)
-add some diagnostics
-eliminate some differences to other Utah derived pmaps
2002-05-22 14:34:26 +00:00
drochner 60b6f587bc Subtract vm_map_min(kernel_map) from kernel virtual addresses to get offsets
into kernel_object where this was missing.
This is a no-op on ports where VM_MIN_KERNEL_ADDRESS==0, ie all but
cesfic.
Confirmed and corrected by Chuck Silvers.
2002-05-22 14:29:23 +00:00
simonb 1c5a1746ae Fix space/tab indentation nit. 2002-05-22 05:49:57 +00:00
manu 381f22f4de File forgotten in the previous commit. 2002-05-22 05:14:51 +00:00
manu 23f31f2a3a First implementation of IRIX /dev/usemaclone functionnalities. This
successfully emulates a few test program that use poll semaphores,
including the attach-to-file-descriptor-and-select feature.

There are a few issues:
1) at least one ioctl need to set retval. We handle this in irix_sys_ioctl()
by replacing the data argument by a pointer to a strucutre in the stackgap
that carries the real data and retval. The underlying ioctl methods can
therefore retreive both data and retval.

2) usemaclone is a cloning device: each time it is open, it creates a new
context, and ioctl operation on each open file descriptor will lead to
different behavior. This functionnality is available in NetBSD through the
devvp branch. This first implementation does not use devvp yet, but this
should be done later. Currently, we create a new vnode, and we provide our
own vnode operations. Some operation are applied to the cloned vnode, others
are applied to the original vnode. The v_data field is used to hold a
reference to the original vnode so that we can work on it.

3) at least the setattr vnode operation needs some customisation: IRIX
libc relies on the fact that fchmod on /dev/usema will return 0 in case
of failure.
2002-05-22 05:14:00 +00:00
manu c56a07ad1c Added an irix_machdep.h (in the future, COMPAT_IRIX will be available on
several MIPS architectures)
2002-05-22 04:59:45 +00:00
tv d2f1bd9cd1 Wouldn't it be nice if there were only one thing that needed changing on a
full version bump?  (Fix comment after __NetBSD_Version__.)
2002-05-22 03:29:09 +00:00
tv 9f4e74bc62 1.6 has branched. Welcome to "NetBSD 1.6A". 2002-05-22 03:18:19 +00:00
rafal 3ac921616c Make sure to read from stdin, not stdout. From Scott Taylor. 2002-05-21 21:53:35 +00:00
rafal 722dca8509 Turn kernels into ecoff as well by default. 2002-05-21 21:01:34 +00:00
rafal a5a7e0f25c Add RAMDISK kernels for installation. 2002-05-21 21:00:35 +00:00
matt 077fee836c Add code to distinguish between apple and sun gem cores. 2002-05-21 19:58:24 +00:00
tsutsui 4a46bc7dbc boot block info stuff is now in MI <sys/bootblock.h>. 2002-05-21 16:11:11 +00:00
martin 2fe85a6623 Uniformly pass a "struct isdn_l3_driver *" through layer 2, so we
do not have to search for that driver later while we already knew it
at layer 1.
2002-05-21 10:31:10 +00:00
scottr 91087ff57e Don Bruder's extensive debug output provided in PR 16907 showed that
intvid didn't find the frame buffer on his PB 170 in NetBSD 1.5. This is
because the PowerBook 140/145+145B/170 entries in intvid_info[] were
entered into the table directly from the corresponding hardware tech
notes. Unfortunately, the actual frame buffer is mapped at an offset
of 32 KB from the base of the region (at least when in 32-bit mode).

Since all 4 of these systems have identical video configurations, I'm
updating the rest to match.
2002-05-21 07:05:31 +00:00
manu 17f9f77621 Filling tables for device 62 (irix_usema) where it was missing 2002-05-21 06:35:08 +00:00
augustss e05075c8d4 Rename a cpc device. 2002-05-21 03:05:00 +00:00
augustss cd2c33190e Add stuff for the CPC700. 2002-05-21 03:01:02 +00:00
augustss 54bb400a18 Add a driver for the IBM CPC700 chip. This chip is a host bridge for
PowerPC and provides a PCI-host bridge, interrupt controller, two com ports,
two IIC ports, a timer, and a DRAM controller.
The driver supports PCI, interrupts and com ports.
2002-05-21 02:58:25 +00:00
augustss 1c66d18529 Make it possible to override the way register access is done.
This is needed for some really screwball attachments of the CS8900.
2002-05-21 02:47:04 +00:00
thorpej e839580821 Move kernel_lock manipulation info functions so that they will
show up in a profile.
2002-05-21 01:38:26 +00:00
lukem f6995335d6 Change NEWS_BOOT_BLOCK_OFFSET from 512 to 0, since parts of bootxx do
get loaded to sector 0 (even though we have to copy the disklabel back in)
2002-05-21 00:19:17 +00:00
perseant ec0ca919be Protect v_freelist with splbio(), since HOLDRELE can be called in
interrupt context (through brelvp).  (LFS may be the only subsystem
affected by this problem.)

Tested on i386.
2002-05-20 22:50:57 +00:00
jdolecek 9caf54f80a readdisklabel(): fabricate sane default disklabel in case there isn't
any on the disk
Implemented by Christian Limpach, sent in port-next68k/16929.
2002-05-20 20:49:16 +00:00
jdolecek 89924fe79b Fix race condition between the DMA handler (which gets called
on spldma), and rest of driver/network code (which runs on splnet) in way
if->if_snd queue is accessed. Solve by using intermediate queue.

Problem found, and fix provided by Christian Limpach in port-next68k/16798
2002-05-20 20:19:36 +00:00
jdolecek 56eb55e177 Adapt this to post thorpej-scsipi world.
Fix provided by Christian Limpach in port-next68k/16928.
2002-05-20 18:03:03 +00:00
jdolecek a36ba752c5 Check for zsc properly, and fix typo in #include.
Pointed out, and patch provided by Christian Limpach in private e-mail.
2002-05-20 17:55:46 +00:00
mycroft 44024682c7 The FIX_RESUME_BUG hack does not work, so remove it.
Also, attempt to clarify the message slightly when updating the EEPROM.
2002-05-20 15:23:01 +00:00
lukem 854c067af6 Update to <sys/bootblock.h>'s shared_bbinfo.
(From Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>)
2002-05-20 14:12:23 +00:00
lukem f35d18a7da Update to <sys/bootblock.h>'s shared_bbinfo.
From Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>.
2002-05-20 14:05:22 +00:00
lukem e9a2250850 - add news{68k,mips} definitions, from Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
- be consistent about #define<TAB>
2002-05-20 13:41:42 +00:00
jdolecek ee7012d13e linux_sys_getdents64(): remove the oldcall bug workaround cruft,
it's not needed for this call, and update comment accordingly
2002-05-20 06:45:11 +00:00
jdolecek c118cb14c0 linux_sys_getdents64(): make the d_off member point to next entry, rather
than current one; this is expected (even documented) behaviour of the
new system call
This fixes the endless loop when reading directories on NFS, though
applications won't see all directory entries due to different problem.
Fix by Matthias Scheler and Charles Hannum.
2002-05-20 06:40:37 +00:00
jdolecek aae43707d7 whitespace fixes 2002-05-20 06:26:46 +00:00
jdolecek def25b45fa Fix bug introduced in rev. 1.69 - linux_fakedev() returned always
zero for nontranslated raw devices.
This fixes recently discovered jdb /dev/dsp stdin problem, reported
on current-users by Mark Davies.
2002-05-20 06:22:43 +00:00
mhitch d4b541239a The second-stage boot loader, boot.amiga, uses the default command in the
boot loader image.  Installboot can modify the default command in the
first-stage bootblocks, which will have no effect.  Copy the default command
from the first-stage bootblock into the second-stage bootloader so modifying
the commandline with installboot actually works again.
2002-05-20 05:58:45 +00:00
scottr c3abd2f233 From John Klos, originally committed to the amiga port:
Updated NKMEMPAGES_MAX_DEFAULT so that large memory systems won't crash
when allocating/deallocating lots of memory at once.
2002-05-20 05:28:11 +00:00
thorpej 7f2c33ee8b Add another Linksys card. 2002-05-20 00:51:29 +00:00
bjh21 b741178a9b Regen: RISC Developments IDE, FaxPack. 2002-05-19 22:34:07 +00:00
bjh21 b6c3ea4d91 Add a few Wakefield acquisitions:
Computer Concepts FaxPack
RISC Developments 8-bit IDE interface
Note about Oak EtherO card, which seems to share an ID with their SCSI card.
2002-05-19 22:29:57 +00:00
scottr ed8eb9970b SMALLRAM is an effective replacement for the SPOT and MYSTERY configs,
which are IIcx and IIx machines with not much RAM, respectively.

The PUMA config is configured somewhat optimally for one of Allen's
Quadras but doesn't do anything special as compared to SMALLRAM.
2002-05-19 22:01:01 +00:00
scottr 5b2ea74e40 Example configuration for a system with a slow 68030 with limited RAM.
This was derived from the old SPOT config and is a cousin of the MYSTERY
config, both of which will be summarily executed.
2002-05-19 21:58:27 +00:00
jdolecek 51260b556e use 'jmp label:l' to force adressing to be absolute, rather than pc-relative 2002-05-19 21:40:04 +00:00
jdolecek ce58107cdd use jmp label:l to force absolute, rather than pc-relative, adressing 2002-05-19 21:34:16 +00:00
tls 92f8323be6 Fix client-side lockmgr: locking against myself panic immediately upon an
attempt to NFS-mount a filesystem with the -l (use ReaddirPlus RPC) option.

Fix from Bill Sommerfeld.
2002-05-19 20:51:04 +00:00
leo 5b406e9d20 Try to defeat the assembler optimizer. If we jump to a local label, it tries
to use a pc-relative jump. Which is definitely not what is needed in the
relocation code!
This is new in the current assembler apparantly. None of the kernels build
after my latest upgrade were able to boot... What else is lurking!
2002-05-19 20:26:58 +00:00
augustss cea3466ea6 Add NEED_BINARY, similar to NEED_SREC. 2002-05-19 18:57:33 +00:00
augustss 7202dc2f30 Add CPU_CI symbol so that bzero.S actually compiles on ports other than walnut. 2002-05-19 18:56:54 +00:00
jdolecek ff2064e0c8 make compat_linux LKM buildable on macppc 2002-05-19 18:18:36 +00:00
jdolecek bfbe50611b On archs with broken linux struct stat64 st_ino, rename linux_stat64's
lst_ino to __lst_ino and lst_ino64 to lst_ino, and define
LINUX_STAT64_HAS_BROKEN_ST_INO. Only assign __lst_ino if this define
is present.

This fixes compile on powerpc archs, and hence port-powerpc/16893.
2002-05-19 18:03:15 +00:00
jdolecek 98a5f2b671 hook in truncate64(2) and ftruncate64(2) 2002-05-19 17:55:42 +00:00
jdolecek 973744c531 add missing linux_file64.c, which is needed now 2002-05-19 17:55:08 +00:00
bouyer 953ad0720e Add support for HPT374. Submited by Matthew Rezny in kern/16897, with
minor adjustements by me.
2002-05-19 17:40:46 +00:00
jdolecek 2fc860bc0d make usable in LKM context (use #if defined(_KERNEL_OPT)) 2002-05-19 16:55:43 +00:00
bouyer 5cf2b73fb8 Regen: add HPT372 and 74 PCI IDE controllers. 2002-05-19 16:02:44 +00:00
bouyer 503b19427a Add HPT372 and 74 PCI IDE controllers. 2002-05-19 16:00:19 +00:00
msaitoh 7c10da8b66 fix some overflow cases. 2002-05-19 15:10:46 +00:00
itojun 12bdf036e2 pull in SPD lifetime management code. fix refcnt for SPD entries.
sync w/kame
XXX dead SPD entry lifetime - undergoing sakane's review
2002-05-19 08:22:12 +00:00
isaki 74b7155205 Ignore incompatible part between GNU tar and pax.
idea from Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
2002-05-19 08:14:13 +00:00
itojun 9244bd8154 document net.key.* sysctl. provide sysctl MIB for controlling
proposal payload on ACQUIRE message.  sync w/kame
2002-05-19 08:12:55 +00:00
itojun 691d519c66 remove unneeded decl for __ss_{len,family} 2002-05-19 07:54:05 +00:00
augustss aaf6178285 Handle the "aligment" fault generated by DCBZ when the cache is off.
That way you can run the processor with caches off.
2002-05-19 06:35:45 +00:00
augustss 4bc0b333ea Update dma memory access API a little. 2002-05-19 06:24:30 +00:00
augustss 894da75819 Regen. 2002-05-19 06:20:01 +00:00
augustss 4b2bf1316d Another mouse. 2002-05-19 06:13:29 +00:00
itojun d2fd814987 in sp caching code, check if sp is still alive. sync w/kame 2002-05-19 00:46:40 +00:00
nathanw 6b65b300bf Add missing common or OSF/1 PALcode instructions from the AARM: wtint,
clrfen, urti.
2002-05-19 00:23:50 +00:00
sommerfeld 404be58a8d Regen 2002-05-19 00:19:22 +00:00
sommerfeld 889b8b80d2 Some E7500 device ids 2002-05-19 00:17:34 +00:00
sommerfeld d7135de9ea Regen 2002-05-19 00:01:29 +00:00
sommerfeld 11aa3c6a28 Fortunately for us, all interrupt controllers are not 8259's 2002-05-19 00:01:09 +00:00
sommerfeld 60cfb93a0f Some P64H2 device ids 2002-05-18 23:58:00 +00:00
jmcneill f70f5218cf Add a 'tlp at pci' attachment to the laptop installation kernel. GENERIC_LAPTOP
already has this, and some machines (notably, mine :) ) have onboard tlp and
won't boot with INSTALL or GENERIC.
2002-05-18 23:49:40 +00:00
jklos 7cb0b700f0 Updated NKMEMPAGES_MAX_DEFAULT so that large memory systems won't crash
when allocating/deallocating lots of memory at once.
2002-05-18 23:00:32 +00:00
itojun ea750a3018 sync with KAME.
- don't MALLOC() with M_WAITOK in the spl block.
  move the allocation before splnet().
- when we reset vt of a class, reset the runtime service curve as well.
- don't use max() to compare 64 bit values.
2002-05-18 22:53:25 +00:00
itojun 1d8b891867 sync with KAME.
- make altq_etherclassify() able to handle packets whose ethernet header
  is in a separate mbuf.  closes netbsd PR 16559
2002-05-18 22:52:44 +00:00
sommerfeld ce6cc5672c Add "pa_rawintrpin" containing unswizzled interrupt pin to pci_attach_args. 2002-05-18 21:40:41 +00:00
ad d7e512df18 - Use write barriers.
- NBPG -> PAGE_SIZE.
2002-05-18 20:59:20 +00:00
tsutsui e8b1f54f84 Use ${.TARGET} where appropriate. 2002-05-18 19:03:10 +00:00
sommerfeld 314ef13c23 In pci_probe_device(), correct test for whether the device is behind a
pci-pci bridge (and thus needs its interrupts "swizzled").

Formerly, pci_probe_device() assumed pci busses other than bus zero
were bridged; however, much recent x86 hardware supports multiple
primary pci busses differently -- there is a system-wide bus numbering
scheme.  Now, we instead look at the (newly introduced) sc_bridgetag
value in the parent bus to figure out if there's a ppb or equivalent
in the way.

This fixed at least one case where the i386 MP branch gets interrupt
mapping wrong.
2002-05-18 18:14:11 +00:00
bouyer af09484589 Be more verbose when returning XS_DRIVER_STUFFUP 2002-05-18 16:09:43 +00:00
kent 820aca767e USB_ATTACH: Initialize sc_plachan.altidx and sc_recchan.altidx with -1. 2002-05-18 15:14:39 +00:00
bouyer 29270413af If the data len if not a multiple of 2 bytes, force PIO mode. DMA can't
deal with such xfers, and can wedge the system with some controllers.
It's a bug to request such xfers for ATAPI, but as the request may come
from userland we have to protect against it.
2002-05-18 14:49:55 +00:00
jdolecek e8895ed0a1 Various whitespace fixes, and turn 'No packet to start' message to DPRINTF().
Mostly inspired by Christian Limpach's patch in port-next68k/16978.
2002-05-18 14:33:35 +00:00
jdolecek 88203d9c69 whitespace & formatting fixes, from Christian Limpach in port-next68/16798 2002-05-18 14:09:44 +00:00
isaki 1dc0c84b6b Make ELF kernel loadable, by itohy-san. 2002-05-18 13:54:38 +00:00
lukem 572fd50bc0 enable scsi_find (et al) only if NSCSIBUS > 0 2002-05-18 07:32:11 +00:00
matt 77820698c6 Add lfmiop (LSILogic Fusion-MPT I/O Processor) placeholders for
driver to added latter.
2002-05-18 07:23:04 +00:00
matt cad72c184d Regen. 2002-05-18 07:19:41 +00:00
matt 01b871fa50 Add SYMBIOS FC9[12]9 and 1030R 2002-05-18 07:19:16 +00:00
uch 272ed861db BSD raw partition is obsolete. raw partition is changed to C. 2002-05-18 07:13:01 +00:00
lukem 491a00e92d add missing union sun3sir sun3sir; (hi gimpy!) 2002-05-18 06:59:12 +00:00
lukem 633e8d9515 minor cosmetic tweaks:
- put \r\n before OF_open message
- use  '0' + i % 10  instead of  'A' + i  to print the read block number
2002-05-18 04:24:22 +00:00
lukem 4fa13b2be7 nuke MD installboot, now that it doesn't understand the macppc
bootblocks anymore and /usr/sbin/installboot does
2002-05-18 04:06:12 +00:00
enami 1578726840 Just give up to do readahead rather than waiting busy pages.
While I'm here, added few patchable variable so that one can
easily measure readahead behaviour.
2002-05-18 02:54:57 +00:00
eeh 4678e53555 Fix inverted comparison. We only wan to flush the I$ on *userland* executable
mappings.
2002-05-18 00:51:15 +00:00
mjacob 7aac86133e Pointy hat to me on the last delta. 2002-05-18 00:48:11 +00:00
martin bdd46f7081 (Mostly) backout previous, with some slight modifications.
Restore the reset thread, to make resetting the interface possible while
not blocking interrupts.
Make sure to throw away garbage input while the reset thread is at work
(by setting sc_enabled a bit later).
Issue a PMS_RESET command when resetting to address PR 16788.
2002-05-17 22:49:48 +00:00
enami 2afb4efc4c Make uvn_findpages to return number of pages found so that caller can
easily check if all requested pages are found or not.
2002-05-17 22:00:50 +00:00
perseant 36efaa3565 use macros from <sys/queue.h> 2002-05-17 21:42:38 +00:00
mjacob a14da6673f Replicate change that Matt Thomas made in isp_pci- if we get ENOMEM/EAGAIN
in bus_dmamap_load, return CMD_EAGAIN rather than just make the command dead.
2002-05-17 19:06:24 +00:00
mjacob c3514c8f6d Slight touchup on last change- make sure HBA_BOTCH is set (just in case
somebody at a different level does the wrong thing) on ENOMEM/EAGAIN returns
from loading DMA.
2002-05-17 19:05:08 +00:00
mjacob 16fa96cfc8 Give XS_DRIVER_STUFFUP a case all by itself. 2002-05-17 18:56:05 +00:00
lukem b3facf5a7d reduce MACPPC_BOOT_BLOCK_MAX_SIZE from 6K to 2K, to fit what bootxx is
limited to (and a CDROM limitation as well?)
2002-05-17 18:53:34 +00:00
mjacob c2d194880d Fix seveeral issues- but the most important of which is that we have
to check if we get a RQCS_DATA_UNDERRUN - if we're an FC card, we may
not have RQCS_RU set- if it isn't set, we just lost a DATA XFR IU in the
middle of the exchange. In this case, we have to bomb out the whole xfer.
We had been getting silent data corruption before.
2002-05-17 18:49:42 +00:00
lukem 7f3c3f9b76 Fixes from Bill Studenmund and Allen Briggs:
- setup a 32KB (+32byte) stack, instead of 4KB stack
- cache flush: use _start instead of 0x4000, and flush 2k instead of 1k

Features (by me):
- implement:
	OF_write() (and grab "stdout" from "/chosen")
	putstrn(s,n) using OF_write(); write string s of n bytes long
	putstr(s); write fixed-sized string s
	putc(c); write char c
- add some useful messages which output the status of loading the
  stage 2 bootstrap (which is usually ofwboot)

This code now works on Bill's Beige G3!
2002-05-17 18:45:55 +00:00
jdolecek 46a7bc7d62 Force absolute jumps where necessary, newer gas generates pc-relative
jumps, which we don't want here.
Reported, suggested fix, and testing by Christian Limpach in port-next68k/16793.
2002-05-17 18:03:50 +00:00
wiz 070bb0af6f Tokens after #else are ignored, which is not the intention here. 2002-05-17 12:44:45 +00:00
martin 3d49645449 Remove debug printf accidently commited.
Noticed by Thomas Klausner.
2002-05-17 09:28:34 +00:00
jdolecek 8d0d2a392c make kgdb buildable again, g/c next68k/stub.c
Changes by Christian Limpach in kern/16794, with some minor adjustment
by me.
2002-05-17 06:44:03 +00:00
groo a54b0bba2e Regen. 2002-05-17 01:07:53 +00:00
groo ec845de24e Add a bunch of Inside Out Networks devices. 2002-05-17 01:07:17 +00:00
eeh 5f3262977c Don't use smaller trapframes. Causes more problems that it's worth right now. CVS: ---------------------------------------------------------------------- 2002-05-16 23:29:42 +00:00
eeh d3aa1ab1c4 Add a missing carriage return. 2002-05-16 23:21:55 +00:00
deberg 5d6d9530b6 big-endian macros 2002-05-16 20:37:12 +00:00
eeh a48bd3e3b4 Make the PCI code actually work. 2002-05-16 20:28:33 +00:00
eeh ac0772ab66 Correctly print out all out regs in the trapframe. 2002-05-16 20:27:09 +00:00
wiz 0ed95fb29e #ifdef 1 -> #if 1 2002-05-16 20:05:39 +00:00
wiz 86afeb9db4 Remove bogus stuff after #endif. 2002-05-16 19:56:13 +00:00
wiz f2fda839cd Comment out token after #endif.
XXX: Weird token here -- please double check.
2002-05-16 19:51:40 +00:00
wiz 79deb5d12d Comment out token after #endif. 2002-05-16 19:40:53 +00:00
wiz da0b574ae0 Comment out token after #endif. 2002-05-16 19:30:41 +00:00
wrstuden 1ada35e0f6 Adjust how we set up our stack. According to the ABI, we store the
return pc address at (r1). So don't initialize r1 to be outside our
stack area. Scooted it in 16 bytes to help alignment.
2002-05-16 18:02:47 +00:00
kleink 4647b339e3 Fix typo in attribute name. 2002-05-16 12:12:30 +00:00
haya 1ce4bf6bec Bugfix: s/__NetBSD_Version/__NetBSD_Version__/. IPv4 over IEEE 1394
will work with this change.
2002-05-16 09:08:33 +00:00
briggs 62ee522426 Put options after include to please config(8). 2002-05-16 03:35:20 +00:00
thorpej 64c6407d7b Garbage-collect the empty-for-years "su" device. 2002-05-16 02:59:57 +00:00
thorpej f4cc1100b0 Don't use a 2-dimensional array for the channel's periph table. Instead,
hash the target and lun together and use a hash table.  This will be
necessary in order to support very large (64-bit) LUN number spaces.
2002-05-16 02:54:20 +00:00
thorpej 4daab7072a Don't access a scsipi channel's periph table directly; use
scsipi_lookup_periph().
2002-05-16 02:50:53 +00:00
thorpej 6c1654256e Fix LP64 printf format warning. 2002-05-16 02:23:55 +00:00
uwe 1d33ded1ea Fix stupid typo in pci_decompose_tag(). 2002-05-16 01:33:53 +00:00
thorpej 86b4df33e7 Make sure pa.pa_bus is initialized. (Thanks, uwe!) 2002-05-16 01:03:05 +00:00
thorpej 204183c0fa * Add "pcitag_t *pba_bridgetag" to pci_attach_args. This is set to
NULL for root PCI busses.  For busses behind a bridge, it points to
  a persistent copy of the bridge's pcitag_t.  This can be very useful
  for machine-dependent PCI bus enumeration code.
* Implement a machine-dependent pci_enumerate_bus() for sparc64 which
  uses OFW device nodes to enumerate the bus.  When a PCI bus that is
  behind a bridge is attached, pci_attach_hook() allocates a new PCI
  chipset tag for the new bus and sets it's "curnode" to the OFW node
  of the bridge.  This is used as a starting point when enumerating
  that bus.  Root busses get the OFW node of the host bridge (psycho).
* Garbage-collect "ofpci" and "ofppb" from the sparc64 port.
2002-05-16 01:01:28 +00:00
briggs 5921f0ce6c Split GENERIC into GENERIC (for the X3 revision of the board in native
interrupt mode) and GENERIC.X2 (for the X2 revision of the board or an
X3 in legacy interrupt mode).
2002-05-16 00:20:00 +00:00
briggs a7656b0fb6 Comment out pciide stuff since it's not working yet. 2002-05-16 00:09:47 +00:00
matt 496a3cb868 Let's put a s = splnet(); to match the splx(s); already in the routine.
(yes, we were doing an splx with an uninitialized variable).
2002-05-15 23:51:49 +00:00
matt 1f4c6f5868 Regen. 2002-05-15 22:48:42 +00:00
matt 0bfea741e8 Correct/add more PMC-Sierra PHYs 2002-05-15 22:48:17 +00:00
matt 57752d8c7f Regen. 2002-05-15 21:25:28 +00:00
matt 5a4d71be86 Add another PMC-SIERRA phy 2002-05-15 21:24:59 +00:00
kleink 87e54a98ec Presently lacking a better place (or actually use) for this, record
the MTX's board ID here, too.
2002-05-15 21:06:11 +00:00
matt a61a41b6b0 Only enable detailed evcnts if GEM_COUNTERS is defined. But always count
interrupts.
2002-05-15 21:05:23 +00:00
thorpej dada8613e1 Let machine-dependent code specify how to enumerate the bus.
Currently, everyone uses pci_enumerate_bus_generic().
2002-05-15 19:23:51 +00:00
thorpej 40116f53dd Put back __PCI_BUS_DEVORDER for now. 2002-05-15 18:39:47 +00:00
thorpej 11fa11094e Garbage-collect __PCI_DEV_FUNCORDER. 2002-05-15 18:37:54 +00:00
jdolecek d50107af75 Comment out QUOTA as well. Suggested by Christian Limpach
in port-next68k/16792.
Applied even tho not strictly necessary, kernel nowadays actually
links with this option too.
2002-05-15 18:23:06 +00:00
mrg 32c1ebcb8b complain if we can't get the recording drq at attach time. 2002-05-15 18:14:41 +00:00
thorpej 7c86eb62bc Split the code that enumerates the PCI bus and that actually probes
for a device into two functions:

* pci_probe_device() actually probes/attaches the device specified
  by the provide pcitag_t.

* pci_enumerate_bus() enumerates the bus, and calls pci_probe_device()
  for each device on the bus.  A pci_enumerate_bus_generic() is provided
  which implements the old method of doing this: If something found at
  dev0/func0, determine number of functions and probe each one.

  Machine-dependent code will be able to specify the bus enumeration
  routine in the future.
2002-05-15 18:13:00 +00:00
thorpej a91677eb7b Implement pci_decompose_tag(). 2002-05-15 17:40:11 +00:00
thorpej 4fba408409 Implement pci_decompose_tag(). 2002-05-15 17:30:04 +00:00
thorpej b5e364e5a5 Implement pci_decompose_tag(). 2002-05-15 17:15:17 +00:00
thorpej 487d8b5135 (*pc_decompose_tag)() is no longer alpha specific. Move it as appropriate. 2002-05-15 17:09:58 +00:00
thorpej e19aab3751 Implement pci_decompose_tag(). 2002-05-15 17:09:04 +00:00
thorpej 90e921d836 Rename alpha_pci_decompose_tag() to pci_decompose_tag(). There *is*
some MI PCI code that uses it, and soon there will be more.  (The rationale
for not making it available previously was that it could be mis-used, but
that's true of a lot of things.)
2002-05-15 16:57:41 +00:00
uch ba21cf86c0 obsolete intrcnt[]. 2002-05-15 15:19:54 +00:00
augustss b058cf77d2 Adapt to new bridge name. 2002-05-15 14:15:17 +00:00
augustss 437ddd4f05 Regen. 2002-05-15 14:14:57 +00:00
augustss 5919cbff85 Give a more suitable name to the DEC 21554 bridge. 2002-05-15 14:14:34 +00:00
lukem ee3c8d5e85 convert to using shared_bbinfo from <sys/bootblock.h>, and install as an
"${OBJCOPY} -O binary ..." program (rather than as ELF)
2002-05-15 13:55:38 +00:00
lukem 30c58c94be - add Apple driver map and partition map structs, obtained from
sys/arch/macppc/include/disklabel.h (with elements renamed as appropriate)
- consistenly use "uint*_t" instead of "u_int*_t"
2002-05-15 13:32:10 +00:00
bouyer 445778d624 The number of sector is unsigned long, so use %lu to print it. 2002-05-15 13:01:27 +00:00
bouyer 3d5ee1e719 Change PQUIRK_CAP_SYNC to set PERIPH_CAP_SYNC aslo for devices that
improperly claim to only support DT clocking.
Add a PQUIRK_CAP_WIDE16 quirk.
Add a quirk for IBM DXHS36D SCSI disk (claims to only support DT).
2002-05-15 11:43:22 +00:00
bouyer 36ce07cc3b scsipi_print_xfer_mode(): PERIPH_CAP_DT is an equivalent of
(PERIPH_CAP_SYNC | PERIPH_CAP_WIDE16) here.
2002-05-15 11:19:38 +00:00
simonb ee3ab87335 Print some error messages when the codec fails to initialise (some errors
were already reported, others weren't).
Sprinkle some KNF around.
2002-05-15 09:55:45 +00:00
lukem 966b42a3e6 bootblock.h:
- unify sparc_bbinfo (1064 bytes, with 256 block entries)
  and sun68k_bbinfo (296 byte, with 64 block entries)
  into shared_bbinfo (512 bytes, with 118 block entries),
  which will be also shared by future bbinfo-using platforms
  (including macppc)
- add datestamp to *_BBINFO_MAGIC strings, to prevent installboot vs
  bootxx version skew.
- add macppc support

*/bootxx.c:
- migrate to new shared_bbinfo structure

installboot:
- add macppc support (still needs applepartmap support and testing)
- improve and add some more warnings & errors to installboot
- implement shared_bbinfo_clearboot() and shared_bbinfo_setboot(), which
  perform the majority of the work for bbinfo-using back-ends
  (rather than replicating that across multiple back-ends).
2002-05-15 09:44:54 +00:00
matt 357945ce6f When core dumping a process, don't dump maps backed up by the device pager.
(move the pagerops externs to uvm_object.h and out the C files).
2002-05-15 06:57:49 +00:00
lukem 86671d3350 - implement putstr(), and use in various places instead of printf()
- wrap more debug stuff in #ifdef DEBUG
- for bootxx, provide minimal panic() which uses putstr() instead of printf()

bootxx is now < 7.5KB
2002-05-15 04:07:41 +00:00
matt 486ad92d2a Add evcnt stuff for interrupts.
Fix receiver lockups.  When writing the RX Kick register, we need back up
on descriptor since we advanced one in the for loop.  That will be the
last descriptor we haven't processed which is what we should write.
2002-05-15 02:36:11 +00:00
enami 694a0fec54 When loaned page become ownerless as a result of freeing, it should be
dequeue'ed from pageq.  Fix provided by chuq.
2002-05-15 00:19:12 +00:00
matt d6f9a400fe Fix initialization of GEM_RX_MAC_INTR. 1 means mask. 2002-05-14 23:33:41 +00:00
eeh d295742774 Have CLKF_BASEPRI() always return false for now to prevent hardclock
from being blocked by softclock.
2002-05-14 21:21:45 +00:00
perseant 8886b0f4b2 Phase one of my three-phase plan to make LFS play nice with UBC, and bug-fixes
I found while making sure there weren't any new ones.

* Make the write clusters keep track of the buffers whose blocks they contain.
  This should make it possible to (1) write clusters using a page mapping
  instead of malloc, if desired, and (2) schedule blocks for rewriting
  (somewhere else) if a write error occurs.  Code is present to use
  pagemove() to construct the clusters but that is untested and will go away
  anyway in favor of page mapping.
* DEBUG now keeps a log of Ifile writes, so that any lingering instances of
  the "dirty bufs" problem can be properly debugged.
* Keep track of whether the Ifile has been dirtied by various routines that
  can be called by lfs_segwrite, and loop on that until it is clean, for
  a checkpoint.  Checkpoints need to be squeaky clean.
* Warn the user (once) if the Ifile grows larger than is reasonable for their
  buffer cache.  Both lfs_mountfs and lfs_unmount check since the Ifile can
  grow.
* If an inode is not found in a disk block, try rereading the block, under
  the assumption that the block was copied to a cluster and then freed.
* Protect WRITEINPROG() with splbio() to fix a hang in lfs_update.
2002-05-14 20:03:53 +00:00
chris 56deade0b7 Make INSTALL smaller, so it fits in 4MB, removed:
USB (controller and devices)
INET6
tlp, swap it with de, as tlp still has issues on cats.
2002-05-14 19:44:57 +00:00
perseant 3fa1c8abe9 Protect v_synclist with splbio(); note that LIST_REMOVE is not an idempotent
operation if more than one LIST_REMOVE happens on interrupt, so both the test
for VONWORKLIST and the LIST_REMOVE(vp, v_synclist) need to be in splbio().
2002-05-14 19:37:18 +00:00
augustss 1906cd67ef ANSIfy. 2002-05-14 19:23:45 +00:00
chris a9e806ee0c Implement scheduler lock protocol, this fixes PR arm/10863.
Also add correct locking when freeing pages in pmap_destroy (fix from potr)

This now means that arm32 kernels can be built with LOCKDEBUG enabled. (only tested on cats though)
2002-05-14 19:22:34 +00:00
mycroft 1523c4c12f In ufs_mkdir(), write the data block *before* updating the inode with the
block pointer, to prevent "DIRECTORY CORRUPTED" errors from fsck(8).
Note: The behavior in the softdep case is unchanged, but needs to be fixed.
2002-05-14 17:37:52 +00:00
soren fa3bdb57ba Add some codenames. 2002-05-14 16:21:47 +00:00
pooka 95af0aba23 include GENERIC, set TEXTADDR right 2002-05-14 15:42:25 +00:00
pooka fe422abe40 a real version of GENERIC 2002-05-14 15:38:43 +00:00
lukem 5e90f2ad0b deprecate MD installboot in favour of MI installboot in /usr/sbin 2002-05-14 14:57:14 +00:00
lukem aaa7dba035 - Enable NFS_BOOT_DHCP (as well as the existing NFS_BOOT_BOOTPARAM).
DHCP/Bootp is tried before bootparams in the MI nfs mountroot code.
- Change the order in boot.net from "bootparams then bootp" to
  "bootp then bootparams", to be consistent with the MI nfs mountroot code.

(Consistency with other NetBSD ports is good, and things still work
for sites that run bootparams but not dhcp/bootp, although I'd argue that
dhcp/bootp is much easier to setup and manage and is easier to debug
than our rpc.bootparamd...)

Per discussion with Paul Kranenburg and Matt Green.
2002-05-14 14:27:33 +00:00
yamt b70f1bdb62 - don't use ENTRY() macro for data.
- fix calculation of bit offset of DR7.
2002-05-14 14:22:33 +00:00
augustss 14389c7b50 Regen. 2002-05-14 12:05:35 +00:00
augustss 72d8d32c1d Add a Heuricon host bridge. 2002-05-14 12:05:13 +00:00
itojun b5f1426ee0 rename: net.inet6.ip6.bindv6only -> net.inet6.ip6.v6only
sync w/kame.
2002-05-14 10:27:28 +00:00
lukem 4369818766 Migrate alpha/pmax/vax bootblock stuff from <dev/dec/dec_boot.h> to
<sys/bootblock.h>  (leaving ultrix compat goo in the former)
2002-05-14 06:34:20 +00:00
matt 0dc8ee943d Eliminate more commons or redundant declarations. 2002-05-14 02:58:32 +00:00
matt fed7110558 Commit out code that's no longer used. 2002-05-14 02:46:22 +00:00
lukem 86af66583e correct a couple of comments 2002-05-14 02:41:34 +00:00
eeh e8ff5b27c8 Trapframes only have locals or ins if the kernel is compiled DEBUG. 2002-05-14 02:34:14 +00:00
eeh 1d52c1bd50 Only save locals and ins in trapframes for DEBUG kernels. 2002-05-14 02:23:07 +00:00
matt 84eb329d14 Eliminate commons (including many used ones). Clean up variable references. 2002-05-14 02:03:00 +00:00
lukem 6c34850421 add sparc64 stuff 2002-05-14 01:18:50 +00:00
matt 855ee2e758 #include <db/db_extern.h> 2002-05-14 00:14:53 +00:00
matt 109792dc5c Eliminate commons. (including a few unused or mismatched ones). 2002-05-14 00:08:21 +00:00
matt 0d14655c1c Add local definition of adosfs_vnodeop_p 2002-05-14 00:05:56 +00:00
matt aefe6a5034 Eliminate common. 2002-05-13 23:50:32 +00:00
eeh fc5fdc8819 Add rtc@ebus. 2002-05-13 22:38:01 +00:00
thorpej adbd145bda Make alpha_pal_halt, alpha_pal_wrent, and alpha_pal_wrvptptr no-profile. 2002-05-13 21:38:30 +00:00
thorpej 456615e083 Make sigcode and proc_trampoline no-profile. 2002-05-13 21:38:09 +00:00
thorpej ee76016e40 Make the sigcode no-profile. 2002-05-13 21:37:11 +00:00
jdolecek b631b39a19 Change the reset code to block interrupts and use polled commands; also
eliminate the kthread now that it's not necessary, and use callout instead.
This seems to fix the X mouse freeze problem.

Testing and some debug printf fixes by Martin Husemann.
2002-05-13 21:18:51 +00:00
matt 5916ff65fd Eliminate commons. 2002-05-13 21:11:23 +00:00
eeh 7b70e3b8fb Fix off-by-one error in iommu_dvmamap_load_raw() where if a DMA segment
has just one byte on a page the page is never mapped into the IOMMU.
2002-05-13 21:01:15 +00:00
matt 0a6d35b7ed Nuke local extern label_t *db_recover; it's now in <ddb/db_extern.h> 2002-05-13 20:30:07 +00:00
matt 98b5a4329f Add db_recover 2002-05-13 20:17:20 +00:00
kleink 241f6932ee * Use uint{8,32}_t from <netinet/in.h> where applicable; use private
fixed-width integer types otherwise.
* Protect RFC 2292 prototypes, which are not XNS5.2/POSIX-2001; also, define
  size_t for inet6_rthdr_space().
2002-05-13 15:20:30 +00:00
kleink 0f1faf8e09 IPV6PORT_* aren't in the reserved namespace either. 2002-05-13 14:25:13 +00:00
kleink d258299876 Check _POSIX_C_SOURCE as well. 2002-05-13 14:15:34 +00:00
matt c27fdbcdbe Don't panic is no class-code, just return. Needed for NetraX1. 2002-05-13 13:59:21 +00:00
kleink a317e750c3 Update two comments. 2002-05-13 13:52:31 +00:00
kleink 1b8d8d79a8 Define uint{8,32}_t locally, per XNS5.2/POSIX-2001, and use them in this
header where applicable; use private fixed-width integer types otherwise.
2002-05-13 13:34:32 +00:00
augustss 4c3acbe183 Two minor fixes from OpenBSD. 2002-05-13 12:10:04 +00:00
pk bb42415ffa Check whether a console is attached before sending data upstream. 2002-05-13 09:42:12 +00:00
hannken 616dac6232 Add support for NetMos NM9805 1284 Printer port.
Tested by David Kwok <dkwok@iware.com.au>.
2002-05-13 09:19:57 +00:00
matt 44b3464a48 debug0, debug1, debug15 are defined elsewhere. XXX there needs to a
better was of doing this.
2002-05-13 07:13:58 +00:00
matt bab0fa8919 Remove redundant declarations. 2002-05-13 07:12:21 +00:00
matt f62dc5c664 Remove redundant declarations. 2002-05-13 07:04:24 +00:00
matt a0b018ab58 Remove redundant declarations. 2002-05-13 06:41:30 +00:00
matt c8f0da6300 Eliminate redundant declarations. 2002-05-13 06:26:45 +00:00
matt d7ee0a910a Remove declarations for variables that defined elsewhere in MPC6XX code. 2002-05-13 06:17:36 +00:00
simonb ada33c9eac Oops, remove an #endif leftover from the previous change. 2002-05-13 06:11:52 +00:00
matt d210f0530b Eliminate commons. 2002-05-13 06:05:32 +00:00
matt 6456f8fa92 Make COMPAT_LINUX compile again on Alpha. linux_getdents64 moved but
files.linux_alpha wasn't updated.  common/linux_file64.c contains a lot
of syscalls which aren't on Linux/alpha so #ifdef them for alpha.
2002-05-13 05:41:26 +00:00
simonb 75119b46c5 Remove an unreachable "return error;". 2002-05-13 05:37:58 +00:00
simonb 7a0dcaf565 Remove an unreachable "return 0;". 2002-05-13 05:35:47 +00:00
simonb f6efa04293 Remove an unreachable "break" after a return statement. 2002-05-13 05:31:42 +00:00
simonb c790dd34b6 Add a comment after an #endif to match up with an #ifdef. 2002-05-13 04:15:40 +00:00
simonb ee2264c945 All MIPS ports have been ELF for a long time (most since they were
created); remove non-ELF assembly support.
2002-05-13 01:39:17 +00:00
matt 3064b5ac0a Eliminate common. 2002-05-13 01:33:12 +00:00
soren f514efc600 Make the build machinery happy for now. 2002-05-13 01:26:27 +00:00
matt 075e474458 Eliminate commons. 2002-05-12 23:16:52 +00:00
matt 6e15a048de Remove declaration of total. nothing uses it. 2002-05-12 23:15:42 +00:00
matt 0cb85bc7b9 Eliminate commons. 2002-05-12 23:06:27 +00:00
matt caf4b56c6f Eliminate commons 2002-05-12 23:04:35 +00:00
kleink 602066c0d6 Provide local definitions of in_{addr,port}_t in <netinet/in.h> and use
them where deemed appropriate by XNS5.2/POSIX-2001.
2002-05-12 23:04:15 +00:00
kleink cc7147e7f6 Use <sys/ansi.h> definitions for in_{addr,port}_t. 2002-05-12 22:59:50 +00:00
kleink d05cce938c Provide private definitions for in_{addr,port}_t. 2002-05-12 22:58:48 +00:00
matt 7ec7462c84 Remove/move a redundant extern. 2002-05-12 21:43:57 +00:00