Commit Graph

20403 Commits

Author SHA1 Message Date
simonb
10c7b5ab91 Remove the remaining files in lib directory. The other files in
this directory were moved to ../common via a CVS repository copy.
1999-11-27 03:55:46 +00:00
simonb
40bbc6129e Remove the remaining files in scsiboot directory. The other files in
this directory were moved to ../common via a CVS repository copy.
1999-11-27 03:54:43 +00:00
simonb
426c66b28c Moved to common/callvec.c,v 1999-11-27 03:14:47 +00:00
simonb
42fdd5dfb7 Moved from lib/callvec.c,v 1999-11-27 03:14:46 +00:00
simonb
e2751ce295 Moved to common/printf.S,v 1999-11-27 03:12:24 +00:00
simonb
360739d57f Moved from scsiboot/printf.S,v 1999-11-27 03:12:23 +00:00
simonb
88b44c10cb Moved to common/clear_cache.S,v 1999-11-27 03:11:56 +00:00
simonb
ea515c3a7f Moved from scsiboot/clear_cache.S,v 1999-11-27 03:11:55 +00:00
simonb
16ddb8bd85 Moved to common/bootxx.c,v 1999-11-27 03:11:41 +00:00
simonb
9bbac58265 Moved from scsiboot/bootxx.c,v 1999-11-27 03:11:40 +00:00
simonb
acefb84bcb Moved to common/startprog.S,v 1999-11-27 03:10:17 +00:00
simonb
81ff761e62 Moved from lib/startprog.S,v 1999-11-27 03:10:16 +00:00
simonb
a61aff17a2 Moved to common/start.S,v 1999-11-27 03:10:07 +00:00
simonb
ffab24d77d Moved from lib/start.S,v 1999-11-27 03:10:06 +00:00
simonb
d4e109f26d Moved to common/rz.h,v 1999-11-27 03:09:52 +00:00
simonb
2dcb3cc6f2 Moved from lib/rz.h,v 1999-11-27 03:09:51 +00:00
simonb
de5d47be57 Moved to common/rz.c,v 1999-11-27 03:09:42 +00:00
simonb
dd6570cdf6 Moved from lib/rz.c,v 1999-11-27 03:09:41 +00:00
simonb
875e06c29a Moved to common/putchar.c,v 1999-11-27 03:09:27 +00:00
simonb
59e9772e78 Moved from lib/putchar.c,v 1999-11-27 03:09:26 +00:00
simonb
7915729248 Moved to common/newvers.sh,v 1999-11-27 03:09:06 +00:00
simonb
cf4333e101 Moved from lib/newvers.sh,v 1999-11-27 03:09:05 +00:00
simonb
b24ec11fca Moved to common/devopen.c,v 1999-11-27 03:08:47 +00:00
simonb
16c74987cc Moved from lib/devopen.c,v 1999-11-27 03:08:46 +00:00
simonb
1a4a126f90 Moved to common/conf.c,v 1999-11-27 03:08:31 +00:00
simonb
b02cf094dc Moved from lib/conf.c,v 1999-11-27 03:08:30 +00:00
simonb
8ac75f530b Moved to common/common.h,v 1999-11-27 03:08:02 +00:00
simonb
034554d0a8 Moved from lib/common.h,v 1999-11-27 03:08:01 +00:00
simonb
41f1bf53e1 Moved to common/bootread.S,v 1999-11-27 03:07:40 +00:00
simonb
4a75552397 Moved from lib/bootread.S,v 1999-11-27 03:07:39 +00:00
simonb
d5c8b5ad99 Moved to common/bootinit.S,v 1999-11-27 03:07:22 +00:00
simonb
1f59f63d6d Moved from lib/bootinit.S,v 1999-11-27 03:07:21 +00:00
simonb
4d2b51c4be Moved to common/bootinfo.h,v 1999-11-27 03:06:56 +00:00
simonb
3f99fedebd Moved from lib/bootinfo.h,v 1999-11-27 03:06:55 +00:00
simonb
4a53cd4daa Moved to common/bootinfo.c,v 1999-11-27 03:06:31 +00:00
simonb
1e9b1f56a7 Moved from lib/bootinfo.c,v 1999-11-27 03:06:30 +00:00
simonb
089a87b280 Moved from boot/boot.c,v 1999-11-27 02:52:07 +00:00
simonb
9f8721cd67 Moved to common/boot.c,v 1999-11-27 02:52:06 +00:00
simonb
fbbde1126e Remove NUMBOOT define - disklabel doesn't install bootblocks anymore. 1999-11-27 01:58:37 +00:00
simonb
db783e76e8 Use explicitly sized types for entities that exist on disk.
Use alpha-like defines for boot block offset on disk and boot block size.
1999-11-27 01:51:20 +00:00
simonb
b83882f7c7 Use new pmax stand structure for multi-filesystem bootblocks. All
entries are commented out for now until everything else is updated.
1999-11-27 01:45:46 +00:00
simonb
69e1252d6a Oops, px* won't work right now - go back to px0. 1999-11-27 01:31:47 +00:00
simonb
0b1eae6c7a * all device attachments, after discussion with Jason Thorpe and Toru
Nishimura.
1999-11-27 01:19:31 +00:00
mycroft
1d9d2c47c5 In pmap_emulate_reference(), always or in the bits. I know the code is trying
to be clever, but...
Also, a slight optimization for the write case.
1999-11-27 00:25:15 +00:00
mycroft
f26df92bed Fix bugs in pmap_protect() that were responsible for the `ld.elf_so lossage'.
* We could overrun the eva by as much as L1SEG_SIZE-PAGE_SIZE.
* sva was advanced *twice* for each valid l3 or l2 page, causing it to get out
  of sync with the PTE pointers.
1999-11-26 23:04:33 +00:00
is
14d940c179 Jens, not Joerg 1999-11-25 22:11:03 +00:00
is
5a05d40012 Address range scaling is hidden by the bus_space functions. Correct the
definitions in case we ever do bus_space accounting on Amiga.
1999-11-25 21:58:57 +00:00
is
366a09427a Add a few boards we know about.
This should really be table-driven and optional.
1999-11-25 21:57:45 +00:00
is
57ac5a3ea7 Another RTL8019 board: X-serve by Individual Computers Jens Schoenfeld. 1999-11-25 21:53:01 +00:00
is
df61f0409e From the 68040 User Manual, page 4-10:
"To fully support self-modifying code in any situation, it is imperative that
a CPUSHA intrcution is executed before the execution of the first self-modified
instruction. The CPUSHA instruction has the effect of ensuring that there is
no stale data iin memory, the pipeline is flushed, and instruction prefetches
are repeated and taken from external memory."

I verified that this is the only way (I can think of) to make the sigtramp
regression test work on 68040. doing cpushl dc; cinvl ic; over the affected
address range, then nop (to synchronize the pipeline) is not enough; apparently
the nop does not FLUSH the pipeline and prefetch...

Note that the 68060 UM has copied the above cited passage, but in fact this is
not true. This might be connected to the fact that the 68060 does ensure
memory access order under most conditions.
1999-11-25 20:30:38 +00:00
ad
6783a346b9 Fix date in copyright string. 1999-11-25 16:40:19 +00:00
pk
249aa2e089 Target `machine' symlink explicitly at the sparc64 headers. 1999-11-25 14:46:08 +00:00
pk
e0118ca933 Suppress the machine' symlink when making target obj'.
Also add it to the clean target list.
1999-11-25 13:27:30 +00:00
pk
b797a06151 Make symlink to appropriate header directory and have cpp use it. 1999-11-25 13:25:09 +00:00
mrg
dcba4f5e10 use a portable invocation for cc -E 1999-11-25 06:06:03 +00:00
mrg
ca66e6b619 - pass slot number to sbus_get_intr() as a new argument.
- in sbus_get_intr(), if we are not an onboard device (ie, sbus card),
  encode the slot number into the sbi_pri so that we can later extract
  it and use it to find the interrupt map & clear registers for this
  device.
- remove "intr" support as it is really pre-sun4u only.
- don't "pause" for so long in sbus interrupt debug messages..

with the slot number being passed back from sbus_get_intr(), the FS/BE
card in an ultra2 now appears to get interrupts and gets beyond
waiting for the scsibus probe!
1999-11-25 05:03:53 +00:00
nisimura
36e75e7449 Some fix on comment descriptions. 1999-11-25 02:53:46 +00:00
nisimura
94b897d4bf Reorder device descriptions to reflect what kernel shows on screen,
mostly in address ascending order.
1999-11-25 02:48:12 +00:00
simonb
353ca54019 Move memory sizing to a new function memsize_scan(), and add an empty
stub for memsize_bitmap() to use the PROM bitmap for memory information.
Add a memsize function pointer to the platform structure, and make all
existing DECstation models use memsize_scan() for now.

Interestingly, from the Ultrix cpuconf.{c,h} only the 3100 and 5400 use
a memory scan to determine available memory - all other models use the
PROM bitmap...
1999-11-25 01:40:22 +00:00
scottr
2454426afe Take a cue from the i386 port: Enable DHCP by default, rather than
BOOTP.
1999-11-24 22:01:19 +00:00
drochner
cfabac64f5 fix vm_page initialization for the case where kernel+symbols+tables
exceed 16M
1999-11-24 18:32:50 +00:00
simonb
93d33f5806 Wildcard 3max {asc,le}0 at tc attachment. 1999-11-24 02:25:37 +00:00
thorpej
635d546dd9 Specify the locators for everything. 1999-11-24 02:10:47 +00:00
thorpej
4d7bdecfce My 3MAX's config file. 1999-11-24 02:05:40 +00:00
thorpej
7fa174a09e Specify all the locators for the various devices. 1999-11-24 02:05:12 +00:00
mrg
d4cf67e2d2 s/CEXTRAFLAG/CEXTRAFLAGS/ so it works. 1999-11-24 01:54:34 +00:00
mrg
abc579187f prefix a variable with "pci_" 1999-11-24 01:53:38 +00:00
simonb
05715b1dbd Attach asc0 and le0 at tc 5 and 6 respectively - 5000/200 now works again.
XXX: Should the turbochannel slot numbers be wildcarded or hardcoded?
     It's not as if they can appear anywhere else...
1999-11-24 01:52:06 +00:00
simonb
6a03465ac4 Don't check for additional dc instances yet. 1999-11-24 01:43:38 +00:00
thorpej
11ea81b1c2 Delete now-unreferenced files. 1999-11-24 01:18:13 +00:00
simonb
d6a69159ca Fix tyop in comment. 1999-11-24 00:18:37 +00:00
thorpej
298f4b27f4 Make separate device lists for the 3100 and 5100, and add a way to probe
for optional `dc' devices on the 5100.
1999-11-24 00:04:06 +00:00
thorpej
98e19f8e0e Add an addr' locator to the ibus' bus. This allows you to wire down
unti numbers on systems which have e.g. multiple `dc' devices on the
internal bus (like the 5100).
1999-11-23 20:07:34 +00:00
leo
761038f279 Correct the test for a free-slot for isa_intr_alloc(). Also issue a warning
that should make it clear in which slot the card is expected to be in.
Isapnp is not what it seems to be on the atari (where interrupts are
hardwired to slot numbers).
1999-11-23 14:48:58 +00:00
minoura
c48182e1ae Add missing `major' entries: md and fd. 1999-11-23 14:17:09 +00:00
shin
6378e492c1 RAMDISK = GENERIC + md 1999-11-23 05:08:25 +00:00
wrstuden
e9c570ec77 Now make an ofwboot.xcf, and XCOFF version of ofwboot. Uses the new
fix-coff program.
1999-11-23 01:35:37 +00:00
wrstuden
cd6e26a395 Add fixcoff, a program to be used during a build to help make xcoff'
binaries from elf ones.
1999-11-23 01:32:37 +00:00
jdolecek
e55cd100f8 minor stylistic change 1999-11-22 19:15:12 +00:00
jdolecek
5d1658a740 don't prototype Debugger() here, including <sys/sytm.h> is enough 1999-11-22 19:05:32 +00:00
jdolecek
5b50e62cbb don't prototype Debugger() here, i't done in <sys/systm.h> 1999-11-22 19:01:50 +00:00
jdolecek
b9d5c93b1c Debugger() --> cpu_Debugger(), include <sys/sytm.h> for it's prototype
remove obsolete comment
1999-11-22 19:00:57 +00:00
jdolecek
9986dd3f7d Debugger()/cpu_Debugger() is always available and always defined/prototyped
in <sys/systm.h> for sun3/sun3x, even in non-DDB case
1999-11-22 18:34:00 +00:00
tsubai
1acee6a50f Remove D-I cache synchronization code in setregs(). MI part has it now. 1999-11-22 13:31:44 +00:00
tsubai
668b553d53 Need opt_compat_netbsd.h. 1999-11-22 13:26:59 +00:00
tron
82d9324e38 Remove duplicate IPv6 options. 1999-11-22 08:14:05 +00:00
itojun
0cea637239 merge SHARK.v6 into SHARK. 1999-11-22 05:17:33 +00:00
sommerfeld
17d170b1ca defopt COM_DEBUG, COM_HAYESP, and COM16650 1999-11-22 03:53:38 +00:00
shin
1cf30597ea forgot to change 'VRKIU_LAYOUT' to 'PCKBD_LAYOUT'. 1999-11-22 02:14:30 +00:00
shin
49ead2a4a7 add RCS Id.
add copyright & license notice.
1999-11-22 02:11:09 +00:00
itohy
3e16beaf22 Add a bunch of "__attribute__((__packed__))"s
to get along with the ELF compiler.
1999-11-22 01:14:55 +00:00
pk
633fd1e1cc Check presence of Sbus interrupt properties before using them. 1999-11-21 15:23:01 +00:00
itojun
e9a0023b37 bring in content of GENERIC.v6 into GENERIC.
remove GENERIC.v6 file (as it is part of GENERIC now).

"faith" interface is commented out by default as it is not really for
general use.
IPsec items are commented out as well, though we can enable "options IPSEC"
without export-related issue ("options IPSEC" will enable authentication
portion only).  We may need to think about it again.

if you have problem compiling with INET6 on archs I do not have access to,
please contact me.

XXX what to do with arch/arm32/SHARK{,.v6}?
1999-11-21 14:00:37 +00:00
shin
312ac4e1e1 add scan code mapping for
IBM WorkPad z50
	NEC MobilePro 770, 800
	Sharp Tripad PV6000 / Vadem Clio
	NEC MC-CS series
	Fujitsu Intertop CX300

change keyboard layout according to model(default).
add options PCKBD_LAYOUT to override default.
1999-11-21 12:53:57 +00:00
shin
a16b5d0ff6 Regen. 1999-11-21 12:49:07 +00:00
shin
26fe8d79e2 regen. 1999-11-21 12:48:44 +00:00
shin
85bb334fd0 add IBM WorkPad z50 1999-11-21 12:48:25 +00:00
shin
69af3df31f add MCCS comctrl (GPIO 14)
add IBM WorkPad z50
1999-11-21 12:47:33 +00:00
shin
40fbdc840c add wscons to compile 1999-11-21 12:46:51 +00:00
pk
d92a868bcf Avoid unused symbol warnings when not using DDB. 1999-11-21 11:47:51 +00:00
pk
a4e956ce77 Also pull in <pci/pciidereg.h>. 1999-11-21 11:17:35 +00:00
takemura
3abbbd219e Add entries for Mobile Pro 770(MC-R520A) and Mobile Pro 800(MC-R700A). 1999-11-21 07:58:49 +00:00
uch
4c747fe97d TX3912/3922 support 1999-11-21 07:04:31 +00:00
uch
fe6ca23b78 add new function vr_fb_init, vr_mem_init. 1999-11-21 07:01:54 +00:00
uch
5bd99e89d8 add fb_init, mem_init member to struct platform. 1999-11-21 06:59:41 +00:00
uch
0816e8d336 when frame buffer address is not specified, don't try to access. 1999-11-21 06:53:21 +00:00
uch
9a758aab34 PLUM2(TC6358TB) TX3922 companion chip 1999-11-21 06:50:26 +00:00
uch
a8b695c150 ITE IT8368E PCMCIA controller 1999-11-21 06:48:58 +00:00
uch
480704756f Compaq C-series keyboard driver 1999-11-21 06:48:02 +00:00
uch
6326e09f77 PLUM2-ISA bridge 1999-11-21 06:46:02 +00:00
eeh
2277dc3475 Move KERNBASE down from 0xf8000000 to 0xf1000000, just beyond the PROM. 1999-11-21 00:17:18 +00:00
uch
1760a4ef69 Toshiba TX3912/3922 internal modules. 1999-11-20 19:56:31 +00:00
uch
1b4b351fab allow to handle > 512MByte physical address 1999-11-20 19:44:30 +00:00
uch
041804dc8e Add base offset to rend 1999-11-20 19:40:58 +00:00
eeh
9b628a6223 Add handler for T_FLUSHWIN trap in case old code makes use of it. 1999-11-20 18:12:00 +00:00
eeh
97b34de711 Limit buffers to 1/4 of the kernel address space. 1999-11-20 18:10:44 +00:00
eeh
18fefbe895 Add softdep option. 1999-11-20 18:09:52 +00:00
eeh
6daa33d3fe Install NetBSD/sparc64 headers on NetBSD/sparc systems. 1999-11-20 16:35:24 +00:00
jun
62d5d129d5 - merge CATS.v6 to CATS
- add UCONSOLE
- remove XSERVER (it only uses in shark/pccons.c?)
1999-11-20 07:28:35 +00:00
jun
c58149afb8 merge GENERIC.v6 to GENERIC 1999-11-20 07:18:59 +00:00
mrg
d07a6cf8e4 pull across fix from dec_3000_500.c:
>split the "asc" and "tcds" searching into two separate sections and
>keep a "tcdsdev" of the booted tcds device.  make sure that the "asc"
>is the child of the tcds.  this fixes boot device detection on dec
>5000/400 (prolly 400-900) machines in the presense of a tcds option
>card, which would use the right tcds chip & disk scsiid of the last
>attached tcds -- which meant it would choose the wrong disk, or not
>find the boot device at all if the corresponding scsiid was unused in
>the last attached disk.
>
>XXX: this may need to be copied to dec_3000_300.c but i have no idea
>as i can not test this hardware at all...
>
>fixes PR#8771 by myself.
1999-11-20 00:01:14 +00:00
ragge
351a7de621 Get symbol "NETISR_IPV6". This fixes PR#8790, but in a different way. 1999-11-19 22:09:55 +00:00
mrg
9f1959ab2b split the "asc" and "tcds" searching into two separate sections and
keep a "tcdsdev" of the booted tcds device.  make sure that the "asc"
is the child of the tcds.  this fixes boot device detection on dec
5000/400 (prolly 400-900) machines in the presense of a tcds option
card, which would use the right tcds chip & disk scsiid of the last
attached tcds -- which meant it would choose the wrong disk, or not
find the boot device at all if the corresponding scsiid was unused in
the last attached disk.

XXX: this may need to be copied to dec_3000_300.c but i have no idea
as i can not test this hardware at all...

fixes PR#8771 by myself.
1999-11-19 10:49:46 +00:00
jun
c090b6a417 add comments
XSERVER
	INSECURE
	SOFTDEP
1999-11-19 06:25:11 +00:00
simonb
95d4e16c43 Remove function declarations already declared in ibusvar.h and
fix typo in dec_3100_intr_*() declarations.
1999-11-19 04:34:01 +00:00
itohy
7be83cbb7c Oops, I misspelt a macro name. 1999-11-19 03:54:08 +00:00
nisimura
dad420bf58 Move declarations of 3100/5100 ibus interrupt establishment routines
to ibusvar.h
1999-11-19 03:15:28 +00:00
simonb
682b4e3665 Include SCSI version of disk in device display. 1999-11-19 03:14:22 +00:00
simonb
af2a80f51c Show the SCSI version of the tape drive. Also, when printing out info
about the tape drive, only use one ``printf("\n");'' at the end rather
than having lots of \n's.
1999-11-19 03:04:39 +00:00
matt
1d740db7d2 Not all platform have devices which need isadma. Make the isa_dmainit
call conditional.
1999-11-19 02:40:25 +00:00
simonb
9dacfe6b24 Don't need extern with function declaration. 1999-11-19 02:35:40 +00:00
simonb
1dd2a74d0a Only all the kbd/mouse init functions if NRASTERCONSOLE > 0. 1999-11-19 02:17:01 +00:00
simonb
88673ee539 Only call tcfb_cnattach() if NRASTERCONSOLE > 0. 1999-11-19 02:16:06 +00:00
simonb
253ea37824 Include "opt_dec_{3,5}100.h" so we know what models are
configured.  Also fix prototypes for dec_3100_intr_establish()
and dec_3100_intr_disestablish().
1999-11-19 02:11:47 +00:00
nisimura
adf0157d64 Fix system type case analysis error; pointed by John.P.Darrow@wheaton.edu. 1999-11-19 01:28:08 +00:00
lonhyn
090c4d2e66 Program to convert back and forth between PPM and CHRP boot icon images. 1999-11-19 00:43:20 +00:00
minoura
13d97a81a4 pmap_enter() change. 1999-11-18 15:19:26 +00:00
minoura
e8a82e3d7e Do not reset SCSI bus. 1999-11-18 15:03:03 +00:00
minoura
8ae197322f Sync w/ GENERIC (options SOFTDEP).
Add IPv6 options to ALL.
1999-11-18 14:09:40 +00:00
minoura
b799f7bb46 Remove MAPPEDCOPY (somewhat buggy?). 1999-11-18 14:08:24 +00:00
jun
46b5560f98 and add sys/arch/mips/mips/fpemu.c 1999-11-18 06:50:17 +00:00
jun
0e8bb20fd2 on port-mips@netbsd.org:
Shuichiro URATA <ur@a-r.org> makes kernel softfloat emulation code.

http://www.a-r.org/~ur/softfloat1116.diff.gz

is Patch for
      sys/arch/mips/conf/files.mips
      sys/arch/mips/mips/fp.S
      sys/arch/mips/mips/fpemu.c
      sys/arch/mips/mips/genassym.cf
      sys/arch/mips/mips/locore.S
      sys/arch/mips/mips/mips_machdep.c
      sys/arch/mips/mips/process_machdep.c
      sys/arch/mips/mips/trap.c
      sys/arch/mips/mips/vm_machdep.c
After apply this patch,pmax package binary works on hpcmips!
1999-11-18 06:47:48 +00:00
tron
6bb7163ea2 Fix typo. 1999-11-17 20:41:27 +00:00
thorpej
7f28924acc If we see a bogus $PIR table entry, just ignore it. The MPIIX has
entries for the IRQs used by the IDE controller, which aren't really
PCI IRQs (they're ISA compat IRQs), and thus have link values that
don't make a lot of sense.
1999-11-17 18:55:15 +00:00
matt
a56a96a888 #elifdef ??? Change to #elif defined(__ELF__) 1999-11-17 18:08:01 +00:00
kleink
eac5784583 Move signal management code common to all PowerPC platforms (sendsig(),
sigreturn(), sigcode) to a single place in the shared powerpc directory.
(The struct sigcontext etc. definitions were already being shared.)
1999-11-17 14:56:10 +00:00
kleink
c76614ee74 One more pmap_enter() catch-up. 1999-11-17 14:48:43 +00:00
soren
b4c9eea282 Add newline in debug printf. 1999-11-17 12:34:52 +00:00
mrg
e69f5159aa fix a problem in previous: avoid using shadow variable names. 1999-11-17 08:43:53 +00:00
thorpej
3f761bc3a7 Enable PCI bus renumbering, and add some CardBus Ethernet cards. 1999-11-17 07:34:48 +00:00
thorpej
11d76dfece Add PCI bus renumbering code. 1999-11-17 07:34:15 +00:00
thorpej
0d79886ad5 Fix up the PCI bus numbering after fixing up interrupts. 1999-11-17 07:33:41 +00:00
thorpej
f4b4d4508a Code from UCHIYAMA Yasushi's PCI BIOS patches to renumber the PCI
busses.
1999-11-17 07:32:58 +00:00
chs
7fa6c707d3 update a prototype for the new pmap_enter(). 1999-11-17 06:16:49 +00:00
jun
b2557d295c add:
#options        SOFTDEP         # FFS soft updates support.
1999-11-17 03:56:38 +00:00
nisimura
8bcd9ac481 Consistent panic messages when erroneous kernel configurations are found. 1999-11-17 03:42:20 +00:00
thorpej
92fcbce96b Add my laptop's configuration file as an example. 1999-11-17 01:24:49 +00:00
thorpej
ad161afb12 Add glue for BIOS32 and PCI BIOS. 1999-11-17 01:22:29 +00:00
thorpej
4bfa60e3d3 Initialize BIOS32 and PCI BIOS as appropriate. 1999-11-17 01:22:09 +00:00
thorpej
d6d9fbe240 Interrupt router drivers from UCHIYAMA Yasushi's PCI BIOS patches,
cleaned up and reworked a bit be me.
1999-11-17 01:21:20 +00:00
thorpej
2026e5f71b PCI interrupt routing fixup code, from UCHIYAMA Yasushi's PCI BIOS
patches, cleaned up and heavily reworked by me.  Basic algorithm is
the same, although the code structure is now quite different.

Main differences:
- Initialization path is totally different.
- We use the `compat router' information, if present, to determine which
  PCI ICU driver we should use.
- Fixup configuration headers on devices not on bus 0.
1999-11-17 01:20:38 +00:00
thorpej
e345f0f17c Basic interface to the PCI BIOS and PCI Interrupt Routing table, separated
out from UCHIYAMA Yasushi's PCI BIOS patches, and fairly heavily reworked
by me.

Main differences:
- Only use the PCI BIOS to get the config mechanism and interrupt routing
  info for now.  No need to use the BIOS for PCI config access right now,
  since the old mechanism works fine, and this keeps the code smaller.
- PCI BIOS initialization code path is much different.
- Always use the $PIR table if it exists, and only fallback to the
  PCI BIOS 2.1 GetInterruptRouting call if it's not there.

This module does not include any of the fixup code; that is coming
in separate commits.
1999-11-17 01:16:36 +00:00
thorpej
4a98f5856e Basic interface to BIOS32. Separated from UCHIYAMA Yasushi's PCI BIOS
patches and cleaned up a bit.
1999-11-17 00:55:50 +00:00
nisimura
dab18ce266 A file which escaped from 11/15 jombo commit work. 1999-11-17 00:10:00 +00:00
mjacob
8cf9a14802 Add in a step to actually probe for MCPCIAs. This allows us to run on
4100s that only have two of four possible MCPCIAs.
1999-11-16 18:37:24 +00:00
mjacob
2981278f40 Add in a define for a MCPCIA bridge register that would be suitable for
probing for with badaddr(9).
1999-11-16 18:36:27 +00:00
mjacob
ce28c5e558 Make sure a MCPCIA exists before trying to initialize it. Also make
sure a MCPCIA softc exists before trying to do post-config cleanup
on it.
1999-11-16 18:33:11 +00:00
enami
0a4858667a Include sys/device.h so that this file compiles again; file dev/tc/tcvar.h
now contains the definition of tc_softc.
1999-11-16 12:26:42 +00:00
tron
073ee3b029 - Add IPv6 options and devices.
- Add commented out softdep option.
1999-11-16 10:22:42 +00:00
dan
46ccd498df Add entries for we[01] (configured as for the i386 GENERIC) to enable
WD/SMC ISA ethernet cards to be used for installation and setup.
1999-11-16 07:37:43 +00:00
nisimura
e810ae49c6 Resolve 3max IOASIC disguise; round #2. 1999-11-16 06:00:11 +00:00
nisimura
7917bfc69d Back out a part of change in the previous commit; old driver uses it. 1999-11-16 02:48:24 +00:00
nisimura
5948b59226 Fix a typo in PX TC device identification case analysis. 1999-11-16 02:39:03 +00:00
nisimura
fb43e6e177 Remove now defunct definitions and declaratins. 1999-11-16 02:34:30 +00:00
nisimura
1c6749cc03 Restore a change in 1.23 which I accidentally lost at the previous commit. 1999-11-16 02:16:04 +00:00
itohy
02ebc9e4d4 Support conversion from ELF, as well as from a.out. 1999-11-16 00:48:11 +00:00
matt
65e94f7ef4 close the i386 ibcs2 machdep.h; nothing really machine dependent in it yet. 1999-11-16 00:46:25 +00:00
wrstuden
0df8bcdc46 We need pciidereg.h to compile now. 1999-11-15 23:52:07 +00:00
simonb
6185320e31 Move px cdev_decl up with other frame-buffer type thingies. 1999-11-15 22:45:28 +00:00
drochner
bb765a3924 "idx" is modified by pnpbios_getnode(); use the original value 1999-11-15 21:50:50 +00:00
augustss
56d687b0e6 Add dev and function locators for the USB host controllers at pci. 1999-11-15 20:10:49 +00:00
dante
7d4ad0e29e Add WDTR, SDTR and TAGQ disable options 1999-11-15 20:07:21 +00:00
dante
6081361f0d Add WDTR, SDTR and TAGQ disable options 1999-11-15 20:03:50 +00:00
fvdl
8bec119fcc Add commented out option SOFTDEP to all GENERIC kernels. 1999-11-15 19:10:44 +00:00
fvdl
d116707af0 Add
prefix ../gnu/sys
cinclude "conf/files.softdep"
prefix

to all std.* files, so that soft dependencies can be activated using
"options SOFTDEP".
1999-11-15 19:00:25 +00:00
fvdl
0b1963121a Add Kirk McKusick's soft updates code to the trunk. Not enabled by
default, as the copyright on the main file (ffs_softdep.c) is such
that is has been put into gnusrc. options SOFTDEP will pull this
in. This code also contains the trickle syncer.

Bump version number to 1.4O
1999-11-15 18:49:07 +00:00
nisimura
cc2e1c302a - Reflect changes in ibus_intr_establish() definition.
- More concise way to initialize TC framebuffer device for console.
1999-11-15 09:54:41 +00:00
nisimura
0310fa6595 Very large scale change to sweep obstracles to remove 3MAX IOASIC disguise.
- Rework ibus device configuration and interrupt handler assignment.
- Remove TC device exposure in 'mainbus.c'
- Squash 'ibus_{3100,5100}.c' into a file; it can not cope with 3max.
- 'struct confargs' -> 'struct mainbus_attach_args'
Now about to remove tc_slot_info[] and tc_enable_interrupt inherited from
4.4BSD.
1999-11-15 09:50:17 +00:00
mhitch
5b9ba012af Set IOASIC interrupt mask when changing device interrupts. (Old
initialization appears to have enabled IOASIC interrupts, and then used
a separate mask in the interrupt routine to decide which ones to process.
New initialization doesn't enable all the required interrupts, and the
device interrupt enable/disable routine wasn't changing the IOASIC mask).
Also fix a printf() format type.
1999-11-15 03:54:53 +00:00
kleink
ac88fcbb17 G/c orphaned prototype. 1999-11-15 02:00:08 +00:00
thorpej
4ab7f024dc Fix a couple of pmap_enter() calls I missed. 1999-11-15 00:06:58 +00:00
augustss
3d275209e8 Add dev and function locators to cardbus devices. 1999-11-14 23:21:48 +00:00
thorpej
52806c2c2a Fix typo in previous. 1999-11-14 19:20:27 +00:00
soren
b0be8ac6ea Match ECP devices as well. 1999-11-14 18:03:38 +00:00
eeh
96ff315a99 Change one more instance of access_type' to flags' in pmap_enter(). 1999-11-14 17:25:01 +00:00
drochner
d3d6c8d951 add commented out pnpbios entries 1999-11-14 13:31:04 +00:00
takemura
d7d5ca87f3 Support the frame buffer in which white pixel value is zero. 1999-11-14 12:33:11 +00:00
thorpej
2cfc62b5ae Update for pmap API change. 1999-11-14 02:39:09 +00:00
thorpej
158b1a55f1 Add an "index" locator to the pnpbios `bus'. This allows us to wire down
device instances if there are more than one of a given type in the PnP
BIOS device table.

Add a pnpbios attachment for `lpt'.
1999-11-14 02:15:50 +00:00
mhitch
ed2a0c2648 Fix an additonal return in pmap_enter() that wasn't returning a value.
Use flags (formerly access_type) to set page reference/modified status.
Don't use the PG_CLEAN flag from the UVM when checking to see if a
writeable page has been marked as modified.
When updating page status to modified from the UTLBmiss handler, set
the referenced bit in addition to the modified bit.
1999-11-13 23:16:39 +00:00
mhitch
27a8dc486b Use console_debugger() to enter DDB on a break, instead of Debugger(). It
can now be controlled with sysctl on the 3100 & 5000/200.
1999-11-13 22:58:11 +00:00
mhitch
babe07a8b5 When called from the debugger, the keyboard handler was returning 0 due to
a missed change when kdbMapChar() was changed to return a string.  Return
the correct chacter from the string.
1999-11-13 22:56:56 +00:00
thorpej
728d672378 Backout my libsa changes. 1999-11-13 21:33:12 +00:00
matt
d4c19a672a adapt to jason new pmap_enter change 1999-11-13 21:32:25 +00:00
thorpej
36ff5d93e8 Backout my libsa changes. 1999-11-13 21:17:56 +00:00
matt
3ca3e51df8 Nuke TCP_COMPAT_42. Use sysctl to enable it if required. 1999-11-13 20:56:14 +00:00
matt
3891060822 Nuke TCP_COMPAT_42. Use sysctl to set it as needed instead. 1999-11-13 20:55:12 +00:00
matthias
2c3b2bd9f9 Make copystr return ENAMETOOLONG if maxlen == 0 (pointed out by Charles). 1999-11-13 18:01:27 +00:00
perry
a228a21023 no longer needed 1999-11-13 17:58:41 +00:00
perry
341edec257 make the comment on how to use the cinclude stuff for crypto clearer. 1999-11-13 17:57:28 +00:00
perry
53eda555f4 Integrate the IPv6 bits from GENERIC.v6 1999-11-13 17:54:17 +00:00
scw
0587ca2eaa Make this work with the new scsibus mid-layer, using Ignatios' Amiga
fix as a reference.
1999-11-13 15:33:57 +00:00
minoura
1a29be4d0c Increase ramdisk size. 1999-11-13 14:19:46 +00:00
soren
0b0e306a89 Add almost-PCI IDE attachment for the Toshiba Portege 3000 series. 1999-11-13 13:39:17 +00:00
pk
a9cdefb6e6 Remove implementation of the -h' and -a' options. 1999-11-13 12:09:41 +00:00
thorpej
1946167939 Update for pmap_enter() API change. No functional difference. 1999-11-13 00:30:26 +00:00
thorpej
abff7cb610 Update for pmap_enter() API change. 1999-11-13 00:27:21 +00:00
thorpej
59cbff957d Update for pmap_enter() API change, and return failure if possible. 1999-11-13 00:26:22 +00:00
lukem
0888d71168 recognise the ACER labs M1543 PCI-ISA Bridge in siomatch(). the DS10 now boots!
thanks to thorpej/ross/mrg for helping me out on this.
1999-11-12 22:07:28 +00:00
kleink
c52f431558 Bring high-resolution time interfaces closer to SVR4:
* Change gethrtime() to use mono_time.
* gethrvtime() is defined to return the lwp/process's virtual time;
  use p_rtime augmented with the current runtime.

Reviewed by: christos
1999-11-12 20:45:44 +00:00
drochner
f165ee13d2 include "pnpbios" definitions 1999-11-12 18:40:07 +00:00
drochner
59e13361f3 make "i386_isa_chipset" globally visible so it can be used from outside
the "isa" bus, attach "pnpbios" pseudo-bus if configured
1999-11-12 18:39:38 +00:00
drochner
8f5c3d689b add GDT segments for pnpbios use 1999-11-12 18:37:29 +00:00
drochner
2298f7abf4 "pnpbios" pseudo-bus. Reads out device IDs and ressource usage from the
BIOS and attaches devices to it.
While it is potentially able to deal with all the motherboard ISA
devices, it is only used in hairy cases for now - laptop stuff in
particular.
1999-11-12 18:36:46 +00:00
simonb
2b6e59dd39 Don't include <lib/libkern/libkern.h> for prototypes that are also in
<lib/libsa/stand.h>.  The alpha still needs libkern for the division
and remainder support.
1999-11-12 13:11:40 +00:00
nisimura
91fd021893 - Arrange 'platform' struct to have clkread entry, which can interporate
HZ using high resolution timer circuit if available.  Merge os_init
  into the primary hardware initialization in sysinit[].init.
- Nuke an irrelevant attempt to disable RTC under splhigh condition.
- Make sure IOASIC DECstations accumulate device interrupt mask bits into
  certain global variables.
- Have witchcrafts to issue ACK to RTC interrupt.
- Add a missing \n and a minor rearrangement in cpu.c
1999-11-12 09:55:37 +00:00
mark
3d347d6d24 Regenerate from podules. 1999-11-12 07:38:51 +00:00
mark
9d919b7239 Add EtherI and EtherN podule ID's
From Mike Pumford, part of PR/8765.
1999-11-12 07:37:21 +00:00
mark
e28a162f54 In _bus_dma_sync() drain the write buffer after the cache clean.
Spotted by Richard Earnshaw.
1999-11-12 07:29:34 +00:00
nisimura
95e2c7af76 Make sure wbflush symbol treated as a C function call. 1999-11-12 06:17:13 +00:00
matt
d2434ef890 remove reference to auxiotwo 1999-11-12 06:15:38 +00:00
matt
73ae3282ab turns we need to tweak the auxio1 reg to enable the modem. also fix a call
to sbus_bus_map.  it's closer to working but I wonder if COM_FREQ is the
right value.
1999-11-12 05:20:03 +00:00
matt
8ffb2596c7 make this compile under current 1999-11-12 04:42:19 +00:00
matt
3744fe193f add some stuff needed for pcmcia support 1999-11-12 04:41:46 +00:00
simonb
4abf82d09b Remove references to libkern after Jason's recent work to libsa. 1999-11-12 01:37:42 +00:00
thorpej
47f5c977ef Don't reference libkern.h. 1999-11-11 20:28:04 +00:00
thorpej
e29afb6f98 No longer need to build libkern. 1999-11-11 20:27:42 +00:00
thorpej
d642bd03d1 Add register prefixes. 1999-11-11 17:08:37 +00:00
matt
1138f7e762 add COMPAT_14 1999-11-11 15:55:53 +00:00
itohy
de6b762004 Make X680x0 IOCS library build on ELF toolchain. 1999-11-11 08:16:20 +00:00
itohy
59c36c2cb6 Make Human68k DOS library build on ELF toolchain. 1999-11-11 08:14:43 +00:00
itohy
fcc45340da Make it build on ELF toolchain. 1999-11-11 08:12:50 +00:00
thorpej
f16bb11bf0 Add register prefixes. 1999-11-10 23:17:21 +00:00
hubertf
83964cc3e3 add (commented out) APM options 1999-11-10 22:39:45 +00:00
drochner
283100a20d clarify diagnostic message about nonstandard/reserved/OEM defined
event codes
1999-11-10 16:55:25 +00:00
drochner
536f716be9 use console_debugger() on CTL-ALT-ESC to honour the ddb.onconsole sysctl 1999-11-10 16:52:14 +00:00
tsubai
90a8355d04 Support md root for INSTALL. 1999-11-10 13:33:09 +00:00
nisimura
24a33d9f37 Remove a small scale 'improvement' for TLB mod exception which is now
found harmful.  Fix panics on MIPS1 only kernels.
1999-11-10 08:06:05 +00:00
mycroft
fd8d1c65eb Add USB support. 1999-11-10 05:57:52 +00:00
mycroft
74ca1c37ef Deal with /psuedo-hid in the following atrocious way:
* If only one of ukbd or akbd is configured, use the node for that device.
* If both are configured, use ukbd.
Ultimately, the right way to deal with this is probably so simulate the effect
of /psuedo-hid using wsmux.  But not today.
1999-11-10 05:23:18 +00:00
thorpej
c718a7c548 Add register prefixes. 1999-11-10 00:13:59 +00:00
thorpej
e9e011443c Add register prefixes that I missed before. 1999-11-10 00:02:23 +00:00
thorpej
ae13d86f18 Add register prefixes. 1999-11-10 00:01:32 +00:00
kleink
b4f0936a8c Per discussion on tech-toolchain, remove MIPS-specific <machine/elf.h> header;
all the information is available from <sys/exec_elf.h>.
1999-11-09 21:50:18 +00:00
kleink
1c2019b5a8 Rip protection against multiple inclusion from wrapper headers. 1999-11-09 21:34:03 +00:00
mycroft
8f05f33e49 Move the boot block load address from 3MB to 7MB. The INSTALL kernel is
already too large, and GENERIC won't be far behind.
1999-11-09 18:39:41 +00:00
scw
9cc52f53a8 Drop some #defines which are now in sys/disklabel.h. 1999-11-09 10:03:20 +00:00
marc
e1e554ac35 charles was on drugs. There's no such thing as #elifdef. 1999-11-09 02:25:33 +00:00
pk
560567d851 Include <sys/exec.h> instead of <a.out.h>/ 1999-11-08 23:29:56 +00:00
pk
a96dbfa190 Remove inclusion of unused headers. 1999-11-08 23:29:05 +00:00
mhitch
f4fa9aae9f When the framebuffer is closed, reset the keyboard. We don't know what the
X server may have done with the keyboard state.  X11R6 was changing the
keyboard modes, which were not compatible with the lk201 keyboard handling
in NetBSD.
1999-11-08 18:41:32 +00:00
mycroft
336e3613c3 Kill wsmux. DIE DIE DIE! 1999-11-08 06:17:42 +00:00
eeh
86667308d7 Implement sysctl machdep.booted_kernel. 1999-11-08 05:06:42 +00:00
eeh
5ce41ef1f2 Fix boot device detection code. 1999-11-08 05:05:26 +00:00
mycroft
fb17cb2665 Disable wsmux for now. 1999-11-08 04:50:30 +00:00
mhitch
8008907a4c && doesn't work very well for testing a flag - tcds_params() was always using
the baseboard ID and FAST settings instead of getting them from the TC option
card EEPROM.
1999-11-08 03:00:32 +00:00
thomas
938dcb33e9 Align IO and memory of PCI devices. 1999-11-07 22:23:05 +00:00
mhitch
5239567fb0 Don't use MIPS3_L2CACHE_ABSENT to control compiling the Level 2 cache flush
in pmap_remove_pv().  Also comment why I'm doing the second cache flush
operation.
1999-11-07 19:42:23 +00:00
chs
f4dbce1e9a in copy{in,out,}str(), return an error if maxlen == 0. 1999-11-07 17:31:37 +00:00
chs
f1c14a8b5d in copystr(), be sure to return an error if maxlen == 0. 1999-11-07 17:01:20 +00:00
pk
1ad621b38f Handle empty `input/output path' when looking for console device; patch
from Brian D. Chase.
1999-11-07 16:36:16 +00:00
uch
2cf4f4b9b6 Clear interrupt status before dispatch handler. 1999-11-07 14:07:50 +00:00
mrg
defe7bd119 make this compile without DEC_3000_300 1999-11-07 09:14:34 +00:00
scottr
4ecba735df Garbage collect adb_initted. 1999-11-07 08:22:50 +00:00
scottr
0b8b3c403e In the interrupt handlers, check adb_polling instead of
adb_initted to decide whether to handle 'recovered' interrupts
immediately.
1999-11-07 08:18:24 +00:00
scottr
26208b5e57 Garbage-collect adb_init(). It's been dead for a long time. 1999-11-07 08:08:10 +00:00
scottr
c11dd8b6dd We want adb_polling set regardless of whether we're using the MRG driver. 1999-11-07 08:07:20 +00:00
mycroft
277394fdd3 Fix WARN_REFERENCES() here for the ELF case. 1999-11-07 07:20:26 +00:00
mycroft
cf29975968 Hack to work around _C_LABEL() fallout so WARN_REFERENCES() works again. 1999-11-07 07:12:07 +00:00
scottr
8da942f249 Oops... last rev created an unused variable. While here, clean up
adb_reinit()'s variables a bit, too.
1999-11-07 06:15:09 +00:00
scottr
23411c4c1b Convert one more buffer copy that I missed in rev 1.28. 1999-11-07 05:50:26 +00:00
mycroft
4c0911c827 Make this more current. 1999-11-07 01:09:12 +00:00
mycroft
6816b631ab Nit: Make bootrealseg conforming. 1999-11-07 01:06:37 +00:00
mycroft
f991846760 Make this a little more current. 1999-11-07 01:04:59 +00:00
scottr
a7628ea793 Always using polling for poweroff (from macppc). 1999-11-07 00:16:39 +00:00
scottr
27adad708f ite_polling -> adb_polling 1999-11-07 00:12:55 +00:00
scottr
57dc0b9f46 We need adb_initted in a couple of places; declare it here. 1999-11-07 00:12:54 +00:00
scottr
ad43c94436 ite_polling -> adb_polling 1999-11-07 00:12:53 +00:00
scottr
c827b513ac Convert buffer copies to memcpy(). 1999-11-06 23:50:29 +00:00
scottr
12a535f5ef Add more delay in adb_reinit() (from macppc). 1999-11-06 23:44:32 +00:00
mhitch
93598fd12b Cleanup pmap_remove_pv() a bit:
Page mod/ref status is stored in the pv header, and needs to be copied to
    the following entry when removing the head entry, otherwise the status
    will be lost (oops!).
  Move the common MIPS3 cache flush into pmap_remove_pv() and eliminate the
    unnecessary testing of the return value when only compiled for MIPS1.
  If the pv entry had the cache inhibited, and we remove the last cache index
    alias conflict, restore caching on the mappings for that entry.
  Eliminate possible extra cache flushing inherited from the pica pmap:  it
    was doing the flush when the head entry was being removed - not just the last
    entry.  Now the flush is done only when the last mapping has been removed.
    Also make sure the secondary cache gets flushed [MIPS3 cache flushing needs
    to be re-thought/re-done someday].
  Update comment for pmap_remove_pv() to reflect these changes.
1999-11-06 23:18:04 +00:00
scottr
560a7ef713 Change the behavior of spladb() so that it raises the IPL only
high enough to block ADB interrupts.
1999-11-06 23:05:40 +00:00
scottr
c738f52fb3 Update an outdated comment. 1999-11-06 22:44:52 +00:00
scottr
b46c7fc44d Don't invoke the upper half handler unless we're still
initializing the ADB bus.  This fixes PR 7870.
1999-11-06 22:25:20 +00:00
eeh
29d84e8033 Handle zero length properly in copyinstr() copyoutstr() and copystr(). 1999-11-06 20:28:37 +00:00
eeh
f7a499bedd Explicitly use 32-bit and 64-bit types and add some of the hooks needed for
32-bit coredumps.
1999-11-06 20:26:18 +00:00
eeh
bb3b0d186a Expliticly use 64-bit and 32-bit types. And get rid of ftype. Aparently all
the other ports have.
1999-11-06 20:24:51 +00:00
eeh
09dae2e5eb Explicitly use 32-bit and 64-bit types. 1999-11-06 20:23:02 +00:00
eeh
80e38bf1c6 Explicitly use 64-bit types. 1999-11-06 20:18:13 +00:00
eeh
7b60d6a0ed Provide explicit 64-bit and 32-bit types for compatibility with sparc
userland.
1999-11-06 20:13:49 +00:00