Commit Graph

197 Commits

Author SHA1 Message Date
takemura 090be59325 Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
        arch/hpcsh/dev/hd64461/hd64461video.c   Rev. 1.7 to 1.8
        arch/hpcmips/dev/plumvideo.c            Rev. 1.23 to 1.24
        arch/hpcmips/tx/tx3912video.c           Rev. 1.24 to 1.25
2002-04-13 09:29:53 +00:00
gmcgarry 6e066ba77a Add commented-out USERCONF option. Mainly useful for install media
and can be optionally enabled based on miniroot and ramdisk size
requirements.
2002-04-12 08:10:45 +00:00
uch 260c29f029 rework HD64461, HD64465 interrupt handling. 2002-03-28 15:26:59 +00:00
uch 3ca46e441b rework HD64461, HD64465 interrupt handling. 2002-03-28 15:26:57 +00:00
uch c24ff44374 INTERRUPT_MONITOR -> HPC_DEBUG_INTERRUPT_MONITOR 2002-03-28 15:24:24 +00:00
uch 0ae715f6d2 All the sh3 ports had an identical procfs_machdep.c, so use a common
file under arch/sh3/sh3.
2002-03-27 10:44:38 +00:00
uch e8300f3659 adapted to new interrupt code and shb changes. 2002-03-24 18:21:08 +00:00
uch 422c178bc7 add cpu device. sync with shb change. 2002-03-24 18:14:27 +00:00
simonb a85e214bda Make sure that private DMA flags don't overlap with standard DMA flags;
start these at 0x10000 to leave room for an increase in the latter.
2002-03-17 21:45:06 +00:00
atatat 31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
uch 93da9db963 cosmetic changes, fix comments. 2002-03-17 17:55:22 +00:00
uch 81cdeb6cdd adapt to kernel stack treatment changes. 2002-03-17 14:05:10 +00:00
uch 672baca18b proc0 and page table intialize routines are moved to sh3_machdep.c 2002-03-10 07:46:12 +00:00
uch f9201a1606 common part are moved to sh3/include/param.h 2002-03-10 07:45:31 +00:00
uch dc55dc2c73 remove unneeded code and files. 2002-03-08 13:22:11 +00:00
uch 2f603eaa17 CTL_MACHDEP definitions are integrated into sh3/include/cpu.h again. 2002-03-04 14:36:13 +00:00
simonb 9a942a34e0 Don't use local extern declarations for the mountroot variable or
declare local prototypes for nfs_mountroot() or md_root_setconf().
2002-03-04 02:25:21 +00:00
simonb 64c7743a05 Don't "extern int cold;" - this is in <sys/kernel.h>. 2002-03-04 02:19:07 +00:00
uch 0894ee8f62 use GENERIC. 2002-03-03 14:45:21 +00:00
uch 0d29f32a67 clean up config files. 2002-03-03 14:36:48 +00:00
uch 3c9bf76936 make it work correctly when both hd64461uart and hd64465uart are enabled. 2002-03-03 14:35:08 +00:00
uch 7592c6aa95 don't initialize twice 2002-03-03 14:34:36 +00:00
uch 7166e5033d platform dependent HD64461 PCMCIA module (power supply). 2002-03-03 14:34:00 +00:00
uch 90baa8b206 SR related parts moved to psl.h. cpufunc.h segments.h are removed.
kernel mode checking is only SR.MD. no check stack pointer.
2002-03-03 14:31:24 +00:00
uch 17fbf85dc3 machine dependent sysctl are moved to machine/cpu.h
dreamcast, hpcsh ... CPU_CONSDEV
	mmeye, evbsh3	 ... CPU_CONSDEV, CPU_LOADANDRESET
2002-03-03 14:28:48 +00:00
uch 6042c0a3fc Initial support for KGDB on the sh3. 2002-03-02 22:26:25 +00:00
uch bbcdfc2583 Use sh3/intcreg.h macro instead of immediate. 2002-02-28 18:17:29 +00:00
uch 9c21656766 cpu_dumpconf, reserve_dumppages, dumpsys, cpu_reset are moved to sh3/sh3_machdep.c 2002-02-28 16:54:28 +00:00
simonb 4324f37586 Use "#define<tab>". 2002-02-28 03:17:23 +00:00
uch bbc655c4fb Cleanup register definition 2002-02-28 01:56:57 +00:00
uch 40382c6556 Change foo_r0_r1 macro in sh3/locore.h to foo(Rn, Rm) 2002-02-28 01:53:42 +00:00
uch 06fbd079f5 Remove unneeded header. 2002-02-28 01:52:28 +00:00
christos 6b030ee036 - define other DEV_ constants that the local port uses.
- delete cdev_decl(mm) since <sys/conf.h> does it.
2002-02-27 01:19:03 +00:00
simonb d9ab16ba2f Purge CLSIZE, CLSIZELOG2 and MCLOFSET.
Be consistant in the way that MSIZE, MCLSHIFT, MCLBYTES and NMBCLUSTERS
  are defined.
Remove old VM constants from cesfic port.
Bump MSIZE to 256 on mipsco (the only one that wasn't already 256).
2002-02-26 15:13:19 +00:00
uch 693be1956c Move common exception vector and scheduler code to
sh3/sh3/exception_vector.S and sh3/sh3/locore_subr.S. exception
vectors are installed by sh_cpu_init().  machine/locore.S contains
kernel entry, interrupt handler, and some MD code.
2002-02-24 18:19:40 +00:00
uch 45407e955f setjmp,longjmp are moved to sh3/locore_subr.S 2002-02-22 19:45:31 +00:00
uch f694c9fdd7 New NetBSD/sh3 clock framework.
+ hardclock source is moved from TMU1 to TMU0.
 + SH3/SH4 common kernel support.
 + PCLOCK estimation.
 + remove duplicated code.
2002-02-22 19:43:58 +00:00
uch 1bdc7cc5ca Clean up functions
disable_intr, enable_intr, disable_interrupt, enable_interrupt,
disable_ext_intr, enable_ext_intr.
New functions:
for external interrupt:
_cpu_intr_suspend and _cpu_intr_resume.
for exception:
_cpu_exception_suspend and _cpu_exception_resume.
2002-02-19 17:21:18 +00:00
uch a3757d3ba3 fix LCD byte-order setting. 2002-02-19 14:21:47 +00:00
uch f0c9c394ec fix #ifdef condition 2002-02-17 21:02:16 +00:00
uch 000bb38949 SH3/SH4 common kernel support. 2002-02-17 21:01:15 +00:00
uch 6e0794b560 To determine CPU architecture and product, add cpu_arch and cpu_prduct variables.
these are initialized by sh_cpu_init()@sh3/sh3_machdep.c
(see sh3/include/cputypes.h for detail.)
add "options SH3" for SH3 kernel config file.
2002-02-17 20:59:33 +00:00
uch c0a13ed2e4 add LCD debug routines. 2002-02-13 16:25:32 +00:00
uch 4dff96d2d9 SH4 support. my target is HITACHI PERSONA HPW650PA 2002-02-11 17:32:35 +00:00
uch dca6104509 hpcsh spcific console defines are moved to console.h 2002-02-11 17:30:44 +00:00
uch b67fd34c0f HD64465 interrupt, uart, pcmcia modules 2002-02-11 17:27:15 +00:00
uch d310eb6303 MQ100 (HD64464) register, framebuffer offset define. 2002-02-11 17:25:00 +00:00
uch 400b507277 add more debug message 2002-02-11 17:22:39 +00:00
uch f27eb3ee07 add primitive serial console debug routine. 2002-02-11 17:21:48 +00:00
uch 12d7b235bc {} -> do {} (0) 2002-02-11 17:20:18 +00:00
uch c8a89ad160 KNF 2002-02-11 17:19:04 +00:00
uch c06011471e enable KLOADER, PIPE_SOCKETPAIR 2002-02-11 17:18:35 +00:00
uch b4156f9314 fix # of page directory entry. 2002-02-07 17:06:00 +00:00
uch 6b71166f4e add missing cache flush code. 2002-02-07 17:05:22 +00:00
uch d7868a7885 HITACHI HD64465 UART module register define. 2002-02-04 17:23:44 +00:00
uch 6edf1a4018 bootinfo.h, config_hook.h, platid.h are moved to hpc/include 2002-02-01 18:16:03 +00:00
uch 4202622d3c if PCLOCK isn't setted, use estimated value calculated by kernel. 2002-02-01 17:52:54 +00:00
uch ff91f975fc if RB_HALT is setted, don't load kernel. 2002-01-31 16:25:54 +00:00
uch 7d17099353 clean up debug print and configuration. 2002-01-29 18:53:01 +00:00
uch a312f31998 separate machine-independent part of kloader. 2002-01-29 18:44:22 +00:00
jdolecek 6d265bd894 add options PIPE_SOCKETPAIR to individual kernel configs
the option is commented out on everything but kernels I was able
to recognize as INSTALL-like or ones for small memory machines
2002-01-27 13:23:08 +00:00
uch 415a0562eb clean up debug print and configuration. 2002-01-27 05:15:35 +00:00
uch 4a61fd0786 add self kernel loader. 2002-01-27 05:14:33 +00:00
manu eb2b0c03da Added clockctl 2002-01-12 13:22:23 +00:00
martin b506d6e135 Add PPPoE to all generic kernels that should be able to use it.
XXX TODO: do this for INSTALL kernels too, add sysinst support and make the
XXX needed binaries available on the ramdisk root fs.
2001-12-28 12:21:52 +00:00
soren 875bff0962 To make dev/pcmcia work on platforms with 64-bit bus_addr_t and
32-bit bus_size_t (sparc), change the pcmcia_mem_map(9) offsetp
argument to bus_size_t as it is used as a bus_space offset.
2001-12-15 13:23:20 +00:00
gmcgarry bdd225baa1 Add a blurb to the top of all GENERIC files. This serves three purposes:
- to clarify some terminology
- to clarify the intention of the GENERIC file
- to cross-reference some useful man pages
2001-12-14 05:34:45 +00:00
atatat 52c50e165b Use more parentheses to make the compiler happy. 2001-12-05 22:16:30 +00:00
lukem ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem 71376e0797 use #ifdef MEMORY_DISK_DYNAMIC (for consistency with the rest of the kernel) 2001-11-28 05:55:34 +00:00
lukem 9cd50b3b95 use #if defined(x) instead of #if defined x 2001-11-28 05:47:37 +00:00
atatat 2bf2c362fb The bridge(4) pseudo-device no longer requires the port to
__HAVE_GENERIC_SOFT_INTERRUPTS, so add it back to all GENERIC configs.
2001-11-23 05:00:22 +00:00
lukem 0fa231134c - replace "defopt" with "defparam" for options which must take a value,
as config(8) will warn for value-less defparam options
- minor whitespace/formatting cleanup
- consolidate opt_tcp_recvspace.h and opt_tcp_sendspace.h into opt_tcp_space.h
2001-11-20 14:34:18 +00:00
lukem 03aef4723c cleanup:
options SPACE TAB
	makeoptions TAB
	psuedo-device TAB
	remove trailing whitespace
	replace multiple spaces -> tabs
	options "FOO" -> options FOO
	options "FOO=bar" -> options FOO=bar
	options "FOO=\"bar\"" -> options FOO="\"bar\""
2001-11-20 12:56:17 +00:00
augustss c5477b70aa The wsmux pseudo device does not need a count anymore. 2001-11-13 17:54:46 +00:00
msaitoh 32b3143333 Fix incorrect kernelmode check in INTRENTRY macro.
Broken INTRENTRY causes CPU reset when sigaltstack is used.
2001-10-27 03:46:19 +00:00
thorpej 9e91d48638 This file only set MACHINE, which is now set by config(8); delete it. 2001-10-23 19:52:49 +00:00
uch 3c8a8fb72e HITACHI PERSONA support. patch by KIYOHARA Takashi 2001-10-08 15:34:24 +00:00
uch a902597034 debug printf change. 2001-09-14 17:12:43 +00:00
uch a970042213 HITACHI PERSONA keyboard support. patch by KIYOHARA Takashi. 2001-09-14 17:11:51 +00:00
atatat 5f25c01eff Comment out bridge pseudo devices from ports that don't
__HAVE_GENERIC_SOFT_INTERRUPTS.  bridge(4) doesn't compile there.
2001-09-01 23:08:40 +00:00
atatat 97c67a9bae Add bridge pseudo devices to GENERIC configs 2001-09-01 21:52:23 +00:00
msaitoh e380d9806e devclass of sci[f] is tty 2001-08-22 13:32:45 +00:00
msaitoh 0756145b0f fix a ldtlb handling bug:
- set to PTE{H,L,A} and call LDTLB must do atomically.
 - never call LDTLB when it's unnecessary.

Broken kernel oocasionally causes cpu reset when /etc/security is called.
Now fix this problem.
2001-08-10 18:27:08 +00:00
jdolecek 74954dadf9 use unsigned variable types as appropriate 2001-08-05 18:07:51 +00:00
takemura 64b6b76a21 You must set 'HPCFB_SWAP_*' if bytes are stored in reverse order, i.e.
little endian like order, however, usage of 'HPCFB_SWAP_*' was widely
misunderstood because it reminded you of 'RI_BSWAP' in raster operation.
Please note that 'RI_BSWAP' indicate that frame buffer byte order is different
from natural order of system while 'HPCFB_REVORDER_*' is independent of
system byte order.
2001-07-22 09:56:39 +00:00
thorpej babefc5331 Add BUS_DMA_READ and BUS_DMA_WRITE flags, that hint the back-end
at dmamap load time that the mapping will be used for a unidirectional
transfer of the specified direction.
2001-07-19 15:32:10 +00:00
kanaoka 0158d481bd Add rnd, ppp and com* at pcmcia? function ?. 2001-07-14 17:02:57 +00:00
uch 9b3338a9fe add ukphy 2001-07-13 16:27:48 +00:00
uch e71868d339 cosmetic changes. 2001-07-13 16:21:39 +00:00
uch eb255ec7a8 fix interrupt, voltage supply bug of channel 1.
(patch by Masanori Kanaoka).
2001-07-13 16:14:29 +00:00
kanaoka 9a9ba5a896 Add ukphy. 2001-07-10 15:33:18 +00:00
uch 197743b640 remove unnecessary includes, initialize. 2001-07-09 18:18:25 +00:00
uch 4f4b4d40ed I forgot to commit. std.hpcsh.el -> std.hpcsh 2001-07-08 17:02:36 +00:00
uch 1a5b55dce9 dont' round up physical memory size. 2001-07-08 15:15:25 +00:00
uch b0b7628145 remove redundunt header include and function declaration.
(pointed by MAEKAWA Masahide.)
2001-07-08 10:42:37 +00:00
uch b92d40fcb6 std.hpcsh.el -> std.hpcsh (no big-endian WindowsCE)
add shl-elf_.x (for LEADING_UNDERSCORE ELF)
bcopy -> memcpy
2001-07-07 16:35:22 +00:00
uch 18d4a16bc4 #ifdef notyet power on/off sequence code. it doesn't work. 2001-07-04 18:08:01 +00:00
uch e9040f302e use MI md_root.c 2001-07-02 17:19:09 +00:00
uch 7ceb721a2a sample configuration for HP620LX 2001-06-28 19:07:13 +00:00