Commit Graph

47582 Commits

Author SHA1 Message Date
thorpej
3078a3d26d It's pretty questionable to printf a PCI tag, but if we're going to
do so, at least make the printf compile across the board.
2001-06-14 01:06:56 +00:00
rafal
3327706cab Add externs for struct platform and the machine type definitions (mach_type,
mach_subtype, mach_boardrev).
2001-06-14 01:06:08 +00:00
wiz
b2e2ddf49e It's "extern int", not "extern".
Macppc kernels with LINUX_COMPAT now compile again.
2001-06-13 23:10:31 +00:00
wiz
3d343db054 #include <machine/fpu.h> for save_fpu()
#ifdef 0 two unused and un-prototyped functions.
Following a hint by Andrw Cagney on port-macppc.
2001-06-13 23:09:01 +00:00
uch
0774d04303 (TX39) switch from TX local I/O manager to hpcio 2001-06-13 19:09:07 +00:00
uch
a9d7b546d6 make this work. 2001-06-13 19:02:13 +00:00
bjh21
bb5ca33de4 Add a driver for the HCCS IDE interface I got at Wakefield. Like the D.T.
Software one (dtide), it doesn't generate interrupts, so we run it in polled
mode.
2001-06-13 18:31:43 +00:00
bjh21
18c4c9eab3 Update to use the new support for IRQ-less IDE controllers.
Also generally re-work to do channel attachment in a loop, since that saves on
code size.
2001-06-13 18:29:40 +00:00
bjh21
6acf237023 Use the new generic mechanism for forcing polling on a SCSI interface, rather
than doing it ourselves.
2001-06-13 18:27:27 +00:00
bjh21
4bc5a3b295 Add explicit support for IDE and SCSI adaptors which don't support interrupts.
On such adaptors, all transfers are done in polling mode.

OK'ed by Manuel on tech-kern.
2001-06-13 18:17:38 +00:00
nathanw
0adcac34e5 That's supposed to be <machine/io.h> in the XXX'd #ifdef, not a repeat
of <machine/bus.h>.
2001-06-13 17:52:43 +00:00
nathanw
9e8fb68348 The trace_req() function is a no-op; garbage collect it. 2001-06-13 16:06:27 +00:00
sato
01b21ab7a1 register VRIP_INTR_BAT handler to vrip_intr_establish(). 2001-06-13 16:05:59 +00:00
soda
45c99b6989 remove resolved TODOs, reorder some entries, and some formating fixes. 2001-06-13 15:41:53 +00:00
soda
22b59feda9 introduce "struct platform", and remove "cputype" variable. 2001-06-13 15:39:13 +00:00
soda
fb93db6893 remove __BROKEN_CONFIG_UNIT_USAGE, finally (sorry to be late, cgd). 2001-06-13 15:38:15 +00:00
soda
cefa712681 update configurations for "struct platform" and related changes 2001-06-13 15:37:27 +00:00
soda
56716edd1f incomplete platfrom description for SNI RM200. 2001-06-13 15:36:44 +00:00
soda
6ddec4b5e4 platform description for NEC RISCstation 2200 variants.
not tested.
2001-06-13 15:36:04 +00:00
soda
8612165cf4 platfrom description for NEC Express RISCserver and NEC RISCserver 2200.
tested by Bob Meader on NEC RISCserver 2200, and
Chuck Silvers on NeTpower S1030 (likely compatible with Express RISCserver),
until it asks for boot device.
2001-06-13 15:35:04 +00:00
soda
ee220d37b2 platform description for NEC RISCstation 2250.
test by Shuichiro URATA (until it asks for boot device)
2001-06-13 15:33:27 +00:00
soda
42215b6b35 platform description for NEC Express 5800/230, R4400 & PCI variant.
tested by Izumi TSUTSUI.
2001-06-13 15:30:38 +00:00
soda
ed19e07cc7 platform description for Acer PICA-61 and its OEM.
tested by myself on NEC Image RISCstation.
2001-06-13 15:29:30 +00:00
soda
4e70aed6b2 platform description for MIPS Magnum (Microsoft-Jazz).
tested by myself on a NEC Magnum derived machine.
2001-06-13 15:28:23 +00:00
soda
a8a1317719 latform description for DESKTECH Tyne and rPC44.
not tested.
2001-06-13 15:27:17 +00:00
soda
b7f2c5a631 common chipset description for NEC PCI generation platforms 2001-06-13 15:23:22 +00:00
soda
221f729935 common chipset description for NEC EISA generation platforms 2001-06-13 15:22:49 +00:00
soda
272b3c0d0d common chipset description for NEC EISA and PCI generation platforms 2001-06-13 15:21:52 +00:00
soda
3e5520d4d1 common description for platforms which have Jazz and EISA
but doesn't have PCI, like magnum based platforms and
NEC EISA generation platforms
2001-06-13 15:21:00 +00:00
soda
4f9452f773 common chipset description for magnum based platforms like
Microsoft-Jazz and PICA-61
2001-06-13 15:19:28 +00:00
soda
eab4fd5e7a rename statically allocated software context which is needed for
console initialization, from "struct necpb_config necpb_configuration;"
to "struct necpb_context necpb_main_context".
to resolve naming conflicts with "struct XXX_config *XXX_conf;"
which describes platform-dependent configuration variants.
2001-06-13 15:18:28 +00:00
soda
1aa149136b rename statically allocated software context which is needed for
console initialization, from "struct necpb_config necpb_configuration;"
to "struct necpb_context necpb_main_context".
to resolve naming conflicts with "struct XXX_config *XXX_conf;"
which describes platform-dependent configuration variants.
2001-06-13 15:18:27 +00:00
soda
56197e330a make vga frontend does same thing with pccons frontend 2001-06-13 15:12:28 +00:00
soda
d54e67b2d3 add copyright notice 2001-06-13 15:12:02 +00:00
soda
5738ad78e7 remove "cputype", introduce "struct jazzio_config *jazzio_conf;" to
describe platform-dependent variants. clean up jazz i/o interreupt
handling had device configuration information.
2001-06-13 15:11:38 +00:00
soda
131e5819c3 remove "cputype", introduce "struct asc_config *asc_conf;"
to describe platform-dependent variants.
2001-06-13 15:10:35 +00:00
soda
ceabf3273a remove "cputype", introduce "struct btl_config *btl_conf;"
to describe platform-dependent variants.
2001-06-13 15:09:32 +00:00
soda
bc0d30a90c introduce "struct platform", and remove "cputype" variable.
this change also includes a patch to obtain secondary cache size
from ARC firmware by Bob Meader, which was posted on port-arc on 18 Aug 2000.
this should make NEC Express RISCserver work.

this change obtains ID of display controller from ARC firmware, too.
2001-06-13 15:08:05 +00:00
soda
b7abba7794 split pccons driver into "pccons" and "opms",
also split into bus-dependent frontend and bus-independent backend.
2001-06-13 15:05:43 +00:00
soda
226c44ecbc use MI i8253reg.h instead of home grown one 2001-06-13 15:03:53 +00:00
soda
ba6a3c6db5 split ISA bridge code into bus dependent frontends to remove "cputype"
variable.
2001-06-13 15:03:24 +00:00
soda
c6eacfae15 split clock_mc.c into interval timer driver (timer) and
real time clock driver (mcclock)
2001-06-13 15:02:12 +00:00
soda
c7b603e55d split clock.c into interval timer part ("timer" for cpu_initclock) and
real time clock part ("todclock" for inittodr, resettodr)
2001-06-13 15:00:26 +00:00
soda
33669543d9 remove algor related codes, because there is independent (and working!)
algor port now.
2001-06-13 14:58:38 +00:00
soda
7a314c516c enable device_register(9) on arc port to parse boot device name
passed by ARC firmware correctly.
2001-06-13 14:36:33 +00:00
toddpw
a865af9ad5 Enable attachment for Kingston KNE-PC2 Ethernet. 2001-06-13 13:41:01 +00:00
rafal
68306a9bf0 Implement a db_trap_callback which turns off the watchdog on entry to DDB
and turns it back on on exit.  Hook the callback in early in the boot, so
it's there as soon as DDB is available.
2001-06-13 12:34:24 +00:00
wiz
c03a48d64f withough -> without 2001-06-13 10:45:57 +00:00
scw
e13606c37b Workaround for buggy OPTi pciide chipset revisions, as reported
in PR/11644.
2001-06-13 09:55:25 +00:00
enami
4553af4ee5 Add minimal support for vr4122/vrc4173 pci. 2001-06-13 07:32:47 +00:00
lukem
6b358ba879 remove interlan np100 entry as the referenced files don't exist 2001-06-13 06:43:08 +00:00
lukem
d9db68b3fe be more specific about which interlan controller the qbus/if_il supports 2001-06-13 06:40:19 +00:00
simonb
85ded6700b Add a sanity check for ubc_winshift. 2001-06-13 06:06:19 +00:00
simonb
6c4e6292a5 Regen; add IBM 405GP PCI Bridge & ROB-in i960RP Microprocessor. 2001-06-13 06:04:25 +00:00
enami
3df61fa9d9 Generic softintr for hpcmips. 2001-06-13 06:03:10 +00:00
simonb
18b2f7e6a1 Add a port to IBM's PPC405GP Reference Board (the "walnut")
by Eduardo Horvath and Simon Burge of Wasabi Systems.

IBM 4xx series CPU features:
 - New pmap and revised trap handler.
 - Support on-chip timers, PCI controller, UARTs
 - Framework for on-chip ethernet and watchdog timer.
General PowerPC features:
 - Add in-kernel PPC floating point emulation
 - New in{,4}_cksum that is between 1.5 and 5 times faster than the
   old version depending on CPU type.
General changes:
 - Kernel support for generic dbsym-style symbols.
2001-06-13 06:01:44 +00:00
thorpej
015345c74b Don't need INET or NS includes here. 2001-06-12 22:32:51 +00:00
thorpej
7e59a1be7a No longer need MIPS3_5200 here. 2001-06-12 22:32:50 +00:00
thorpej
9988acd41e Don't need INET or NS includes here. 2001-06-12 22:28:15 +00:00
thorpej
e103dbb4b0 Don't need NS-related headers here. 2001-06-12 22:05:53 +00:00
uwe
02293e0ea7 Be prepared to get OpenFirmware client entry in either %o3 (PROM way)
or %o0 (our boot code passes romp in %o0 even for OF machines).
Discussed with pk.
2001-06-12 21:01:26 +00:00
bjh21
18e8d752f6 No need to pull in INET or NS headers -- that's all done by ether_ioctl() now. 2001-06-12 20:53:39 +00:00
bjh21
ca5de264b4 Change the structure of a bus_space_handle_t in a desperate bid to avoid using
function pointers.  It now contains two base addresses, one for 8-bit
transfers and one for 16-bit transfers.  This should make it possible for me
to handle the Castle EtherSCSI card, which uses and address line to select
transfer width to the i82595.
2001-06-12 20:16:22 +00:00
matt
2b283d77df For arm ports where machine != arm??, descend into the cats,dnard,netwinder
directories and install their include files too.
2001-06-12 18:16:31 +00:00
matt
6506d53f68 Nuke include files which are just <arm/foo.h>. Adjust Makefile accordingly. 2001-06-12 18:03:55 +00:00
matt
d4dcda551f Revert back to arm32 (for now). 2001-06-12 18:02:20 +00:00
matt
5571e920d6 senderr needs only be declared when PFIL_HOOKS is defined 2001-06-12 17:55:52 +00:00
matt
12635e46a1 The machine is cats, the machine_arch is arm (not arm32). 2001-06-12 17:38:41 +00:00
matt
0aff179f16 Eliminate all files that are just #include <arm.foo.h>. Update Makefile
to refer to cats, not netwinder.
2001-06-12 17:37:35 +00:00
tsubai
f1d3ac74a5 Change comment. 2001-06-12 17:36:55 +00:00
tsubai
66c1ffd9be Remove cpu_dumpconf(); it's in powerpc_machdep. 2001-06-12 17:23:13 +00:00
tsubai
713feac239 Include powerpc/mpc6xx/{bat.h,pte.h} if PPC_MPC6XX is defined. 2001-06-12 17:20:50 +00:00
tsubai
bee211fc53 Move "file .../bus_dma.c" line to MD place.
Add options PPC_MPC6XX on missed ports.
XXX I think PPC_OEA is better name.
2001-06-12 17:13:34 +00:00
matt
fa3621e3be Move netwinder_machdep.c to files.netwinder. Eliminate opt_netwinder.h and
use #ifdef netwinder insead.  XXX ebsa285_machdep.c should move to the cats
directory and files.cats
2001-06-12 17:10:25 +00:00
minoura
f8ce82f817 Another steps for ELF.
- register prefix
 - machine/asm.h
 - deprecated -T option for ld(1)
2001-06-12 16:57:27 +00:00
tsubai
cbad4436c2 One more. 2001-06-12 16:32:00 +00:00
tsubai
51a013241c Make this compile w/o akbd or ukbd. 2001-06-12 16:29:07 +00:00
wiz
0a600be867 receive, not recieve 2001-06-12 15:17:10 +00:00
itojun
bdbfdf946d run pfil_hooks for IPv6 forwarding path (note: ip6_forward() does not
call ip6_output()).
2001-06-12 15:12:33 +00:00
thorpej
4f7cad1c02 On a non-simplex interface, check incoming multicast (this catches
the broadcast case as well) to see if they came from us, and drop
them if they did.

This fixed IPv6 DAD on non-simplex interfaces, e.g. the Seeq 8003
found on my SGI Indy.
2001-06-12 15:03:26 +00:00
wiz
2a8c778f1b retrieve, not retreive 2001-06-12 14:59:27 +00:00
ragge
3bd0afbc54 Make tracing of stack by frame argument work. 2001-06-12 13:22:06 +00:00
ragge
5335780e31 Support to get into DDB from hardclock interrupts by putting a value in
the RPB wait field.
2001-06-12 13:20:29 +00:00
ragge
8f96f4b21c Fix problem where console interrupts never got enabled after RB_ASKNAME. 2001-06-12 13:18:38 +00:00
bjh21
cb6b68a931 Mention where I got the information for writing the driver. 2001-06-12 11:52:03 +00:00
bjh21
f6f3c9b35f Add a hefty comment about the stray IR bug, so I don't forget it. 2001-06-12 11:49:18 +00:00
wiz
b50f28c38a underrun, not underun 2001-06-12 11:48:51 +00:00
minoura
55e73f8bc1 I was too careless. Do not throw away the prepared string. :p 2001-06-12 11:29:31 +00:00
ragge
8f68bebb7e Detect 4000/VLC correctly + make halt/reboot work.
From Michael L. Hitch (mhitch@montana.edu).
2001-06-12 11:24:50 +00:00
minoura
5d6ce3b75c Make this compile again. 2001-06-12 10:30:04 +00:00
minoura
b1b468a365 Remove unneeded whitespace. 2001-06-12 10:03:04 +00:00
chris
be97fea093 Remove Makefile.cats. We now use the arch/arm/conf/Makefile.arm. 2001-06-12 08:33:48 +00:00
chris
eb541612a0 Add cats specific makefile for tags and includes. 2001-06-12 08:32:46 +00:00
chris
f90999bd42 Cats doesn't need io.h any more as it has it's own conf.c files. 2001-06-12 08:31:53 +00:00
chris
a7b8789da8 Add cats specific autoconf and conf.c. Also add defopt NETWINDER to files.cats, this is so a few things that include opt_netwinder compile. 2001-06-12 08:30:47 +00:00
chris
8c53bc98ee comment out MEMORY_DISK_HOOKS, currently cats can only use an in-kernel memory disk. 2001-06-12 08:27:08 +00:00
thorpej
42a2e688fe If the parent interface can do hardware-assisted VLAN encapsulation,
then propagate its hardware-assisted checksumming flags.
2001-06-12 06:16:59 +00:00
simonb
0bdd2faeed Get the opcode mask right for almost all the Op_OE opcodes (only two were
correct).
2001-06-12 05:31:44 +00:00
uwe
1f4eee4c21 In wsfont_map_unichar: when checking that 'lo' is within 'map2' range,
compare 'lo', not 'hi' (only partially edited cut-n-paste it seems).
2001-06-12 00:57:10 +00:00
thorpej
ba52d7a5d0 Always indirect through the "locoresw" to get the cache ops, since
there are just far too many combinations to handle with magic
#ifdefs in any sane way.  Also, add a HitFlushDCache op to the
"locoresw", and fill it in as appropriate (it's NULL on MIPS-I,
so watch out).

These changes ensure that my R4600 Indy (with 2-way cache) gets
the correct cache ops when the kernel is built with only MIPS3
support, resulting in a kernel that is significantly more stable.
2001-06-11 23:52:38 +00:00
perry
df452bb9b8 clean up some comments, per a request from sommerfeld 2001-06-11 22:56:26 +00:00
chris
1825c7b68a Move defopt FOOTBRIDGE to where it really should be in files.footbridge, which is where I should have left it. 2001-06-11 22:25:09 +00:00
chris
ed72dec945 Remove locore dependancy on opt_netwinder and use the netwinder define from the command line. 2001-06-11 22:08:42 +00:00
fredette
8d1b187a4c Fixed pte_print to display the correct names
for VME device pages.
2001-06-11 21:35:59 +00:00
fredette
6e5f704918 Now use hand-defined macros instead of relying
on structure layout to find registers.  Added
a VME attachment.
2001-06-11 21:33:47 +00:00
bjh21
33afab3251 Add a short-circuit return from wdcprobe for IDE controllers without pullup
resistors, which return the last value written to the bus on a read.  This
makes detecting empty channels on my HCCS and D.T. Software IDE interfaces
rather faster.
2001-06-11 21:18:36 +00:00
thorpej
fb2f3ce7e5 Regen; Add Level One vendor ID, and LXT-1001 10/100/1000 Ethernet
product ID.
2001-06-11 21:13:49 +00:00
thorpej
ec5280c1ed Add Level One product ID, and LXT-1001 10/100/1000 Ethernet
product ID.
2001-06-11 21:12:29 +00:00
sommerfeld
0463a8a3d7 Replace magic numbers in trap code with offsetof()
Deal better with traps during register restore.
Explain a bit more about what's going on here.
2001-06-11 20:04:02 +00:00
bjh21
bd73477f94 Parentheses around definition of PODULE_GAP. 2001-06-11 19:07:14 +00:00
matt
95be56d2e1 Only include dependency on include-dirs if the include directory doesn't
exist.
2001-06-11 17:50:34 +00:00
matt
ba4b09844f Use command Makefile.arm. Move non-std LOADADDRESS to std.netwinder. Add
netwinder-specific inclusion Makefile.
2001-06-11 17:46:23 +00:00
matt
d87a9f23c3 Add common Makefile for arm ports. Only include (for now) machine/io.h
if arm32 is defined.  io.h is RISCPC specific and isn't needed for other
ports.
2001-06-11 17:44:38 +00:00
fredette
274629aa08 Added support for the VME `sc' SCSI board. Compiles,
but needs testers as the author doesn't actually have
the hardware.
2001-06-11 15:09:54 +00:00
pk
b9e61207ff Add nolun/nosync quirk for "IBM CDRM00201 !F"
See PR#13031.
2001-06-11 13:58:18 +00:00
rearnsha
3d85ba9ab2 include-dir: A relative 'S' is up 4-levels. 2001-06-11 13:49:28 +00:00
itojun
8b646a5273 remove IPV6FIREWALL case, which is never used 2001-06-11 13:49:18 +00:00
rearnsha
afd5ba073b Defopt FOOTBRIDGE. 2001-06-11 13:48:28 +00:00
pk
c522c18479 Use NFB from "fb.h" to include console framebuffer support. 2001-06-11 13:34:51 +00:00
rearnsha
bf3fad1043 Split consinit functionality out of machdep.c into platform-specific
files.  G/c include files for machdep.c

Only include dev/cninit.c in ofw-based kernels.
2001-06-11 11:56:57 +00:00
scw
712d37e53b G/C an unused parameter to isrdispatch_vectored(). 2001-06-11 11:26:42 +00:00
scw
9b0b23c664 Stack adjustment for autovectored interrupts wasn't quite right... 2001-06-11 11:24:40 +00:00
rearnsha
b20634eca1 Footbridge files have moved from arm32 to arm sub-tree. 2001-06-11 10:51:09 +00:00
enami
43b992855b Comment about start address of LED unit in vr4122. 2001-06-11 10:04:27 +00:00
sato
a2c4938b03 not set HPCFB_SWAP_BYTE 2001-06-11 09:36:44 +00:00
sato
c1922a2158 not set HPCFB_SWAP_BYTE. 2001-06-11 09:21:15 +00:00
tron
848a0e68f6 Lower interrupt priortiy properly if setting the setting the kernel time
is denied in a securelevel above 1. This fixes PR kern/13158.
2001-06-11 07:07:12 +00:00
tron
a4401a8e5d Regen from "pcidevs". 2001-06-11 06:36:51 +00:00
tron
6caf1041cb Add support for the D-Link DFE-530TX+. Patch supplied by
Gabriel Rosenkoetter in PR kern/13161.
2001-06-11 06:36:23 +00:00
tron
ea44bc48d3 Make arplookup error messages more informative. Patch supplied by
Andrew Brown in PR kern/13162.
2001-06-11 06:19:50 +00:00
enami
1c426d533e make GENERIC compile again. 2001-06-11 06:11:01 +00:00
enami
48a9b87617 Move some struct definition into header file. 2001-06-11 06:04:55 +00:00
enami
79524e25e0 - add comment about start address of PMU in vr4122.
- wrap long line.
- add regsiter offset found in PMU of vr4122.
2001-06-11 06:02:21 +00:00
enami
d011344fca Cosmetic changes; lineup some struct members. 2001-06-11 05:56:21 +00:00
enami
1898d1dcc6 - make this file compile even if either hpcfb or vrkiu isn't included.
- introduce new cpp symbol VR_FIND_DRAMLIM not to probe dram beyound this.
  for example, MP-C303 hangs hard if memoy beyond 0x03800000 is probed.
2001-06-11 05:52:21 +00:00
enami
f81775f030 Cosmetic changes. 2001-06-11 05:24:06 +00:00
enami
2bcc128c2b Print space after colon. 2001-06-11 05:22:10 +00:00
enami
3dabdff631 Cosmetic changes:
- Use tab instead of many spaces
- options<SPC><TAB>
2001-06-11 05:17:45 +00:00
chs
49ba960b09 make this compile with DEBUG. 2001-06-11 04:58:33 +00:00
wiz
40ac848024 Fix various misspellings of compatible/compatibility. 2001-06-11 01:50:48 +00:00
wiz
0a3b1c29a1 transceiver, not transciever. 2001-06-11 01:19:53 +00:00
gmcgarry
6fee8596c7 Packet includes CRC, so mark it in the mbuf header. Fixes the
"discarding oversize frame (len=1518)" problem.
2001-06-10 21:53:08 +00:00
ragge
83e47d5e8d Revision line #1 broke, fixed. 2001-06-10 20:47:49 +00:00
ragge
b47f638d85 Check in work done by bjc@openbsd.org, OpenBSD revs 1.4 and 1.5 of the
same file. No other changes, OpenBSD log messages below.

> More EMODD work:
>         - Using CVTDL and subtracting to seperate integer from fraction does
>           not work if the integer is >32 bits long; instead, rearrange the bits
>           into a quadword, use ASHQ to truncate, and then subtract.
>
> Also:
>         - Set the condition codes properly; this fixes the other problem with
>           >32-bit-integer parts in libm by letting modf subtract the fractional
>           part (which *is* a double) to get the integral part in a double.

>         - move the zero checks earlier in the routine
>
>         - instead of 'ret' in zeroexit, use brw goback

> Switch a "BGTR foo" to a "BLSS bar; BRW foo; bar:".  In this case, the
> difference between the BGTR and foo: is too large for a byte displacement.
> as should give an error or at least a warning here, but it doesn't;
> instead it merrily outputs a completely bogus displacement.
> This fixes problems with EMODD on numbers with negative exponents.
>
2001-06-10 20:46:18 +00:00
msaitoh
e29b0f085f .type xxx,@function isn't supported under COFF 2001-06-10 19:06:26 +00:00
ragge
7921723fdc Update b_proc comment to reality. 2001-06-10 18:43:25 +00:00
ragge
01c6253206 Only use b_proc if B_PHYS is set. 2001-06-10 18:41:27 +00:00
scw
179dd3e579 sigh. It also helps to switch back to .text ... 2001-06-10 17:31:38 +00:00
sommerfeld
b55c21bb0d Copy in segment descriptors all at once rather than one at a time. 2001-06-10 17:30:41 +00:00
tsubai
8561123ccf -Wreturn-type is included in -Wall. 2001-06-10 17:05:11 +00:00