Subject: Re: Compaq 2010C serial port
To: None <avf@ox.compsoc.net>
From: UCHIYAMA Yasushi <uch@vnop.net>
List: port-hpcmips
Date: 07/02/2004 02:51:56
sys/arch/hpcmips/conf/TX3912 mistaked iochip configuration.
attached patch for 2010 and my test machine log.
thank you.

Index: TX3912
===================================================================
RCS file: /cvsroot/src/sys/arch/hpcmips/conf/TX3912,v
retrieving revision 1.50
diff -u -r1.50 TX3912
--- TX3912	15 Apr 2004 14:58:30 -0000	1.50
+++ TX3912	1 Jul 2004 17:39:24 -0000
@@ -112,8 +112,8 @@
 
 # IO module manager (virtual bridge) DO NOT DELETE
 txioman* at txsim?
-# iochip 0 TX39 internal IO
-#	 1 TX39 internal MFIO
+# iochip 0 TX39 internal MFIO
+#	 1 TX39 internal IO
 #	 2 BETTY IO
 #	(3 ITE IO notyet)
 # edge  0 no interrupt.
@@ -122,35 +122,35 @@
 # edge  3 both edge
 # initial ... set initial state (on/off)
 hpcioman3 at txioman? platform COMPAQ_C_2010
-hpcout*	at hpcioman3 iochip 1 evtype POWER  id PWCTL_LED	port 3  initvalue 0
-hpcin*	at hpcioman3 iochip 0 evtype BUTTON id BTN_REC		port 6  edge 1
-hpcin*	at hpcioman3 iochip 0 evtype BUTTON id BTN_APP0		port 5  edge 1
-hpcin*	at hpcioman3 iochip 1 evtype EVENT  id PME_AC		port 28 edge 1
-hpcin*	at hpcioman3 iochip 1 evtype EVENT  id COM0_DCD		port 30 edge 3
-hpcin*	at hpcioman3 iochip 1 evtype EVENT  id COM0_CTS		port 5  edge 3
-hpcout*	at hpcioman3 iochip 1 evtype SET    id COM0_DTR		port 31
-hpcout*	at hpcioman3 iochip 1 evtype SET    id COM0_RTS		port 6
+hpcout*	at hpcioman3 iochip 0 evtype POWER  id PWCTL_LED	port 3  initvalue 0
+hpcin*	at hpcioman3 iochip 1 evtype BUTTON id BTN_REC		port 6  edge 1
+hpcin*	at hpcioman3 iochip 1 evtype BUTTON id BTN_APP0		port 5  edge 1
+hpcin*	at hpcioman3 iochip 0 evtype EVENT  id PME_AC		port 28 edge 1
+hpcin*	at hpcioman3 iochip 0 evtype EVENT  id COM0_DCD		port 30 edge 3
+hpcin*	at hpcioman3 iochip 0 evtype EVENT  id COM0_CTS		port 5  edge 3
+hpcout*	at hpcioman3 iochip 0 evtype SET    id COM0_DTR		port 31
+hpcout*	at hpcioman3 iochip 0 evtype SET    id COM0_RTS		port 6





--------HPCBOOT--------
MemoryManager: VirtualCopy
FileManager: UFS
[0] 0x04000000 size 0x04000000
GetVersionEx
Windows CE 2.1
GetSystemInfo:
wProcessorArchitecture      0x1
dwPageSize                  0x1000
dwAllocationGranularity     0x00010000
dwProcessorType             0xfa0
wProcessorLevel             0x3
wProcessorRevision          0x2210
Display: 640x240 8bpp
TX39
open file "netbsd" (2637941 byte).
Loader: ELF
file size: +0x222ca0+[(symbol block: header 952 symbol 96688 string 85913 byte) 
= 0x2cd01] = 0x24fd01 byte
address translation table 608 pages.(4864 byte)
allocated 608 page. mapped 608 page.
2nd bootloader vaddr=0x002ff000 paddr=0x04f00000
2nd bootloader copy done.
[1] vaddr 0x80001000 file size 0x222ca0 mem size 0x28ea28
        ->load 0x80001000+0x0028ea28=0x8028fa28 ofs=0x00001000+0x222ca0
[zero clear] ->0x80223ca0+0x0006bd88=0x8028fa28
        ->load 0x8028fa28+0x000003b8=0x8028fde0
        ->load 0x8028fde0+0x000179b0=0x802a7790 ofs=0x0025772c+0x179b0
        ->load 0x802a7790+0x00014f99=0x802bc729 ofs=0x0026f0dc+0x14f99
load link 596 zero clear link 1.
kernel entry address: 0x80001000
framebuffer: 640x240 type=3 linebytes=0 addr=0x00000000
console = 2
jump to 0x84f00000 (info=0x84f01000, pvec=0x8616a000)
mem_cluster_cnt = 3
mem_clusters[0] = {0x0,0x2e5000}
mem_clusters[1] = {0x2e5000,0xd1b000}
mem_clusters[2] = {0x2000000,0x400000}
loading 0x2e5000,0xd1b000
loading 0x2000000,0x400000
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0F (TX3912) #0: Thu Jul  1 23:56:48 JST 2004
        uch@alexandrite:/work/cvsrep/src/sys/arch/hpcmips/compile/TX3912
Compaq C 2010 (TOSHIBA TMPR3912 73.69 MHz)
total memory = 20480 KB
avail memory = 16740 KB
mainbus0 (root)
cpu0 at mainbus0: Toshiba TX3912 CPU (0x2210) Rev. 1.0 with software emulated fl
oating point
cpu0: 4KB/16B direct-mapped Instruction cache, 32 TLB entries
cpu0: 1KB/4B 2-way set-associative write-through Data cache
txsim0 at mainbus0
tx39icu0 at txsim0
tx39power0 at txsim0
tx39clock0 at txsim0
tx39io0 at txsim0
--------------------------------------------------------------
         Debounce Direction DataOut DataIn PowerDown Select
--------------------------------------------------------------
IO    6:    On       In        0       1     Active    -
IO    5:    On       In        0       1     Active    -
IO    4:    Off      In        0       0     Active    -
IO    3:    Off      Out       0       0     Active    -
IO    2:    Off      Out       0       0     Active    -
IO    1:    Off      In        0       1     Active    -
IO    0:    Off      In        0       0     Active    -
--------------------------------------------------------------
MFIO 31:     -       Out       0       0     Active  MFIO(CHIFS)
MFIO 30:     -       In        0       0     Active  MFIO(CHICLK)
MFIO 29:     -       In        0       0     Active  MFIO(CHIDOUT)
MFIO 28:     -       In        0       1     Active  MFIO(CHIDIN)
MFIO 27:     -       In        0       1     Active  MFIO(DREQ)
MFIO 26:     -       Out       1       1     Active  MFIO(DGRINT)
MFIO 25:     -       Out       1       1     Active  MFIO(BC32K)
MFIO 24:     -       Out       1       0     Active  TXD
MFIO 23:     -       In        0       1     Active  RXD
MFIO 22:     -       Out       1       1     Down    CS1
MFIO 21:     -       Out       1       1     Active  CS2
MFIO 20:     -       Out       1       1     Active  CS3
MFIO 19:     -       Out       0       0     Down    MFIO(MCS0)
MFIO 18:     -       Out       1       1     Down    MFIO(MCS1)
MFIO 17:     -       Out       1       1     Active  MFIO(MCS2)
MFIO 16:     -       Out       0       0     Active  MFIO(MCS3)
MFIO 15:     -       Out       0       1     Down    SPICLK
MFIO 14:     -       Out       0       0     Down    SPIOUT
MFIO 13:     -       In        0       0     Active  SPIN
MFIO 12:     -       Out       0       0     Active  MFIO(SIBMCLK)
MFIO 11:     -       Out       1       1     Active  CARDREG
MFIO 10:     -       Out       1       1     Active  CARDIOWR
MFIO  9:     -       Out       1       1     Active  CARDIORD
MFIO  8:     -       Out       1       1     Active  CARD1CSL
MFIO  7:     -       Out       1       1     Active  CARD1CSH
MFIO  6:     -       Out       0       0     Active  MFIO(CARD2CSL)
MFIO  5:     -       In        0       0     Active  MFIO(CARD2CSH)
MFIO  4:     -       In        0       1     Active  CARD1WAIT
MFIO  3:     -       Out       1       1     Active  MFIO(CARD2WAIT)
MFIO  2:     -       In        0       0     Active  MFIO(CARDDIR)
MFIO  1:     -       In        0       0     Active  MFIO(MFIO[1])
MFIO  0:     -       In        0       1     Active  MFIO(MFIO[0])
--------------------------------------------------------------
IO i0x00000062 o0x00000000 MFIO i0x1ef68f99 o0x07760f88
tx39sib0 at txsim0: 9.216 MHz
ucb0 at tx39sib0 slot 0: PHILIPS UCB1200
ucbtp0 at ucb0: calibrated
wsmouse0 at ucbtp0 mux 0
ucbsnd0 at ucb0: audio 22.153 kHz telecom 7.200 kHz
ucbio0 at ucb0
tx39biu0 at txsim0
WatchDogTimerRate: 27us
tx3912video0 at txsim0: 8bit color, frame buffer 0x002bd000-0x002e2800
tx3912video0: OFF
hpcfb0 at tx3912video0
wsdisplay0 at hpcfb0 kbdmux 1
wsmux1: connecting to wsdisplay0
hpcfb: 640x240 pixels, 256 colors, 80x24 chars
hpcfb: 640x240 pixels, 256 colors, 80x24 chars
hpcfb: 640x240 pixels, 256 colors, 80x24 chars
hpcfb: 640x240 pixels, 256 colors, 80x24 chars
wsdisplay0: screen 0-3 added (std, vt100 emulation)
txioman0 at txsim0
tx39uart0 at txsim0
txcom0 at tx39uart0 slot 0: console
txcom1 at tx39uart0 slot 1
tx39ir0 at txcom1
txcsbus3 at tx39biu0
it8368e0 at txcsbus3 regcs CS2 16bit 0+0x20 iocs CARD1(io/attr) 16bit 0+0x400000
0 irq1 98(3:2) irq2 168(5:8) irq3 98(3:2)
it8368e0: fix attr mode
pcmcia0 at it8368e0
pcmcia0: CIS version PCMCIA 2.0 or 2.1
pcmcia0: CIS info: SunDisk, SDP, 5/3 0.6
pcmcia0: Manufacturer code 0x45, product 0x401
pcmcia0: function 0: fixed disk(ata), ccr addr 200 mask f
pcmcia0: function 0, config table entry 0: memory card; irq mask 0; memspace 0-7
ff; maxtwins 1; mwait_required rdybsy_active powerdown
pcmcia0: function 0, config table entry 1: I/O card; irq mask ffff; iomask 4, io
space 0-f; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqshare irqpulse 
irqlevel powerdown
pcmcia0: function 0, config table entry 2: I/O card; irq mask 4000; iomask a, io
space 1f0-1f7 3f6-3f7; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqsha
re irqpulse irqlevel powerdown
pcmcia0: function 0, config table entry 3: I/O card; irq mask 4000; iomask a, io
space 170-177 376-377; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqsha
re irqpulse irqlevel powerdown
pcmcia0: function 0, config table entry 7: I/O card; irq mask 4000; iomask a, io
space 170-177 376-377; memspace 0-7ff; maxtwins 1; rdybsy_active io8 io16 irqsha
re irqpulse irqlevel powerdown
wdc0 at pcmcia0 function 0
atabus0 at wdc0 channel 0
tc5165buf0 at txcsbus3 iocs CS3 16bit 0+0x100: polling mode
hpckbd0 at tc5165buf0
wskbd0 at hpckbd0 mux 1
wskbd0: connecting to wsdisplay0
hpcioman3 at txioman0
hpcin0 at hpcioman3 iochip IO, port 6, type 4, id 12, interrupt edge [p]
hpcin1 at hpcioman3 iochip IO, port 5, type 4, id 16, interrupt edge [p]
hpcin2 at hpcioman3 iochip MFIO, port 28, type 2, id 4, interrupt edge [p]
hpcin3 at hpcioman3 iochip MFIO, port 30, type 2, id 36, interrupt edge [pn]
hpcin4 at hpcioman3 iochip MFIO, port 5, type 2, id 32, interrupt edge [pn]
hpcout0 at hpcioman3 iochip MFIO, port 3, type 3, id 26, initial value 0
mfio_out: port #3
hpcout1 at hpcioman3 iochip MFIO, port 31, type 2, id 44, interrupt edge [pn]
hpcout2 at hpcioman3 iochip MFIO, port 6, type 2, id 40, interrupt edge [pn]
btnmgr0 at mainbus0
wskbd1 at btnmgr0 mux 1
wskbd1: connecting to wsdisplay0
hpcapm0 at mainbus0: pseudo power management module
apmdev0 at hpcapm0: Power Management spec V1.2
wd0 at atabus0 drive 0: <SunDisk SDP3B-440>
wd0: drive supports 1-sector PIO transfers, LBA addressing
wd0: 419 MB, 853 cyl, 16 head, 63 sec, 512 bytes/sect x 859824 sectors
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying msdos...
mountroot: trying nfs...
mountroot: trying ffs...
readclock: 4/7/1/17/34/1=>1088703241 (1088703140)
root file system type: ffs
init: copying out path `/sbin/init' 11
hpcout_hook: port 31: on
mfio_out: port #31
Fri Jul  2 02:34:05 JST 2004
swapctl: adding /dev/wd0b as swap device at priority 0
Checking for botched superblock upgrades: done.
Starting file system checks:
/dev/rwd0a: file system is clean; not checking
Setting tty flags.
Setting sysctl variables:
Starting network.
Hostname: lilith
IPv6 mode: host
Configuring network interfaces:.
Building databases...
Starting syslogd.
Checking for core dump...
savecore: no core dump
Mounting all filesystems...
Clearing /tmp.
Checking quotas: done.
Setting securelevel: kern.securelevel: 0 -> 1
Starting virecover.
Starting local daemons:.
Updating motd.
Starting inetd.
Starting cron.
Fri Jul  2 02:35:09 JST 2004
hpcout_hook: port 31: on
mfio_out: port #31

NetBSD/hpcmips (lilith) (console)

login: root
Jul  2 02:35:18 lilith login: ROOT LOGIN (root) ON console
Jul  2 02:35:18 lilith login: ROOT LOGIN (root) ON console
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 2.0F (TX3912) #0: Thu Jul 1 23:56:48 JST 2004

Welcome to NetBSD!

Terminal type is vt100.                                                 
We recommend creating a non-root account and using su(1) for root access.
lilith# tx391x_io_in: port #5
hpcin_intr: type=4, id=16
done.
Jul  2 02:35:25 lilith /netbsd: tx391x_io_in: port #5
Jul  2 02:35:25 lilith /netbsd: hpcin_intr: type=4, id=16
Jul  2 02:35:25 lilith /netbsd: done.
tx391x_io_in: port #6
hpcin_intr: type=4, id=12
done.
Jul  2 02:35:27 lilith /netbsd: tx391x_io_in: port #6
Jul  2 02:35:28 lilith /netbsd: hpcin_intr: type=4, id=12
Jul  2 02:35:28 lilith /netbsd: done.
hpcapm: suspend req
Jul  2 02:35:38 lilith /netbsd: hpcapm: suspend req
hpcapm: set power state SUSPEND...
tx3912video0: OFF
tx39power0: CPU sleep
tx39power0: CPU wakeup
hpcapm: resume
Jul  2 02:35:40 lilith /netbsd: hpcapm: set power state SUSPEND...
Jul  2 02:35:40 lilith /netbsd: tx3912video0: OFF
Jul  2 02:35:40 lilith /netbsd: tx39power0: CPU sleep
Jul  2 02:35:40 lilith /netbsd: tx39power0: CPU wakeup
Jul  2 02:35:40 lilith /netbsd: hpcapm: resume
readclock: 4/7/1/17/35/44=>1088703344 (1088703341)
Jul  2 02:35:44 lilith /netbsd: readclock: 4/7/1/17/35/44=>1088703344 (108870334