Commit Graph

22110 Commits

Author SHA1 Message Date
is 389ed19c62 Start to define an INSTALL kernel. 2000-04-01 20:21:27 +00:00
soren 5932e9f765 Match new prototype of pciide_dma_start in pciide.c. 2000-04-01 20:17:12 +00:00
tsutsui ef28a8deb8 Typo. (callout_rest -> callout_reset) 2000-04-01 14:41:13 +00:00
tsutsui 294b27df46 Fix typo. (s/sc_adapter/sc_link/) 2000-04-01 14:38:42 +00:00
tsutsui 3d917bfc34 Add OVERLAY and RAID_AUTOCONFIG. (sync with GENERIC) 2000-04-01 14:00:29 +00:00
takemura 9afabc7add Recompile binaries for Mobile Pro 700. 2000-04-01 02:37:23 +00:00
ragge fe43e9f08f Fix spelling error. 2000-03-31 18:40:58 +00:00
soren 0551ccb4d4 Typo. 2000-03-31 15:00:49 +00:00
soren 278498c05f Some cleanups. 2000-03-31 14:51:49 +00:00
tsutsui 8c8679f1ac Remove declaration of kd_rom_intr(). It is not needed on sun3. 2000-03-31 14:24:03 +00:00
tsutsui 49e70b6653 Add include <vm/vm.h> and <uvm/uvm_extern.h> for
declaration of uvm_swapin(), which is no longer in <sys/proc.h>.
2000-03-31 14:18:53 +00:00
jun 657c5b4130 add Mobile Pro 700 2000-03-31 13:01:17 +00:00
pk b6a73eb3a1 Make this compile without RASTERCONSOLE too. 2000-03-31 12:58:54 +00:00
jun ad4db7ca62 add NEC Mobile Pro 700 2000-03-31 12:53:06 +00:00
jun 2c3c66ea0c regen. 2000-03-31 12:46:23 +00:00
soda 18dbe75d6e cancel previous change, and add a comment about it.
$INCS variable is introduced by cgd to export kernel headers which
are needed from userland. In other words, $INC should only have
headers for kernel <-> userland programming interface.
Headers for kernel internal implementation should not be exported
to userland.
2000-03-31 11:44:05 +00:00
scottr 4d23f7686d Attach all displays, keyboards, and mice, not just the first
ones found.
2000-03-31 08:27:43 +00:00
tsarna 56e25c18bb Add and enable auvia 2000-03-31 04:47:52 +00:00
soren fab7d466f3 Add little to-do list. 2000-03-30 22:14:17 +00:00
soren 70abbd3c24 Crude kernel installer. 2000-03-30 21:46:16 +00:00
soren e204cb3eb9 machine/cpu.h includes mips/cpuregs.h. 2000-03-30 21:37:51 +00:00
soren 80e6d43253 Add asm.h like other ports. 2000-03-30 21:33:30 +00:00
soren 726573bf96 Match contents. 2000-03-30 21:33:19 +00:00
is b2a8826b6a The cfunit (ab)use fix broke the Amiga early console autoconfiguration. 2000-03-30 20:58:39 +00:00
soren 471a03f8f6 Remove local hack. 2000-03-30 20:08:37 +00:00
soren 712cb103ff Customary GENERIC configuration.
Unfortunately, the Cobalt firmware seems to fail loading kernels larger
than about 2.5 megs before compression, so without a boot loader, this
is a rather amputated GENERIC.
2000-03-30 20:01:02 +00:00
augustss dbf4f91643 Add (commented out) uvisor driver. 2000-03-30 17:01:01 +00:00
jun c852fae661 add MobilePro700 2000-03-30 16:26:51 +00:00
jdolecek fde0c4e6e0 Prototype vtophys() before defining it. Needed for compilation with
-Wstrict prototypes on macppc.

Problem noted by  Hans-Christian Becker <hcb@phc.chalmers.se> in private mail.
2000-03-30 16:18:24 +00:00
simonb bf851ea6cb Nuke register. 2000-03-30 14:45:04 +00:00
simonb 6e0357239a Nuke register, diddle a bit of indentation in some function declarations. 2000-03-30 14:36:30 +00:00
pk a41d265271 Add hardware acceleration features for use with the RASTERCONSOLE option.
Code posted on port-sparc by `der Mouse'; it was slightly re-arranged to
fit the layout of this driver.
2000-03-30 13:57:50 +00:00
leo 469b432d2d Make this compile with -DDEBUG 2000-03-30 13:28:28 +00:00
tsutsui 58714261cc Remove register declarations. 2000-03-30 11:37:21 +00:00
sato 9f9ade2b2c add MC-CS backlight control. 2000-03-30 08:41:48 +00:00
sato b2f06b320c fix mapping. 2000-03-30 03:29:47 +00:00
soren 71398b0ad8 With e.g. mbr_bootsel, the boot loader just exits rather than reboot,
so print that.
2000-03-29 14:29:34 +00:00
leo 27d334cf76 Nuke a bunch of cf_unit abuses. 2000-03-29 14:19:22 +00:00
simonb 9308187dbf Remove redundant decl of consinit() - it's in <sys/systm.h>.
Remove duplicate definition of delay() - we only need one in this file.
2000-03-29 03:54:03 +00:00
simonb 0edd529101 Extern declaration of cputype. 2000-03-29 03:50:40 +00:00
simonb 5b911637a1 Remove redundant decl for phys_map - it's in <vm/vm_kern.h>. 2000-03-29 03:49:48 +00:00
simonb 868578431b Remove redundant decl for physmem - it's in <sys/systm.h>. 2000-03-29 03:49:02 +00:00
simonb e764ed49e6 Remove redundant decl of msgbufmapped - it's in <sys/msgbuf.h>. 2000-03-29 03:48:20 +00:00
simonb 9ff7681a33 Don't need to include <sys/conf.h> here. 2000-03-29 03:43:31 +00:00
enami 4feca5e9ea Remove unnecessary cast in previous. Pointed out by shin@netbsd.org. 2000-03-29 03:09:15 +00:00
simonb d7a08fd8c5 Don't declare a variable in the 'struct platform' declaration - we declare
an extern for 'struct platform platform' further down this file anyway,
and this would have declared a 'platform' variable in any userland code
including this file.
2000-03-29 02:59:18 +00:00
simonb 2f1fef39b3 Centralise the declarations of cpu_model, machine, machine_arch,
osrelease, and ostype and remove "extern char foo[];" (for hostname
and domainname too).

Also delete redunctant decl of boottime in kern_info_43.c.
2000-03-28 23:57:24 +00:00
is 91d927ae42 synchronize to GENERIC 2000-03-28 20:17:14 +00:00
thorpej 6b45fb25a9 The assembler understands rdmsr, wrmsr, rdtsc, and rdpmc, so there's
no need to use .byte.
2000-03-28 19:17:29 +00:00
thorpej fd21635b22 Extern cpu_id and cpu_vendor[] here. 2000-03-28 19:16:05 +00:00
thorpej a142c171d0 Add: cmpxchg8b, wrmsr, rdtsc, rdmsr, rdpmc, rsm. From FreeBSD. 2000-03-28 19:15:40 +00:00
nisimura 1b0c1f4d0d Abandon the initial microscale optimization of pmap_alloc_asid(),
leaving the second change intact.  It'd be rather less costly to
extend the case analysis.
2000-03-28 05:58:33 +00:00
simonb 6060929e8e Move fpcurproc declaration to <mips/cpu.h>. 2000-03-28 03:11:26 +00:00
simonb ef89d70178 Don't `extern' function declarations. While we're there, remove trailing
blank lines and white space.
2000-03-28 02:58:44 +00:00
simonb ea6aa0dc3c Use the recent alpha solution to getting the printf() format right in
mips_init_msgbuf().
2000-03-28 02:53:18 +00:00
thorpej 0c4b7c7531 Add functions to read the TSC and Performance Counters. 2000-03-28 01:38:22 +00:00
simonb 338105f94b Make declaration of curpcb variable extern. 2000-03-28 01:06:04 +00:00
simonb a833cd73e8 Remove duplicate declaration of pmap_is_page_ro() (in <mips/pte.h> and
pmap_zero_page() (in <vm/pmap.h>).
2000-03-28 01:04:22 +00:00
nisimura 464669d1ef The previous microscale optimazation in pmap_asid_alloc() was
half-baked and resulted in one superfluous ASID bump if new pmaps
are created when pmap_asid_generation > 0.   Need to initialize pmap
fields correctly.

Yet, this possibly might not be the perfect solution.  If one
process bumped pmap_asid_generation _after_ a new pmap was created
and initialized with then-current pmap_asid_generation value.  In
that case, the new pmap would have another (superfluous) ASID bump
when 2nd (not 1st) CPU tick is assigned.  I'm not sure if this case
would happen.

Have pmap_max_asid variable to hold the maximum number of ASID
(TLBpid) supported by processor anticipating the possible runtime
cost of ((CPUISMIPS3)? MIPS3_TLB_NUM_ASIDS : MIPS1_TLB_NUM_PIDS).
2000-03-28 01:00:00 +00:00
simonb 8ae7eeef11 Remove redundant declarations of mips3_cycle_count(), stacktrace(),
logstacktrace(), mips_idle() and cpu_switch() - these are already
declared in various header files.
2000-03-28 00:55:33 +00:00
simonb d0e1814cba Remove duplication declarations of Sysmap and Sysmapsize - these are
in <mips/pte.h>
2000-03-28 00:52:57 +00:00
nisimura 73fa1ce87f Change 'goto cpu_switch1' to 'goto cpu_switch_queuescan' in vr_idle.S
and make the jump destination global.
2000-03-28 00:24:04 +00:00
thorpej f4f96605b9 Add/correct some MSRs, from Intel Architecture Software Developer's Manual,
Volume 3 (System Programming).
2000-03-27 23:15:57 +00:00
scottr 10c763efa3 The declaration for esp has moved to conf/files. (Hi Charles!) 2000-03-27 21:47:46 +00:00
nonaka c1a7a27642 rewrite some bus_space functions like port-i386. 2000-03-27 16:45:41 +00:00
msaitoh 35ba37f2f7 fix the sci[f]cninit() bugs to work both SCI and SCIF at the same time. 2000-03-27 16:24:08 +00:00
minoura 87bc025f49 Move par under intio. 2000-03-27 15:53:04 +00:00
minoura f23d278c1d Make this compile (typo in callout change). 2000-03-27 15:49:34 +00:00
leo d4ff1a5f4e This file was forgotten in the commit with log message:
Move the ite_default_* variables to ite.c. They are generic ite.
2000-03-27 14:08:39 +00:00
soda ccc163be60 -Wmissing-prototypes cleanup 2000-03-27 11:29:32 +00:00
soda 4531dedece fix typo in timeout -> callout transition. 2000-03-27 11:22:51 +00:00
nisimura fa6012454d It's not necessary to (re-) assign pmap->pm_asidgen whenever ASID
(TLBpid) is bumped.  It's ok just in the case when pmap_asid_generation
is bumped.
2000-03-27 08:56:21 +00:00
enami b31c6d62e2 Fix previous in a different way. 2000-03-27 06:41:02 +00:00
nisimura 06b4feb7d6 Have TBIA/TBIAP an argument refering to a global variable instead
of a compile time constant.
2000-03-27 05:30:40 +00:00
nisimura 5987070300 - Rename some of TLB ops to have handy abbrivations hired from VAX and
ALPHA; mips1_TBIA, mips1_TBIAP, mips1_TBIS.
- Make sure TBIA and TBIAP ops to have an argument for the size of TLB
  which varies across even for MIPS1 implementations.
- Nuke the unused cpu_isa field from processor personality list.

- XXX XXX XXX
  it's less-than-optimal and likely a mistake to have TLBUpdate().
  It's costy to try to invalidate a single TLB entry whenver a certain
  PTE is going to be modified by traversing the entire TLB looking
  for the modified PTE because the PTE in question is not in TLB in
  most cases.  ASID bump could do the invalidation smartly.  Solution
  is planned for now.
2000-03-27 05:23:42 +00:00
nisimura cbab853044 Rename sw1 label found in cpu_switch() to cpu_switch_queuescan,
abandoning unnecessary .globl because switch_exit() is handsomely
common between MIPS1 and MIPS3.
2000-03-27 04:52:11 +00:00
enami 24a0efebab Fix compilation error (printf format mismatch) due to recent round_page()
change.  While I'm here I fold the long line.
2000-03-27 04:01:54 +00:00
nisimura 24571569fa Nuke MIPS_16K_PAGE conditional which should be commited in. It
was used for debugg'n purposes which only make senses on particular
hardware configurations and has never been intended to extend pagesize
of NetBSD/mips.
2000-03-27 02:55:13 +00:00
nisimura 0076cd46eb - Nuke unnecessary cast.
- Change comments on cpu_startup() so as what it does (XXX found mostly
  common across ports).
- Retain UNIX heritage of /* Good {morning,afternoon,evening,night} */.
2000-03-27 01:51:17 +00:00
nisimura 795ee9db8e Remove unnecessary bzero() op for proc0's USPACE as pmap_steal_memory()
returns a nullified area.
2000-03-27 01:24:55 +00:00
mycroft b0a227745b Add IPsec. 2000-03-26 21:35:48 +00:00
kleink 230876cf26 Merge parts of chs-ubc2 into the trunk:
* Remove the casts to vaddr_t from the round_page() and trunc_page() macros to
  make them type-generic, which is necessary i.e. to operate on file offsets
  without truncating them.
* In due course, cast pointer arguments to these macros to an appropriate
  integral type (paddr_t, vaddr_t).

Originally done by Chuck Silvers, updated by myself.
2000-03-26 20:42:21 +00:00
martin 0a1221cb28 Added a PCI frontend for the legacy ISA joystick driver.
Some PCI soundcards don't seem to use the generic gameport function with
interface 0x10 used here, but have either an own BAR dedicated to this
(i.e. Sonic Vibes or ESS Solo-1) or specify their own device (see
PCI_PRODUCT_CREATIVELABS_SBJOY in sys/dev/pci/pcidevs.h).
Probably these use a similar simple sheme and adding a frontend for them would
be trivial, but I don't own any of these cards, so I didn't.
2000-03-26 15:36:48 +00:00
ragge aef1518cd8 Implement bi_intr_establish(). Add some fields about which CPU to interrupt. 2000-03-26 11:41:25 +00:00
ragge dd359f65dd Need some vectors and pointers to be set before IPL is lowered. 2000-03-26 11:40:31 +00:00
ragge b81cd3fa6b Identify ourselves. 2000-03-26 11:39:45 +00:00
nisimura ae55376f19 - Remove unused bt459reg.h.
- sfbvar.h has gone, placing patch on holes for now.  Every TC framebuffer
  has a single explosure of xxfb_cnattach() which could be bridged by MI
  land.
2000-03-26 10:32:51 +00:00
frueauf 440814a0b5 Add "struct device sc_dev;" to struct par_softc.
Reviewed by Ignatios Souvatzis.
2000-03-26 10:15:32 +00:00
tsubai ffdaae73e0 Enable gmac ethernet. 2000-03-26 09:16:01 +00:00
tsubai f8a898cb1d Use ring buffer on tx side, too. 2000-03-26 09:15:17 +00:00
tsubai 5684221bbd esp declaration was moved to conf/files. 2000-03-26 08:34:20 +00:00
tsubai d806694e39 Fix typo. 2000-03-26 08:29:12 +00:00
is 40b550935e provide CCITT includes, and work around namespace collision 2000-03-26 07:52:58 +00:00
nisimura c4dd0cba64 Add 'struct callout repeat_ch;' in ACCESS.bus softc storage. 2000-03-26 06:51:46 +00:00
nisimura 99806742c0 Remove local implementation switching to accelerated MI sfb.c. 2000-03-26 05:52:17 +00:00
tsutsui 5513a809b2 Remove duplicated "audio* at uaudio?" line. 2000-03-26 04:31:39 +00:00
scw 8b9e435d47 Nuke some warnings when KERNEL_DEBUG is defined. 2000-03-25 21:26:47 +00:00
frueauf 01643c9f97 Fix typo: calllout_reset -> callout_reset. 2000-03-25 20:14:44 +00:00
uch 398dafb09a enable USB staff. 2000-03-25 19:05:45 +00:00
tsutsui 9100212ef0 Add a "sc_rev" member to ncr5380_softc and handle CXD1180 quirk
in MI ncr5380sbc.
2000-03-25 15:27:54 +00:00
uch 807350797d cosmetic change. 2000-03-25 15:12:04 +00:00
uch 7832b88a4a -G 30 -> -G 24 2000-03-25 15:11:08 +00:00
uch f9204d0a57 TOSHIBA TC6358TB(PLUM2) OHCI module support. 2000-03-25 15:08:26 +00:00
uch 58bae8effe bus_dma. taken from pmax. 2000-03-25 15:04:32 +00:00
nisimura 61609b54e2 Make sure proc0 PCB has spl0 condition in CP0 status register field.
cpu_fork() mistakenly created processes forked by proc0, including
kthreads, in splhigh condition, because [1] proc0's PCB was zero
cleared during initialization, and [2] value 0 in status register
field made processes to have splhigh condition when CPU tick was
assigned for them.  This mostly doesn't matter as forked processes
dive immediately into user mode through proc_trampoline code path,
however, kthreads never do that and remain in splhigh.

Reported by Ethan Solomita <ethan@geocast.com>.
2000-03-25 10:14:13 +00:00
nisimura b6b06284ce Add QED RM7000 PrID. 2000-03-25 06:33:50 +00:00
nonaka 567afae35f add some devices 2000-03-25 04:13:54 +00:00
nonaka 31dc574dbc more fixup pci base address 2000-03-25 04:12:20 +00:00
msaitoh ddb9af1bfe set SQMD bit when sh4 2000-03-25 03:07:29 +00:00
msaitoh b39aeb4493 use BSC_PCR_VAL 2000-03-25 02:51:57 +00:00
soren 573160e03b Revert previous. 2000-03-24 23:06:03 +00:00
soren c535ede30b Move sysctl definitions from arch/mips to arch/foo. 2000-03-24 21:30:58 +00:00
soren 5f168212c9 Fix typo. 2000-03-24 21:25:32 +00:00
soren a0c624dd3d Remove FPU PRIDs that are identical to the CPU ones. 2000-03-24 20:48:20 +00:00
soren b2386045f0 Protect against multiple inclusion. 2000-03-24 20:16:27 +00:00
thorpej e84ce772ff Add some MSR-related calls. From FreeBSD. 2000-03-24 19:07:12 +00:00
thorpej b05796c812 Add some Model Specific Register definitions. From FreeBSD. 2000-03-24 19:06:07 +00:00
soren 059fe2fbb2 One instruction per line. 2000-03-24 18:16:33 +00:00
soren 2531a231d2 Missing in previous; set cache alias mask properly on processors with
two-way set associative L1 caches.
2000-03-24 18:15:41 +00:00
ws b7570cae85 Update several ports to at least work again without IPKDB
after the update of that.
Sorry for breaking this with my last changes :-(.
Fixes PR#9671 by Lennart Augustsson.
2000-03-24 17:05:30 +00:00
soren 0a40850f62 Let's try NCR_IOMAPPED. 2000-03-24 13:08:30 +00:00
hannken 43e3ea96f3 Fix typos from last commit (callout). 2000-03-24 11:46:46 +00:00
hannken f7049d302a Fix a typo from last commit. 2000-03-24 10:30:12 +00:00
nisimura 58e4b0efbe A minimal fix to make this compilable. 2000-03-24 08:24:29 +00:00
nisimura 3af954d380 Have ST_REG_SR mnemonic for status register consistent with others. 2000-03-24 02:02:03 +00:00
thorpej 4ad898818b Fallout from callout. 2000-03-24 01:04:11 +00:00
is 128258c1a2 Initial IOBlix support. Only lpt and com; lpt untested; com assumes 24 MHz
clock (needs autoprobe of clock speed).
2000-03-23 22:44:42 +00:00
soren 1c965174b0 Make MIPS1+MIPS3 compile again. 2000-03-23 14:49:29 +00:00
ad 9753adee2f Previous was incomplete. Tsk. 2000-03-23 13:49:49 +00:00
nisimura 608ce86497 - Have physical address for MIPS_PHYS_TO_KSEG1() macro.
- Make consistent function declarations.
- White spaces.
2000-03-23 08:09:54 +00:00
thorpej 7b918b4088 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:40:33 +00:00
thorpej b667a5a357 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 06:30:07 +00:00
mycroft 58d6d5d60c Add awi. 2000-03-23 04:43:41 +00:00
thorpej 3e93b28029 Use a software interrupt for tty input processing, not a callout. 2000-03-23 01:04:10 +00:00
soren f3ca63ef9e Note that this is just for compatibility. 2000-03-22 21:15:59 +00:00
ws 7da71e5f9e Make IPKDB working again.
Add support for i386 debugging and pci-based ne2000 boards.
2000-03-22 20:58:25 +00:00
soren 5be5f12199 The firmware uses the clock in BCD mode. 2000-03-22 20:38:22 +00:00
soren 793382b291 Revert to the same scheme as the other MBR-using ports. 2000-03-22 20:38:05 +00:00
msaitoh 95d45d57b0 cleanup(KNF) 2000-03-22 19:07:43 +00:00
msaitoh 6c5256cfd7 cleanup
- remove unused functions
- KNF
2000-03-22 18:48:25 +00:00
onoe 5644a7e248 Update awi driver, which now supports AMD 79c930 based 802.11 DS cards
as well as 802.11 FH cards.  Also, it can operate in infrastructure mode,
adhoc mode, and wi(4) (aka WaveLAN/IEEE) compatible adhoc mode.
2000-03-22 11:22:20 +00:00
onoe ba09a212c8 renamed the variable $NEWS to $NEWSMIPS. 2000-03-22 10:39:25 +00:00
onoe 3260e7d0f6 Use $S ($NEWS) for kern.ldscript instead of relative path
so that "build" directive or -b option of config(8) works.
2000-03-22 10:22:37 +00:00
cgd 7c35662066 add commented out option PCI_CONFIG_DUMP whever there's a PCIVERBOSE. 2000-03-22 00:58:16 +00:00
pk 3b3bcd2a10 The global `mmu_3l' has been obsolete for a long time already. 2000-03-21 21:30:33 +00:00
pk b5b8fcc5b5 Nuke global `fbnode'. 2000-03-21 21:29:16 +00:00
ad 76505a757a We can boot from "ca" disks. 2000-03-21 19:38:24 +00:00
deberg 4eaf8d2b77 s/mac/NeXT/ 2000-03-21 17:31:12 +00:00
deberg 87395c5b3e enable COMPAT_M68K4K - works fine w/ native toolchain and pkgsrc m68k
cross toolchain.  closes port-next68k/6726.
2000-03-21 16:44:01 +00:00
pk 5eb7625f42 findzs() is now used only by the kgbd initialision code. 2000-03-21 12:48:45 +00:00
pk 2db200ad14 Missing _C_LABEL(). 2000-03-21 12:47:02 +00:00
pk c5bbc50487 Delete debugging printf(). 2000-03-21 11:24:02 +00:00
pk 3eb54fdef9 We need cons_attach_input(). 2000-03-21 10:56:23 +00:00
soda 0dadd7f429 if there is MBR, but there isn't BSD MBR partition entry,
writedisklabel(9) paniced.
pointed out and fixed by Shuichiro URATA <ur@a-r.org>, thanks.
2000-03-21 09:44:57 +00:00
itojun fb2faae278 add prototype for ip6intr (not tested). 2000-03-21 04:42:57 +00:00
soren 826e64bd17 Add math.h. 2000-03-21 02:48:17 +00:00
soren 7db0d53d01 Add math.h. 2000-03-21 02:30:42 +00:00
soren 28fba2d433 Blocking soft interrupts can be useful.. 2000-03-21 02:27:50 +00:00
soren 82f0c9bf4a Add bounds_check_with_label(). 2000-03-21 02:26:48 +00:00
thorpej 800e276128 Fix INTRCNT_DEC_550_IRQ_LEN. From Nathan Williams. 2000-03-21 02:17:11 +00:00
soren b124a5ec8d Extend the evil interrupt kludge to the second ethernet. 2000-03-21 01:05:53 +00:00
msaitoh d2be696634 use SDMR2 and SDMR3 2000-03-20 22:27:16 +00:00
msaitoh c5d98a393d COFF's /sbin/osloader 2000-03-20 21:24:54 +00:00
msaitoh 826aac6ff8 - Use macro
- RTCCNT is not 16000Hz but 16384Hz (not used)
- fix the bug in 16bit int <-> BCD conversion macro (SH4)
2000-03-20 20:44:32 +00:00
msaitoh 7052a2af38 Add the definitions of SH4's TPSC field of TCR register
(This field is not compatible with SH3's)
2000-03-20 20:36:58 +00:00
msaitoh ff49b7006c move MMUCR register definitions into mmureg.h 2000-03-20 20:30:33 +00:00
msaitoh f1a4c4f9e7 Computex's SH7750 evaluation board 2000-03-20 20:11:00 +00:00
takemura 6e8bcbe821 Built in video supports get/set color map. 2000-03-20 12:45:41 +00:00
soren d71e4cbde1 Use correct MACHINE_ARCH. 2000-03-20 12:26:11 +00:00
pk 436638ab3a Call rcons_ttyinit() on first open. 2000-03-20 11:27:16 +00:00
takemura 9a04280130 Change color map and share color map data with kernel part. 2000-03-20 10:47:33 +00:00
scottr 7dbb8560d6 Revert to the old practice of always setting up MRG, even if we don't
need it for ADB.  Besides the misleading message at autoconf time,
MRG is sometimes useful for things other than ADB.
2000-03-20 08:07:52 +00:00
mycroft 18d0b53078 Need CD9660 now... 2000-03-20 06:10:45 +00:00
thorpej 3eed2414e5 Handle a few more SPECIAL intructions. 2000-03-20 02:54:45 +00:00
thorpej 3c8d09cc56 Update the amask bits. 2000-03-20 02:19:44 +00:00
soren 4c547143d4 NetBSD/cobalt. Work-in-progress. 2000-03-19 23:07:43 +00:00
mycroft cb42a200a1 Add scsibus at esp. 2000-03-19 22:35:43 +00:00
mycroft 1a5e8d741b Add esp at pcmcia. 2000-03-19 22:32:59 +00:00
mycroft 04b6cd3a5d Add esp at pcmcia. 2000-03-19 21:56:11 +00:00
soren 64bcb49a2e Updated RM5231 cache code from Jeff Smith and Ethan Solomita at Geocast.
Many thanks.
2000-03-19 19:16:13 +00:00
tron 6c390b4142 Fix bad function calls discovered after prototype fixes in last commit. 2000-03-19 19:14:42 +00:00
tsutsui 78557dc2c6 Sync with MI ncr5380sbc changes.
XXX CXD1180 quirk code should be merged into the MI ncr5380sbc driver...
2000-03-19 16:28:04 +00:00
tsutsui 3fe78f266a Make booted_device variable global for raidframe. 2000-03-19 16:24:38 +00:00
pk c1813da35e Use fb_is_console(); retract fbconstty & fbnode from service. 2000-03-19 15:38:45 +00:00
pk aca7e7fa24 Just don't force the baud rate in the driver, ever. 2000-03-19 14:58:02 +00:00
ragge f9f885519d First cut of multiprocessor support for vax. Still much to do before
other CPUs than the master can spin up.
2000-03-19 14:56:52 +00:00
pk 86f03b383e Remove __BROKEN_CONFIG_UNIT_USAGE. 2000-03-19 14:43:13 +00:00
pk 2ca556b136 Nuke dead code. 2000-03-19 14:41:48 +00:00
pk 753a0ebc67 kd.c should not depend on NKBD. 2000-03-19 14:20:54 +00:00
pk 2ab6f90563 kd.c should not depend on `kbd'. 2000-03-19 14:19:17 +00:00
pk c969f1b7df Add `fb_is_console()', which is a helper function for frame buffer
device drivers used to decide whether or not to act as console output.
2000-03-19 13:48:44 +00:00
pk b0eba37586 Add fields to hold PROM info to be used in console device matching. 2000-03-19 13:45:23 +00:00
pk e654ecd0d8 Nuke dead code. 2000-03-19 13:38:54 +00:00
pk f5839cdae8 Minimal changes to accomodate the console input channel attachment
changes in the keyboard driver (see /sys/dev/sun/kbd*)
2000-03-19 13:29:14 +00:00
pk 0ed0e258db Declare the prom stdio nodes and arguments. 2000-03-19 13:25:10 +00:00
pk 41fb5989fe Revise console device handling:
* do not require a `zs' driver for console handling
	* run the console on PROM primitives until a device recognises
	  itself as a console device during normal autoconfiguration.
	* allow (keyboard) devices to take over the input channel of
	  the PROM primitive-based console device.

As a result, consinit() is much simplified and does no longer have
to "detect" devices to setup a working console device. This complexity
has moved to individual drivers which interpret the PROM information
after they have attached to decide whether or not to act as a console.
2000-03-19 13:22:14 +00:00
takemura dae2c19e55 - Pbsdboot.exe is compiled for WindowsCE 2.00.
Use Pbsdboot1.exe for Windows CE 1.01.
 - Doesn't display 'MEMORI KA-DO'(Japanese KANA) if SystemDefaultLangID
   isn't Japanese.
 - Set up Windows color palette for 8 bpp machine.
2000-03-19 11:10:57 +00:00
takemura 847d8fd135 Synch with adding arch/hpcmips/include/endian_machdep.h. 2000-03-19 10:46:17 +00:00
nonaka 0e99eebec3 bus_dma works. (at least de, le and vr work.) 2000-03-19 09:45:30 +00:00
scottr 4f29e4d330 Add and use macros to build ADB FLUSH, LISTEN, and TALK commands. 2000-03-19 07:37:58 +00:00
scottr edfc8b89ad The MRG and direct ADB drivers were inconsistent in how they worked with
a serial console; the direct driver didn't care, but the MRG driver
wouldn't probe ADB when using a serial console.  Remove the check from
the MRG version of the code to resolve this difference.
2000-03-19 06:07:05 +00:00
thorpej f785596e75 Add support for mapping the OHCI USB controller interrupt (which is wired toan ISA IRQ because it's in the same package as the PCI-ISA bridge). 2000-03-19 02:25:29 +00:00
thorpej ac93a75106 Point back to the alpha_shared_intr in the intrhand structure. This
allows platform-specific code to access the `intr_private' data via
the intrhand structure.
2000-03-19 01:46:18 +00:00
thorpej c10a9d31ea Put the code that enables/disables Pyxis interrupt lines in
cia_pyxis_intr_enable().
2000-03-19 01:43:25 +00:00
scw 9c745dbd5e Merge 'scw_mvme68k_bus_space' branch with the trunk.
These changes add support for:

	o The MI VMEbus framework on both MVME147 and MVME167.
	o Enhancements to the existing MD bus_space(9) implementation.
	o Most of the bus_dma(9) API.
2000-03-18 22:33:02 +00:00
scottr 513f613391 Add the RasterOps 24MxTV; this card operates in the same manner as two
other RasterOps boards we already handle.  Information provided by
Greg Kerr.
2000-03-18 20:53:24 +00:00
ragge cae5843a06 Fix typo that caused lance chip not to be detected. 2000-03-18 16:20:06 +00:00
mycroft e1a7dc9b2a Fix line wrapping. 2000-03-18 16:16:12 +00:00
mycroft 6780878550 Fix pasto in previous. 2000-03-18 16:14:57 +00:00
mycroft 0af581a1a1 Add a ncr5380_attach() routine which does part of the initialization, attaches
the scsibus, and does the addref/delref dance.
2000-03-18 16:13:22 +00:00
scottr c62e39490c Check to make sure we get a valid handler ID in response to a TALK R3. 2000-03-18 08:07:50 +00:00
tron e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
tron 8caeaa49bd Install "endian_machdep.h" required for "sys/endian.h". 2000-03-17 17:22:57 +00:00
sato 2b251ae99b change about debug print. 2000-03-17 09:54:15 +00:00
scottr 0a23aef85e Resurrect a chunk of code from the ite driver that we lost along the way.
This code is necessary for SE/30 internal video, at a minimum.
2000-03-17 04:46:32 +00:00
mycroft 9e21b6555a In the `MY THAT'S GROSS' department...
Eliminate the recursive include of machine/endian.h from sys/endian.h.
2000-03-17 00:09:18 +00:00
darrenr 162b0b1dab __P(()) -> __P((void)) 2000-03-16 23:21:05 +00:00
kleink 8bc084e1de Kill more broken cf_unit bogons. 2000-03-16 16:37:20 +00:00
mycroft 02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
ad ce0c2b1962 Attach cac* at pci?, ca* at cac?. Commented out where needs be. 2000-03-16 15:05:18 +00:00
ad d8bd9a762a Make ca(4) useable as a block/boot device. 2000-03-16 14:53:29 +00:00
mycroft 415cbeb83f This code has nothing to do with UCB. 2000-03-16 14:15:26 +00:00
nisimura f7f5e0a24c Note that HX (PMAGB-B) has no support for small (less than 8 pixel width)
font.  If attempted, kernel will explode.
2000-03-16 08:42:40 +00:00
eeh 3b51289caa Revamp interrupts again:
Fix a bug causing interrmittent panics in interrupt dispatch.
	Use interrupt vectors for softints.
	Add a new send_softint interface.
	Improved D$ flushing.
	Improve traptrace and other debugging enhancements.
2000-03-16 02:36:56 +00:00
shin 6190c3253f add 'makeoptions CWARNFLAGS=""' to override CWARNFLAGS?= -Werror. 2000-03-16 01:45:51 +00:00
kleink 1634305526 Kill a couple of unnecessary cf_unit (ab)uses. 2000-03-15 20:40:00 +00:00
soren b4e10b0a4e s/md/raid/ for RAIDframe major name. 2000-03-15 17:08:37 +00:00
oster 36b9d60244 Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[].  Needed for / on RAID.
(Missed these yesterday.. Thanks to Izumi Tsutsui for noticing, and for
letting me know :) )
2000-03-15 16:57:12 +00:00
drochner aa1de89bdf explicitely #include <sys/systm.h> #if BUS_SPACE_DEBUG to get a printf()
prototype
2000-03-15 16:44:48 +00:00
fvdl 73797e6d2a Stupid hack: run the apm kthread at 8*hz/7 intervals, not hz. Prevents
the load average from being 1.0 or higher constantly.

XXX really need a better way of calculating the load average.
2000-03-15 09:30:11 +00:00
nisimura 220005d941 Eliminate unused sc_cookie field of struct ioasic_softc. 2000-03-15 03:07:44 +00:00
fvdl 20b063e782 Add new files for common ahc EISA/VL code. 2000-03-15 02:10:41 +00:00
fvdl bb8265c6be Update ISA/VL frontend for new ahc driver (done by Noriyuki Soda). 2000-03-15 02:05:19 +00:00
augustss 072f9f5b69 Some whitespace changes. 2000-03-14 22:37:55 +00:00
jdc e8a33a63d1 Add port power management ioctls. 2000-03-14 21:24:54 +00:00
jdc 48ba774212 Fix RCS ID.
Add port power management.
2000-03-14 21:23:45 +00:00
jdc 797ac20035 Add power management hooks. 2000-03-14 21:20:51 +00:00
jdc fa4417ef0c Add enable/disable and power management hooks for serial ports.
Port states : always on / on when open (default) / always off
2000-03-14 21:18:27 +00:00
oster 1bad2e1909 Add the RAIDframe device major to the machine-dependent config files
so that the right entries get added to dev_name2blk[].  Needed for / on RAID.
(Whoops!  I missed checking these in when adding the RAID_AUTOCONFIG stuff.)
2000-03-14 15:56:51 +00:00
soren 667929def5 KNF comment. 2000-03-14 14:11:06 +00:00
soren 9ec86df3dd Fix typo. 2000-03-14 14:10:08 +00:00
soren eb9d73ce81 Actually use KSEG1 offset for KSEG1 addresses in kvtophys().
From Jeff Smith and Ethan Solomita at Geocast.
2000-03-14 14:08:55 +00:00
sato 0a00ace3f7 some buttuns map to key codes which the button mean. 2000-03-14 08:37:31 +00:00
uch 6219354e8c sync with fb->hpcfb, btnmgr changes. 2000-03-14 08:31:07 +00:00
sato 16d7136b4c change about debug print.
CVS
2000-03-14 08:26:42 +00:00
sato b76ec51696 - toggle CONFIG_HOOK_BUTTONEVENT_POWER event.
- change about debug print.
2000-03-14 08:23:24 +00:00
nisimura 8bf44847a8 Fix DEC3000/300 TC slot numbering. There is an address space hole
between two TC option cards and 3 builtin TC devices.  Was uncovered by
mrg's change made at Nov 1999 and pointed by tsutsui.
2000-03-14 05:53:33 +00:00
nisimura 6f5486c425 Switch to MI sfb (PMAGB-B) TC framebuffer driver which sports faster
text rendering assisted by SFB ASIC.
2000-03-14 05:34:04 +00:00
nisimura 8de02d3a76 - Comment out cfb (PMAG-B) 1024x768 framebuffer.
- Have Gallant19 font by default.
2000-03-14 05:31:16 +00:00
nisimura b3a2990ce5 Redo the previous commit; duplicated lines. 2000-03-14 02:55:04 +00:00
nisimura 38ed3db66f Synchronize with recent progress of GENERIC. 2000-03-14 02:53:04 +00:00
soren 735236ed02 Fix doubled 'the the' in comment. 2000-03-14 00:04:19 +00:00
soren 95054da1a1 Fix doubled 'the's in comments. 2000-03-13 23:52:25 +00:00
kristerw ce56ba78b7 Make the inline asm conform to what gcc thinks they should look like (per
discussions in http://gcc.gnu.org/ml/gcc-patches/1998-11/msg00004.html)

Approved by fvdl.
2000-03-13 21:10:24 +00:00
uch 9616fd8002 no longer required. 2000-03-13 18:56:40 +00:00
uch 00363a82c8 sync with hpcfb. 2000-03-13 18:49:15 +00:00
tsutsui 97970bb544 Reduce memory disk size and remove some options. 2000-03-13 12:58:58 +00:00
martin 8ba340d655 Do the same as biosboot does.
This makes it possible to create serial console dosboot.com's via uncommenting
the appropriate Makefile options.
I needed this when testing the SMP test kernels at work.
2000-03-13 10:51:22 +00:00
mycroft b27007be2c Make dependall work. 2000-03-13 03:25:20 +00:00
sato 54dab7a0d1 add BTN_COVER for MC-R520. 2000-03-13 01:57:06 +00:00
sato fd697ef8aa add PWCTL_LCDLIGHT for MC-R300 2000-03-13 01:54:39 +00:00
sato f9dc1cca42 add CONFIG_HOOK_POWERCONTROL_LCDLIGHT 2000-03-13 01:52:00 +00:00
sato 035f58c823 HPC/PsPC keyboard types. 2000-03-13 01:46:44 +00:00
uch a57fa19957 change debug message. 2000-03-12 15:42:43 +00:00
uch 44b86d33d6 recognize UCB1100 id. 2000-03-12 15:36:11 +00:00
uch ba8565be98 add WINCE_DEFAULT_SETTING and IT8368E_DESTRUCTIVE_CHECK for debug. 2000-03-12 15:35:29 +00:00
uch 6c57f806b1 sync with btnmgr change. 2000-03-12 15:28:12 +00:00
takemura dc7c050b3b Add wsmux device which is real device in /dev. 2000-03-12 13:46:27 +00:00
takemura b0650cbf17 Change btnmgr to wskbd device from pseudo device. 2000-03-12 12:08:16 +00:00
takemura 2996ac1c02 Bivideo utilize platid mechanisum for probing. 2000-03-12 11:46:44 +00:00
takemura c12028016f Add makefile to install hpcfb.h. 2000-03-12 06:40:16 +00:00
sommerfeld f6ec059d2e add newline at end of last line. 2000-03-12 05:35:37 +00:00
takemura e9619d5d21 New frame buffer driver 'hpcfb' and built in video controller 'bivideo' 2000-03-12 05:04:44 +00:00
shin 53cff1c1e5 fix typo. 2000-03-11 09:11:33 +00:00
shin 531586bc96 fix frame buffer type (normalized to 'black on white'). 2000-03-11 09:05:17 +00:00
shin a56d95d08b fix PV-6000/C-1000 keycode mapping. 2000-03-11 08:53:33 +00:00
shin b7a1ee6c84 configure controller 0 only (workaround for phantom PCIC). 2000-03-11 08:51:55 +00:00
tsutsui dc259a36a2 Use CTRL_AST interrupt to handle asynchronous trap. 2000-03-10 19:06:43 +00:00
minoura 37132adf3f Sync. with news68k/news68k/mem.c:1.2. 2000-03-10 16:28:56 +00:00
sato 06f85d40f0 change about VRIPDEBUG. no action changes. 2000-03-10 09:18:00 +00:00
sato 67e7cb40b1 fix print message when #undef VRGIUDEBUG and change a little. 2000-03-10 09:05:01 +00:00
groo 0a77d41f4f clean up lm0 example 2000-03-10 06:03:18 +00:00
nisimura 4c043eb094 Arrange 'vmstat -i' to show 'optslotN'; for interrupt counts of TC slot N
as well as DECsystem 5100 optional serial card slot N.
2000-03-10 01:31:22 +00:00
sato 79d83d72e1 printf -> DPRINTF
vrisa_debug = 0 by default.
2000-03-10 01:30:06 +00:00
scottr 87bf486935 Back out previous; it's now dead code. 2000-03-09 23:15:23 +00:00
cjs 0aaf8765ad Add reminder to add stuff to ALPHA as well as this. 2000-03-09 22:27:26 +00:00
scottr d5f475149c The last change has proven unreliable. Attack the problem differently;
assume that the address we have is the correct PA if we can't
figure it out by groveling.  This time it really (yes, really)
works on the PowerBook 14x/16x/170.
2000-03-09 22:27:09 +00:00
cjs fe76319160 Add ident and RAID_AUTOCONFIG to bring up to date with GENERIC. 2000-03-09 22:26:41 +00:00
soren c70220f2a2 Move PCIIDE_CHANNEL_NAME macro to pciidereg.h. 2000-03-09 20:26:31 +00:00
thorpej 0bcbafe0ee Correct the number of arguments to wsdisplay_set_cons_kbd(), for the
changes I made for cnbell().
2000-03-09 18:59:27 +00:00
hubertf f3f4e44c39 fix typo 2000-03-09 16:49:22 +00:00
ad 5af90382c5 Add missing chrtoblktbl entry. 2000-03-09 11:19:30 +00:00
garbled ea089cf90c New features:
tctrl now initializes the state of the internal LCD icons.  The icons
are unprogrammed at boot time.  This incidentally makes the DC-POWER icon
work.

Fixes:
Fix my stupidity in the ENVSYS stuff, and actually follow the API.
2000-03-09 07:04:08 +00:00
groo 752c98f8ea Add (commented out) lm driver examples 2000-03-09 04:12:42 +00:00
matt ebe08edbb2 add VS400 scsi attachment + a few other things 2000-03-09 02:05:07 +00:00
matt 57032be837 disable scsi for ka49 until sgmap is adapted to it. 2000-03-09 02:02:12 +00:00
matt 082a04f053 don't enable sgmap on ka49 yet. 2000-03-08 23:50:51 +00:00
matt f21e750db2 only have vmapbuf/vunmapbuf do anything on the ka46/48/49. 2000-03-08 23:49:10 +00:00
mhitch 5a9b9df419 Do the interrupt dispatch somewhat differently than the previous fix.
This one is more in the spirit of incorrect version which was trying
to shorten the interrupt path.  This probably isn't quite as fast as
using a switch() statement to dispatch the interrupts, but should be
a little faster than testing for each of the possible 6 interrupt
conditions.
2000-03-08 18:09:27 +00:00
takemura fe02fcfe1e GENERIC configration includes Cassiopeia E-55 CF card support. 2000-03-08 14:53:33 +00:00
mhitch 0641e677c4 Using interrupt bits in a switch statement doesn't work very well if more
than one interrupt bit is set (unless you do some fancy case values).
Check each interrupt bit individually and process the interrupt if set.
5000/200 doesn't hang shortly after booting now.
2000-03-07 23:41:35 +00:00
kleink ad7dbd825c Define ISO C99 (unsigned) long long (min, max) symbols. 2000-03-07 19:33:00 +00:00
kleink 0c7df56c40 Define ISO C99 (unsigned) long long (min, max) symbols.
VS: ----------------------------------------------------------------------
2000-03-07 19:31:50 +00:00
kleink a9ebf7bb8c Define ISO C99 (unsigned) long long (min, max) symbols. 2000-03-07 19:31:49 +00:00
tsutsui 56423f59aa Use b_cylinder as defined in sys/buf.h. 2000-03-07 15:59:24 +00:00
tsutsui d16c6f3272 Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit. 2000-03-07 15:55:14 +00:00
tsutsui d9d840d522 - Remove unnecessary prototype declaration of readdisklabel().
- Use DISKPART/DISKMINOR/DISKUNIT instead of dkpart/dkminor/dkunit.
2000-03-07 15:35:42 +00:00
scottr 6755970bcf Low-level drivers, like the Power Manager driver, can get us into a major
funk when they misbehave and give us unexpected results.  Specifically:

 - Don't assume that the first free slot is at the top of the table if
   we can't find one.
 - Don't increment ADBNumDevices when backfilling "holes" left by devices
   that didn't respond to a TALK R3 during the initial device scan.
 - Don't assume that an address reassignment worked; make sure something
   responds on the new address before plowing forward.
 - If after device reassignment there are no free slots, make sure to
   indicate this fact.
 - Failing all else, handle the situation where we run out of slots in
   the device table -- which now should "never" happen -- gracefully.

While the Power Manager driver still sometimes misbehaves, it shouldn't
cause the system to crash/hang due to us walking off the end of the
device table.
2000-03-07 06:35:22 +00:00
shin 5913106c36 add '%INCLUDES'. 2000-03-07 04:17:27 +00:00
soren 2f1aff2da3 Garbage collect MIPS_SR_INT_ENAB/MIPS_SR_INT_ENA_CUR definitions. 2000-03-07 01:05:48 +00:00
matt ebbd936b2c Chnage chip freq to 25MHZ. panic if dmaaddr is not in the kernel's
address space.  fix some printfs.  (reads now work!)
2000-03-07 00:08:42 +00:00
matt 10f359a6b5 clear the sgmap that was allocated 2000-03-07 00:07:16 +00:00
matt e8c7c2f842 add real vmapbuf/vunmapbuf routines. needed for VS4000 SCSI support. 2000-03-07 00:05:59 +00:00
matt e42cc6e32e remove some unsed variables. make a bit efficeint. 2000-03-07 00:04:13 +00:00
thorpej a183d34f04 - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
itojun 6ac3fc2a55 beautify APM_DISABLE_INTERRUPTS line (s/options\t/options \t/) 2000-03-06 18:45:42 +00:00
takemura 5c2ef51018 Add '\Storage Card1\netbsd'. 2000-03-06 13:24:12 +00:00
deberg d2a30703b6 we don't have callrom(), so stop pretending otherwise. fixes PR
next68k/7257.
2000-03-06 04:14:15 +00:00
deberg cab3766f0b add comments to ZS_CONSOLE_ABORT and SERCONSOLE, and convert to
options<SPACE><TAB>NAME
2000-03-06 03:48:57 +00:00
mark 60d1e515ef Remove dead option POSTMORTEM. 2000-03-06 03:16:24 +00:00
mark 9b9e4e5a8f defopt EBSA285 and FOOTBRIDGE. 2000-03-06 03:15:46 +00:00
mhitch e87b3c7fb3 Use device_register() instead of dk_establish() to determine the boot
device.  Works on a 3100 with both old and MI SCSI, on a 5000/25 built-in
IOASIC with both old and MI SCSI, on the 5000/25 PMAZ TC option card
with both old and MI SCSI, and with tftp boot on the 5000/25.
2000-03-06 03:15:28 +00:00
mhitch 9ace38f7dc Move the now emptry dk_establish() back to disksubr.c where it originally was. 2000-03-06 03:14:28 +00:00
mhitch 7f9b4522d1 A common device_register() is used instead of a separate version for each
of the different DECstation models.
2000-03-06 03:11:43 +00:00
mhitch 0993165c93 Define __HAVE_DEVICE_REGISTER, since pmax now has device_register(). 2000-03-06 03:11:05 +00:00
mhitch e65044e30d Get rid of hook for dk_establish() - pmax will now use device_register(). 2000-03-06 03:08:32 +00:00
eeh 4a8841ada2 Try to page align all segments up to 4MB pages. 2000-03-06 01:29:04 +00:00
matt 4ab785a0e1 it is pretty close to working. the scsibus probes now. 2000-03-05 23:20:25 +00:00
matt c43bdd0b91 Fix a bug with < 1 pages mappings. 2000-03-05 21:51:47 +00:00
matt 1de30b727b fix bug in bus_space_subregion 2000-03-05 21:22:48 +00:00
thorpej 23c5667cfe Use ANSI-style function declarations for the various inline functions
here.  Addresses port-alpha/9056.
2000-03-05 18:46:14 +00:00
shin 84b24dcb3a cosmetic change. 2000-03-05 10:03:16 +00:00
takemura 775240e015 Delete #ifdef USE_RASTERCONS lines, which are not used. 2000-03-05 08:49:06 +00:00
mrg 6bf88d7e9a add a "struct device *booted_device" so that raidframe can link. 2000-03-05 08:21:57 +00:00
takemura 45db29b1b3 Delete #ifdef USE_RASTERCONS lines, which are not used. 2000-03-05 06:24:33 +00:00
takemura 303401ce32 Change bus_addr_t and bus_size_t from u_int32_t to u_long.
Add -Werror option to kernel Makefile.
2000-03-05 05:22:12 +00:00
takemura 2aad5afc67 Add ISA DMA support entries. (It's dummy. I don't know if it work or not.) 2000-03-05 04:34:06 +00:00
nathanw 2569290833 Now that pnpbios_io_unmap() exists, use it. 2000-03-04 23:08:54 +00:00
mycroft 8781f55d6a Invert the APM_NO_POWER_PRINT flag, and make sure it's off by default. 2000-03-04 21:37:23 +00:00
uch 062700843c Make it easier to cross-compile with this. moreover. 2000-03-04 19:52:26 +00:00
uch 937f50798e adjust retry count for TX3922 2000-03-04 19:36:34 +00:00
uch 06f8a39446 timeout when DMA interrupt lost. 2000-03-04 19:35:36 +00:00
tsubai 4c75cb9b65 INSTALL kernel config. 2000-03-04 19:30:17 +00:00
matt 2b3b8b5d50 it's closer to working now. 2000-03-04 18:20:53 +00:00
matt ad61c16f86 Oopps. forgot to commit this. 2000-03-04 16:59:18 +00:00
ragge 8e7bc4bd01 Change some install options. From Todd Whitesel. 2000-03-04 16:21:05 +00:00
ragge 3c7a7bf0e0 Install the boot programs in /usr/mdec also. From Todd Whitesel. 2000-03-04 16:17:46 +00:00
takemura ac09284927 Change 'irq' locater encoding. You can use port# 0. You should use 0xff
for unspecified port#. Also, You can specify interrupt level/edge, high/low
and through/hold.
2000-03-04 13:43:19 +00:00
aymeric 7cd55062c0 do as if bus_space_read_4() returned an int, although it just calls panic. 2000-03-04 11:49:18 +00:00
uch bac061b47f sync with my latest. 2000-03-04 11:41:48 +00:00
uch 461e3d82a4 adjust SIBSCLK to 9.216MHz (TX3922) 2000-03-04 11:39:29 +00:00
nisimura 03bf9a2dc3 Remove #ifdef'ed out PMAX_CACHEFLUSH_FORCES_WBFLUSH codes in cache
flush ops which has had no effect for long time.
2000-03-04 11:37:31 +00:00
tsubai 30370336dc Use ring buffer on tx side, too. 2000-03-04 11:17:00 +00:00
nisimura 1036d33c39 Fix mipsmate SCSI lossage made by my previous change. 2000-03-04 10:14:39 +00:00
nisimura f58f6334cb Cosmetic cleanups to hide local objects. 2000-03-04 08:25:24 +00:00
scottr 027952236a Two changes to facilitate (better) PowerBook 1xx support:
- Use a mask to account for address space "wrapping"
 - Check supervisor data space if we can't find a PTE in user data space
2000-03-04 08:16:16 +00:00
scottr a5d6bd9c7a Add get_pte_s() to search the supervisor space. 2000-03-04 08:10:51 +00:00
matt e0df4ffcae expunge vm_offset_t and vm_size_t.
add bus_dma support for the vs4000 dma translation map (sgmap).
enhance the vsbus for the lance to work with it.
remove the sgmap init code from ka46/48/49.c
2000-03-04 07:27:47 +00:00
nisimura c9fc3f7c80 Mention a bit about possible HZ interporation improvement in microtime(). 2000-03-04 07:09:09 +00:00
nisimura 8098245d56 Mention a bit about various issues NetBSD/arc must solve. 2000-03-04 06:54:17 +00:00
nisimura 4e461d33ef Have a local variable to match/attach mainbus insteading using ->cf_unit. 2000-03-04 06:35:02 +00:00
nisimura ccacacf17c Nuke unnecessary prototype declaration of readdisklabel(). 2000-03-04 06:21:15 +00:00
nisimura 076916eb49 Use cdev_decl() for cdev prototype declaration, fixing errors in the 4th
argument of mmopen() and mmclose().
2000-03-04 06:14:47 +00:00
nisimura 13441f2429 It's not necessary to have #if NSII > 0. 2000-03-04 06:05:36 +00:00
mhitch 8bf4d36694 Fix boot device detection. Device probes are not done when adapters are
configured, but after all adapters have been configured.  When multiple
adapters are present, only the last configured adapter could be matched
to the boot device slot.  The adapter attach routines now check if that
adapter slot matches the boot device slot and saves the softc pointer
for that controller.  Then when the disks are configured, dk_establish()
matches the appropriate controller.  Also change the rz boot device test
to include a check for the adapter so that it works when booting from a
disk on adapters other than the first one.
2000-03-04 05:42:55 +00:00
nisimura 400fee7b5a Remove never used memory error address register manipulation
inherited from DECstation 3100 and other debris floating around.
This file will go away naturally when interrupt establish procedure
and dispatcher are well coordinated in sane way of encapulating
target implementation differences.
2000-03-04 05:21:20 +00:00
matt 7258e6c6b7 First pass at NCR53c9x attachment for VS4000. It doesn't work yet.
But I want to save the work.
2000-03-04 00:24:06 +00:00
matt 1bce76807d it's a bit cleaner now. it also gets rid of the iomap init in
ka4[689].c
2000-03-04 00:22:37 +00:00
matt 2150f75fb0 First pass. need to add hw sgmap allocation via bus_dmamem 2000-03-03 22:57:49 +00:00
uch 630279a800 add device file interface for UCB1200 2000-03-03 19:54:34 +00:00
mhitch 40b13c16c0 Do the Ultrix label check in readdisklabel() instead of in rz.c. Ultrix
disks are now usable with the MI SCSI sd devices.
The install mini-root adjustment and the default partitioning still needs
to be moved into readdisklabel().
2000-03-03 17:51:26 +00:00
mhitch 9eaf0ad1d4 Allow a kernel (i.e. GENERIC) to be configured with rz disks with the SII
driver and sd disks with MI ASC driver.
2000-03-03 17:46:49 +00:00
uch 8e89a8db7e cosmetic change 2000-03-03 17:09:57 +00:00
soda 09a5eed1e8 NEC RISCstation 2250 (NEC-RD94) support.
contributed by Shuichiro URATA <ur@a-r.org>.
2000-03-03 13:08:42 +00:00
soda a031341f9b NEC RISCstation 2250 (NEC-RD94) support.
contributed by Shuichiro URATA <ur@a-r.org>.
2000-03-03 12:50:19 +00:00
soda c616c9e0fe use callback function to set up secondary cache related things on arc.
XXX - perhaps it is better to separate cache related initialization
from mips_vector_init().
2000-03-03 12:43:52 +00:00
soda d4b9359964 do not install bus.h, kbdreg.h and pio.h..
since currently these are not useful/needed from userland.
2000-03-03 12:38:25 +00:00
soda 65102815b0 cosmetic change. 2000-03-03 12:35:40 +00:00
soda 0ded8728bc typo in comment 2000-03-03 12:32:43 +00:00
soda a39a58d0fb update 2000-03-03 12:32:15 +00:00
soda 0fd8c949e4 prepare for wscons 2000-03-03 12:31:33 +00:00
soda e47c4a5f51 add some MI devices, including raidframe, tun, ... 2000-03-03 12:29:57 +00:00
nisimura 3c5d39d73b Make clearer a bit how proc0's USPACE is intialized. 2000-03-03 08:36:20 +00:00
castor 67e96268ad Fix a /dev/kmem crash when vaddr + count wrapped and snuck through
the error check, courtesy of Jeff Smith <jeffs@geocast.com>.
2000-03-03 02:33:21 +00:00
groo 97be07a6c4 Remove probe/attach for PNP0C02. There are reserved motherboard regions.
Thanks to Adam Glass for catching this.
2000-03-01 20:24:53 +00:00
groo 866ee72838 Add pnpbios_io_unmap 2000-03-01 20:23:55 +00:00
thorpej 7d57276982 Do partial lazy I-stream sync -- in the pmap_enter()/pmap_remove() cases
for now.  More to come.
2000-03-01 18:29:04 +00:00
thorpej 908f6bc4cd Infrastructure for lazy istream sync in the pmap module:
- Add a bitmask for the CPUs which need an isync before this pmap returns
  to userspace on that CPU.
- Define PMAP_USERRET(), a utility macro for userret() to use to process
  the deferred isync, and call it as appropriate in userret().
2000-03-01 02:22:03 +00:00
thorpej a192dc9c5b PMAP_ISACTIVE() now takes the cpu_id. This serves two purposes:
- Everywhere it was used, the cpu_id was already computed, so this
  saves computing it again.
- This will be needed for lazy istream sync.
2000-03-01 01:32:45 +00:00
ad 14050f197e Make this compile in DEBUG/DIAGNOSTIC case. 2000-03-01 00:44:53 +00:00
thorpej 64911f1d2e Use cpu_number() here instead of alpha_pal_whami(). 2000-03-01 00:43:34 +00:00
matt a1a05c5cf9 include <sys/cdefs.h> since <net/netisr_dispatch.h> needs __CONCAT 2000-03-01 00:17:17 +00:00
thorpej fac7fc369f Put machine check info in cpu_info in the multiprocessor case, and
just have one statically allocate machine check info structure in the
single processor config case.
2000-02-29 22:19:53 +00:00
thorpej 04d9239b1e Reset mc_received after we've done a badaddr probe. 2000-02-29 21:42:54 +00:00
augustss 8cc92d88cf Add USB tty device. 2000-02-29 19:08:54 +00:00
matt 352a87f7bd fix a too agressive s/CIA/UBA/ (e.g change SPEUBAL back to SPECIAL) in the
header.
2000-02-29 17:42:32 +00:00
matt 8aaab5c387 add missing cpu dependencies 2000-02-29 17:13:27 +00:00
nonaka 37eb9eebc2 Initial import prep port. 2000-02-29 15:21:20 +00:00
nisimura 6f5dadba1c Cleanup warning comment which is now irrelevant. Reorder codes. 2000-02-29 09:03:30 +00:00
nisimura d93aaefb84 - Have SYS_DEV_xxx device cookie symbols to select and install proper
interrupt handlers into intrtab[] array, rather than the idea of devices
  in 'psuedo' TURBOchannel slots.
- Nuke symbols for psuedo TC slots.
- Abandon never/unlikely used intr_disestablish()s.
2000-02-29 07:20:21 +00:00