Commit Graph

568 Commits

Author SHA1 Message Date
cgd b63ed164a1 convert PRID handling to use macros on an int, not bit-fields.
there's no reason to use bit-fields, and they just complexity to
the header.
2000-07-27 17:29:05 +00:00
jeffs 05587c68ae Correct typo in comment. 2000-07-25 00:11:36 +00:00
takemura 733c04149a Experimental MQ200 video driver. It's just copy of bivideo plus power
management routine.
2000-07-22 08:53:33 +00:00
takemura d84cab3012 vrkiu_getc() will call over and over. but we want to see 'not implemented'
only once.
2000-07-22 08:26:00 +00:00
takemura db17c07fd3 mb_bus_space_init() had been removed accidentally when KGDB was supported.
It's need for initialize system_bus_iot.
2000-07-22 06:02:46 +00:00
takemura ecdd72f783 Overwrite color map of rasops. 2000-07-22 03:46:53 +00:00
jeffs 0e306bace6 kgdb support for the vr hpcmips machines.
From Ethan Solomita (ethan@geocast.com).
2000-07-20 21:03:36 +00:00
deberg 23f2392b19 don't define TAILQ_FOREACH, it's in sys/queue.h now. 2000-07-20 03:44:46 +00:00
jeffs 1dfa0ec96d Use cpu_intr() definition from mips/cpu.h instead of local one. 2000-07-14 18:35:38 +00:00
takemura 45b6ec5476 Experimental APM compatible power management. 2000-07-02 10:01:30 +00:00
itojun d738f90fd7 raise MSIZE from 128 to 256.
- for sizeof(void *) == 8 arch, this is mandatory.  MHLEN is too small
  already (less than 80) and there are chances for unwanted packet loss due
  to m_pullup restriction.
- for other cases, the change should avoid allocating clusters in most cases
  (even when you have IPv4 IPsec tunnel, or IPv6 with moderate amount of
  extension header)

portmasters: if your arch chokes with the change (high memory usage or
whatever), please backout the change for your arch.
2000-06-30 17:55:11 +00:00
itojun d76ae83df8 add PULLDOWN_TEST for all the platforms.
XXX should be moved to somewhere else when stabilized
2000-06-30 17:10:15 +00:00
shin 853a455109 enable SOFTDEP. 2000-06-29 11:42:30 +00:00
mrg 28d898391b remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-29 08:10:45 +00:00
kleink e695f72a2e Add <machine/int_types.h>, which provides namespace-pure definitions
of exact-width integer types.
2000-06-26 15:42:16 +00:00
mrg 2f159a1bac remove/move more mach vm header files:
<vm/pglist.h> -> <uvm/uvm_pglist.h>
	<vm/vm_inherit.h> -> <uvm/uvm_inherit.h>
	<vm/vm_kern.h> -> into <uvm/uvm_extern.h>
	<vm/vm_object.h> -> nothing
	<vm/vm_pager.h> -> into <uvm/uvm_pager.h>

also includes a bunch of <vm/vm_page.h> include removals (due to redudancy
with <vm/vm.h>), and a scattering of other similar headers.
2000-06-26 14:20:25 +00:00
simonb 889c658b5b Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes.  Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
fvdl 1ee7d22c0b Remove prefix construction for softdeps. Add SOFTDEP option to GENERIC. 2000-06-22 20:27:49 +00:00
shin 0e04419b62 for size reduction.
out:
	SCSIVERBOSE
	QUOTA
	ccd

we support CD-ROM drives, so CD9660 is necessary.
in:
	CD9660
2000-06-17 10:53:05 +00:00
veego 223d7455c7 Remove the obsolete config fragments for kernel crypto, because the IPsec
crypto code is now in the kernel source tree.
2000-06-14 22:02:13 +00:00
matt 0aa592b979 Add a table of calibrations. The MCR_500 one (640x240) makes the MCR_700A
(800x600) almost unusable.  Now the 700A has it's own.
2000-06-13 05:59:55 +00:00
matt e4a7ab9905 Add latent entry for ochi usb devices on NEC MobilePro 800. 2000-06-11 23:34:31 +00:00
soren d8e5d1fa7d Add rnd(4) glue for the MIPS3 cycle counter. 2000-06-06 02:24:00 +00:00
cgd cffb580806 Implement the more flexiable `evcnt' interface as discussed (briefly) on
tech-kern and now documented in evcnt(9).
2000-06-04 19:14:14 +00:00
takemura 1a710b9899 Bugfix and a little improvement for trouble shooting.
- BUGFIX: pbsdboot1 ignores Yes for 'Are you sure ?' dialog box.
  - display status which indicate how much loading sequence progress.
  - add debugging log function.
2000-06-04 04:30:48 +00:00
takemura f0e427d05a Add platid, VADEM CLIO C-1000 and C1050.
Note: CLIO C-1000 is identical with SHARP Tripad PV6000.
2000-06-03 08:00:42 +00:00
matt 9169d99f2a Don't pass booted_* to findroot/getdevice, access them via the globals.
Also, make findroot static.  This eliminates unneeded clearing of them
and make their use consistent among the ports.
2000-06-01 15:38:20 +00:00
matt c9aff328d9 Make booted_device global (and booted_parition for consitency).
Eliminate it from header files and other extern definitions.
2000-06-01 00:49:49 +00:00
cgd 47449a63d2 kill __P in these files. (I had to look at them anyway with an eye for
adding some protos... and adding them with __P seems wrong, but mixing
__P and not __P in the same file seems wrong too, so...)
2000-06-01 00:04:50 +00:00
thorpej a7d0570e67 First sweep at scheduler state cleanup. Collect MI scheduler
state into global and per-CPU scheduler state:

	- Global state: sched_qs (run queues), sched_whichqs (bitmap
	  of non-empty run queues), sched_slpque (sleep queues).
	  NOTE: These may collectively move into a struct schedstate
	  at some point in the future.

	- Per-CPU state, struct schedstate_percpu: spc_runtime
	  (time process on this CPU started running), spc_flags
	  (replaces struct proc's p_schedflags), and
	  spc_curpriority (usrpri of processes on this CPU).

	- Every platform must now supply a struct cpu_info and
	  a curcpu() macro.  Simplify existing cpu_info declarations
	  where appropriate.

	- All references to per-CPU scheduler state now made through
	  curcpu().  NOTE: this will likely be adjusted in the future
	  after further changes to struct proc are made.

Tested on i386 and Alpha.  Changes are mostly mechanical, but apologies
in advance if it doesn't compile on a particular platform.
2000-05-26 21:19:19 +00:00
uch 27a7fbff47 debug frame buffer draw routines moved to video_subr.c.
plumvideo also use it.
2000-05-22 17:17:44 +00:00
uch c70d727504 regen. 2000-05-22 15:05:37 +00:00
uch af2b106d9a Add SHARP Telios HC-VJ1C and Mobilon HC-4500 entries. 2000-05-22 15:03:46 +00:00
uch 817c8734c5 fix comment. 2000-05-22 07:40:41 +00:00
uch 7b768bd6e8 recognize 32MByte D-RAM. 2000-05-21 11:24:45 +00:00
uch 060197b367 Get LCD size from PLUM2 Display control register. 2000-05-21 11:22:25 +00:00
soren b70819c71a Also share BE ldscripts. 2000-05-21 02:50:10 +00:00
takemura 5e48883c49 Add NEC Mobile Pro 780/880 and Vadem Clio 1050. 2000-05-20 07:11:25 +00:00
takemura 6bef866101 Add two items:
NEC MobilePro 780 (MC/R530A)
  NEC MobilePro 880 (MC/R730A)
2000-05-20 05:08:53 +00:00
shin 405f83e99a fix platid_test source files. 2000-05-20 03:41:28 +00:00
sato 8bc2515577 fix CONFIG_HOOK_BUTTONEVENT_CANCEL keycode. 2000-05-18 03:27:22 +00:00
shin 5eacd822a1 delete undefined 'NEC_MCR_4XX'. 2000-05-17 08:38:25 +00:00
thorpej 463931b3ba Nuke dk_establish() from orbit except from those ports which still use
it to determine the boot device: mvme68k, pc532, macppc, ofppc.  Those
platforms should be changed to use device_register().  In the mean time,
those ports defined __BROKEN_DK_ESTABLISH.
2000-05-16 05:45:44 +00:00
sato ab17e681e7 NEC MC-CS LIGHT button.
NEC MC-R430 COM0 power.
CASIO E55 COM0 power.
CASIO E55 LIGHT button.
2000-05-15 01:40:44 +00:00
shin f26b6caddd clear CPU count register interrupt properly (VR4100). 2000-05-14 03:16:11 +00:00
uch f9b83f27e9 change Telios keyboard map: KS_KP_Enter -> KS_Return 2000-05-13 20:34:13 +00:00
uch 62923b307e fix #define RGB24(r, g, b) 2000-05-13 03:12:56 +00:00
uch f02836787f fix CLUT index bug. 2000-05-12 18:09:55 +00:00
shin e38d6212b9 make it compile again with '-Werror'. 2000-05-12 04:43:21 +00:00
uch 742429ff1e #undef'ed debug routine. 2000-05-10 23:57:13 +00:00
nisimura bd91f6f2e0 Adapt mips_locoresw[]. 2000-05-10 01:36:56 +00:00
shin 8587b62f36 call uvm_pageidlezero() while CPU is idle. 2000-05-09 13:23:57 +00:00
shin 2d39542769 deal with INT_MASK_REAL_DEV removal. 2000-05-09 13:20:55 +00:00
shin 51994cb450 make it compile again (add #include's). 2000-05-09 13:19:54 +00:00
uch 86d1ce5fd8 fix WSDISPLAYIO_PUTCMAP return value. 2000-05-09 10:15:17 +00:00
hubertf 9f48bba3ae Add "install" target, so "make install" after building the kernel
does something useful.  The target can be redefined by putting a
install-kernel-${MACHINE_NAME} target that fits your needs into
/etc/mk.conf.
2000-05-09 00:56:21 +00:00
thorpej 6a33c86623 HAVE_GCC28 -> HAVE_EGCS, and make it match gcc 2.9 as well. Also,
make the use of -Wno-uninitialized explicit, don't rely on a compiler
hack to do it for us.
2000-05-09 00:32:19 +00:00
uch 7ae9f5b5e9 -G 24 -> -G 20. TX3922 kernel became bigger. 2000-05-08 21:58:40 +00:00
uch cc01cd2448 implement 8bpp CLUT of Plum2, TX3912 video module. 2000-05-08 21:57:56 +00:00
uch e5ee37ffd9 add struct hpcfb_accessops to setclut method. TX3912 can't change
color map index (R:G:B = 3:3:2), so use this.
2000-05-08 21:56:32 +00:00
augustss 3a6e3a4670 Add (sometimes commented out) MIIVERBOSE option. 2000-05-08 13:49:44 +00:00
soren 95f3c9498d MIPS_INT_MASK_CLOCK and INT_MASK_REAL_DEV are deprecated. 2000-05-05 03:18:25 +00:00
takemura 9601a833c3 Remove wmipsdbg and wmipsrel as well as WMIPSDbg and WMIPSRel for
case sensitive file system.
2000-05-04 11:58:22 +00:00
takemura f056a711d7 Add some lines to support ATAPI and SCSI devices.
This makes the kernel 60KB bigger.
2000-05-04 10:32:47 +00:00
takemura d865561de6 Raw keyboard mode support. I'd tested this on MC/R530.
I don't sure if skbd work or not.
2000-05-04 10:25:45 +00:00
takemura fe8142f713 Raw keyboard mode support. I'd tested this on MC/R530.
I don't sure if skbd work or not.
2000-05-04 08:18:59 +00:00
takemura 33698fcc25 Mouse move event should be made before mouse bown event. Without that,
you may got a mouse down event in strange plase.
2000-05-04 06:14:05 +00:00
shin f077f10640 fix scancode -> keycode mappings:
MC-CS	arrow keys
	PV-6000	semicolon and apostrophe
2000-05-04 02:24:13 +00:00
uch 89cb6ad8b8 forgot to commit TX3912. 2000-05-02 18:00:54 +00:00
uch 3c873423e1 add ioctl, mmap.
hpcfb directly attach to tx3912video and plumvideo. (no longer use bivideo)
XXX CLUT
2000-05-02 17:50:51 +00:00
uch 9dccb575be change hpfcb_cnattach interface to adopt current implementation. 2000-05-02 17:45:15 +00:00
takemura 6bd45ff6c3 We should not report button down event while we don't know where it occur. 2000-05-01 07:40:05 +00:00
uch 77e7c7ee2c skbd_ioctl (not implemented yet) returns -1 not 0. 2000-04-30 18:43:37 +00:00
thorpej f51470a514 Require that each each MACHINE/MACHINE_ARCH supply a lock.h. This file
contains the values __SIMPLELOCK_LOCKED and __SIMPLELOCK_UNLOCKED, which
replace the old SIMPLELOCK_LOCKED and SIMPLELOCK_UNLOCKED.  These files
are also required to supply inline functions __cpu_simple_lock(),
__cpu_simple_lock_try(), and __cpu_simple_unlock() if locking is to be
supported on that platform (i.e. if MULTIPROCESSOR is defined in the
_KERNEL case).  Change these functions to take an int * (&alp->lock_data)
rather than the struct simplelock * itself.

These changes make it possible for userland to use the locking primitives
by including <machine/lock.h>.
2000-04-29 03:31:45 +00:00
shin e3d2f0ae85 delete obsolete 'options MIPS_16K_PAGE'. 2000-04-28 07:19:33 +00:00
uch e14885d915 fix comment. 2000-04-27 19:38:23 +00:00
uch f49b235cc0 remove COMPAT_386BSD_MBRPART
remove COMAPT_13, COMPAT_14. hpcmips appears NetBSD 1.5.
2000-04-25 06:20:14 +00:00
uch 6d1291a469 code clean up. 2000-04-24 13:02:13 +00:00
uch 814e39b9e3 add COMPAT_386BSD_MBRPART 2000-04-24 12:59:43 +00:00
uch 3be17707f3 remove #ifdef alpha 2000-04-24 12:58:32 +00:00
takemura 6d972981ff Support 8bpp mode on MC/R530. 2000-04-23 10:20:50 +00:00
itojun 3be41bae18 add stf pseudo interface (commented out due to possible security risks) 2000-04-19 06:50:27 +00:00
takemura 95e706c931 Don't call IsDlgMessage() if we are on Windows CE 2.01. 2000-04-16 03:17:59 +00:00
soda c56a43535d remove following symbols which became unnecessary in recent cpu_intr() change:
mips_hardware_intr
	MIPS3_INTERNAL_TIMER_INTERRUPT
	mips3_intr_cycle_count
	mips3_timer_delta
2000-04-15 22:05:51 +00:00
soda 94ee00e39d define `ssir' here, rather than misp/mips/trap.c (like other mips ports) 2000-04-15 22:02:26 +00:00
takemura 1572bc4bfd Make 'Boot' button to be default push button.
You can push return key to boot.
(But it does not work on Windows CE 1.0.)
2000-04-14 14:42:29 +00:00
takemura a3c99d2662 Dialog Box style key function. You can push space key to boot. 2000-04-12 15:07:34 +00:00
uch 441ca96c28 sync with new mips trap.c 2000-04-11 17:57:42 +00:00
nisimura dba7b560cd Load delay slot is automagically adjusted at runtime since MIPS II
architecture.
2000-04-11 04:39:14 +00:00
uch b16a6100aa comment out SOFTDEP
add upl, uvisor.
2000-04-10 17:44:06 +00:00
uch b6627b36a0 add rnd, IPV6 etc. 2000-04-09 14:14:50 +00:00
takemura f83087efc5 Add pseudo device 'rnd' for /dev/random. 2000-04-09 08:28:00 +00:00
takemura 2c13222ffc Delete needless #if. 2000-04-09 08:26:15 +00:00
soda 1c5551f260 splsoftnet() should block softclock() too. 2000-04-03 11:44:19 +00:00
sato 8bf945e9b3 push power button, send POWERCONTROL_LCD event. 2000-04-03 04:32:00 +00:00
sato 0f3ba7133a MCR-300, MC-CS LCD on/off port. 2000-04-03 04:31:05 +00:00
sato 126ead3471 add some events. 2000-04-03 03:48:42 +00:00
sato c1f0f12753 - hpcmips_verbose
- pbsdboot -v option
 - WIN I/O setting
 - vrisa IRQ GPIO mapping
 - memory banks.
2000-04-03 03:39:58 +00:00
sato 7782859d5b mips_hardware_intr is defined in <mips/intr.h> 2000-04-03 03:37:25 +00:00
sato 1e2f627e0b - virtual TEXT vram implimentation.
- optimize scroll.
- hardware accelerator hooking mechanism (initianly, maybe change..)
- multiscreen (some bugs, so currently disabled)
- if you want disable above codes, #define HPCFB_DISABLE.
2000-04-03 03:35:37 +00:00
augustss 9a31a8c77f Add atapibus* at umass? 2000-04-03 00:03:28 +00:00
takemura 9afabc7add Recompile binaries for Mobile Pro 700. 2000-04-01 02:37:23 +00:00
jun 657c5b4130 add Mobile Pro 700 2000-03-31 13:01:17 +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
jun c852fae661 add MobilePro700 2000-03-30 16:26:51 +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
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
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
mycroft b0a227745b Add IPsec. 2000-03-26 21:35:48 +00:00
uch 398dafb09a enable USB staff. 2000-03-25 19:05:45 +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
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
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
takemura 6e8bcbe821 Built in video supports get/set color map. 2000-03-20 12:45:41 +00:00
takemura 9a04280130 Change color map and share color map data with kernel part. 2000-03-20 10:47:33 +00:00
mycroft 18d0b53078 Need CD9660 now... 2000-03-20 06:10:45 +00:00
mycroft 04b6cd3a5d Add esp at pcmcia. 2000-03-19 21:56:11 +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
tron e86957458a Install "machineendian_machdep.h". 2000-03-17 22:36:31 +00:00
sato 2b251ae99b change about debug print. 2000-03-17 09:54:15 +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
mycroft 02905321b2 Foolish consistency. Mainly, always use underscores and sys/endian.h. 2000-03-16 15:09:34 +00:00
shin 6190c3253f add 'makeoptions CWARNFLAGS=""' to override CWARNFLAGS?= -Werror. 2000-03-16 01:45:51 +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
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
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
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