puc(4): [WIP] TXIC TX382B UART controller support (2)

2021-05-29 Thread SASANO Takayoshi
/* do nothing */ + break; + } com_attach_subr(sc); } -- SASANO Takayoshi (JG1UAA)

(re) [PATCH] src/libexec/ftpd: fix nlist with -option does not work

2020-01-11 Thread SASANO Takayoshi
ping On Mon, 18 Nov 2019 14:56:46 +0900, SASANO Takayoshi wrote: > > Hello, > > At least OpenBSD-6.5 and 6.6's ftpd does not work NLIST command with any > -option like this. > > > ftp> nlist > 150 Opening ASCII mode data connection for 'file list'. >

[PATCH] src/libexec/ftpd: fix nlist with -option does not work

2019-11-17 Thread SASANO Takayoshi
retrieve(RET_NLIST, dirname); goto out; } perror_reply(550, whichf); -- SASANO Takayoshi (JG1UAA)

ehci(4): split interrupt transfer fix

2019-01-18 Thread SASANO Takayoshi
tole32( EHCI_QH_SET_HUBA(hshubaddr) | EHCI_QH_SET_PORT(hshubport) | - EHCI_QH_SET_CMASK(0x1c) /* XXX */ + EHCI_QH_SET_CMASK(0xe0) ); } sqh->qh.qh_curqtd = htole32(EHCI_LINK_TERMINATE); -- SASANO Takayoshi (JG1UAA)

ehci(4): interrupt transfer fix

2019-01-06 Thread SASANO Takayoshi
if (xfertype != UE_ISOCHRONOUS) { -- SASANO Takayoshi (JG1UAA)

ugl(4): maintenance

2018-03-06 Thread SASANO Takayoshi
(>if_snd, m_head); + ifq_deq_rollback(>if_snd, m_head); ifq_set_oactive(>if_snd); return; } @@ -655,9 +654,9 @@ ugl_init(void *xsc) } ifp->if_flags |= IFF_RUNNING; - splx(s); - ifq_clr_oactive(>if_snd); + + splx(s);

[patch] puc(4) add ASIX AX99100 support

2017-08-04 Thread SASANO Takayoshi
dev 0 function 3 "ASIX AX99100" rev 0x00: ports: 1 com com7 at puc3 port 0 apic 5 int 16: st16650, 32 byte fifo ok? -- SASANO Takayoshi (JG1UAA) <u...@mx5.nisiq.net> Index: pcidevs === RCS file: /cvs/src/sy

puc(4): serial console, UART's address != PCI-BAR

2016-08-23 Thread SASANO Takayoshi
pings[i].t = comconsiot; - sc->sc_bar_mappings[i].h = comconsioh; - sc->sc_bar_mappings[i].s = COM_NPORTS; + sc->sc_bar_mappings[i].s = size; sc->sc_bar_mappings[i].mapped = 1; continue; } Regards, -- SASANO Takayoshi <u...@mx5.nisiq.net>

puc(4): [WIP] TXIC TX382B UART controller support

2016-03-19 Thread SASANO Takayoshi
s written in Chinese, use Google Translate. Regards, -- SASANO Takayoshi <u...@mx5.nisiq.net> Index: pcidevs === RCS file: /cvs/src/sys/dev/pci/pcidevs,v retrieving revision 1.1790 diff -u -p -r1.1790 pcidevs --- pcidevs

Re: puc(4): [WIP] TXIC TX382B UART controller support

2016-03-19 Thread SASANO Takayoshi
th of Tx/Rx FIFO, it uses MCR_LOOPBACK to enter loopback mode. I found TX382B does not loopback with setting MCR_LOOPBACK, and this cause com_fifo_probe() detects no FIFO. It is difficult to write a special code to com.c, I think TX382B should work without Tx/Rx FIFO. There is other good and cheap UART

pciide(4): cannot boot -current on 86duino EduCake

2015-10-06 Thread SASANO Takayoshi
mp; RDCIDE_PATR_EN(channel)) == 0) { printf("%s: %s ignored (disabled)\n", sc->sc_wdcdev.sc_dev.dv_xname, cp->name); + cp->hw_ok = 0; continue; } pciide_map_compat_intr(pa, cp, channel, interface); -- SASANO Takayoshi <u...@mx5.nisiq.net>

uslhcom(4) driver for USB HID based UART

2015-01-02 Thread SASANO Takayoshi
Hello, Here is the driver for Silicon Labs CP2110 USB HID based UART. It called uhidcom(4) and now renamed to uslhcom(4). Now working on -current. -- SASANO Takayoshi u...@mx5.nisiq.net Index: arch/i386/conf/GENERIC === RCS file

[WIP] uhidcom(4) driver for USB HID based UART

2014-12-17 Thread SASANO Takayoshi
), but currently it is not supported --- too expensive to buy evaluation board. -- SASANO Takayoshi u...@mx5.nisiq.net Index: arch/i386/conf/GENERIC === RCS file: /cvs/src/sys/arch/i386/conf/GENERIC,v retrieving revision 1.792 diff -u -p -u -p

Re: [WIP] uhidcom(4) driver for USB HID based UART

2014-12-17 Thread SASANO Takayoshi
At Wed, 17 Dec 2014 22:43:40 +1100, Jonathan Gray wrote: On Wed, Dec 17, 2014 at 07:49:59PM +0900, SASANO Takayoshi wrote: Hi, I am trying to write a driver for Silicon Labs CP2110 USB HID based UART. Here is work-in-progress code, and it seems to set uca.uhidev properly. (I wrote

Re: uslcom(4): fix for CP2110 USB HID-UART misdetection

2014-11-23 Thread SASANO Takayoshi
Hi, At Wed, 19 Nov 2014 10:56:15 +0100, Martin Pieuchot wrote: On 18/11/14(Tue) 05:25, SASANO Takayoshi wrote: Hi all, I bought Silicon Labs CP2110-EK USB HID-to-UART evaluation kit and connected to OpenBSD box. uslcom(4) tries to use CP2110, but the device is different from

uslcom(4): fix for CP2110 USB HID-UART misdetection

2014-11-17 Thread SASANO Takayoshi
=19 Regards, -- SASANO Takayoshi u...@mx5.nisiq.net

Re: armv7: banana pi, Allwinner A20 board

2014-10-18 Thread SASANO Takayoshi
THIS WITHOUT INCLUDING THAT INFORMATION! ddbabd I think sxiuartcngetc() have no problem and something makes worse. Do I have to check page table (memory attribute of ARMv7 MMU) when running UKC? -- SASANO Takayoshi u...@mx5.nisiq.net

Re: armv7: banana pi, Allwinner A20 board

2014-10-09 Thread SASANO Takayoshi
Hello, Here is the log of new image. Booting with -c option, UKC still hangs up. I hope the log helps debugging. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net U-Boot SPL 2014.04-10694-g2ae8b32-dirty (Oct 01 2014 - 17:40:04) Board: Bananapi DRAM: 1024 MiB CPU: 96000Hz, AXI/AHB/APB: 3/2

Re: armv7: banana pi, Allwinner A20 board

2014-10-07 Thread SASANO Takayoshi
2.0 uhub1 at usb1 Allwinner EHCI root hub rev 2.00/1.00 addr 1 (hang-up) -- SASANO Takayoshi u...@mx5.nisiq.net

Re: armv7: banana pi, Allwinner A20 board

2014-10-07 Thread SASANO Takayoshi
rights reserved. Copyright (c) 1995-2014 OpenBSD. All rights reserved. http://www.OpenBSD.org User Kernel Config UKC -- SASANO Takayoshi u...@mx5.nisiq.net

Re: armv7: banana pi, Allwinner A20 board

2014-10-05 Thread SASANO Takayoshi
=20140501232036142 it is written in Japanese but maybe good hint) Regards, -- SASANO Takayoshi u...@mx5.nisiq.net [case 1] U-Boot SPL 2014.04-10694-g2ae8b32-dirty (Oct 01 2014 - 17:40:04) Board: Bananapi DRAM: 1024 MiB CPU: 96000Hz, AXI/AHB/APB: 3/2/2 spl: not an uImage at 1600 U-Boot

Re: armv7: banana pi, Allwinner A20 board

2014-10-03 Thread SASANO Takayoshi
? -- SASANO Takayoshi u...@mx5.nisiq.net

armv7: banana pi, Allwinner A20 board

2014-10-02 Thread SASANO Takayoshi
what is happening. What can I do for solving this problem? -- SASANO Takayoshi u...@mx5.nisiq.net [uEnv.txt] mmcboot=mmc rescan; fatload mmc 0 0x6000 bsd.umg bootm 0x6000; bootargs=sd0a:/bsd; uenvcmd=run mmcboot; [1st try - hang up

Re: armv7: banana pi, Allwinner A20 board

2014-10-02 Thread SASANO Takayoshi
Hi, Try this[1] kernel and have a look if it has the same issue or not. Kernel did not started... U-Boot says checksum is ok, so maybe .umg file is not corrupted. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net U-Boot SPL 2014.04-10694-g2ae8b32-dirty (Oct 01 2014 - 17:40:04) Board

[patch] puc(4) add Winchiphead CH382 support

2014-09-22 Thread SASANO Takayoshi
fifo I referred the following pages: http://www.spinics.net/lists/linux-serial/msg11744.html http://kent-vandervelden.blogspot.jp/2014/08/linux-parallel-port-cards.html Can I commit? Regards, -- SASANO Takayoshi u...@mx5.nisiq.net Index: pucdata.c

add Winchiphead CH382 PCIe-UART to pcidevs

2014-09-21 Thread SASANO Takayoshi
Hello, Here is Nanjing QinHeng Electronics (Winchiphead)'s CH382 PCIe-UART controller's PCI vendor/device ID. Chinese Datasheet can be obtained from http://www.wch.cn/downloads/downfile.php?id=140 Can I commit? Regards, -- SASANO Takayoshi u...@mx5.nisiq.net Index: pcidevs

pciide(4): port NetBSD's rdcide(4)

2014-07-13 Thread SASANO Takayoshi
, but poor performance boost because CPU is too slow... 109min - 101min :-(. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net Index: pciide.c === RCS file: /cvs/src/sys/dev/pci/pciide.c,v retrieving revision 1.345 diff -u -p -r1.345

pcidevs: add devices for Vortex86EX SoC

2014-07-09 Thread SASANO Takayoshi
-product RDC R6061_EHCI 0x6061 R6061 USB +product RDC R6060_OHCI 0x6060 R6060 USB OHCI +product RDC R6061_EHCI 0x6061 R6061 USB EHCI /* Realtek products */ product REALTEK RTS52090x5209 RTS5209 Card Reader -- SASANO Takayoshi u...@mx5.nisiq.net

uchcom(4) did not work

2014-05-13 Thread SASANO Takayoshi
Hello, Recently I bought Arduino board which uses Nanjing QinHeng (WinChipHead) CH340T USB-UART bridge via eBay, and I found uchcom(4) did not work. At misc@, other user reported similar problem. [1] The uchcom(4) comes from NetBSD and it seems to be worked at that time. I found that

Re: uchcom(4) did not work

2014-05-13 Thread SASANO Takayoshi
/function of UCHCOM_REG_LCR1 has been changed, and generated results are doubtful. So I use Linux's magic numbers. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net

Re: uchcom(4) did not work

2014-05-13 Thread SASANO Takayoshi
Hi, Simply magic values are rewrited with #define. If these values need to be disassembled, please take a while... SASANO Takayoshi u...@mx5.nisiq.net Index: uchcom.c === RCS file: /cvs/src/sys/dev/usb/uchcom.c,v retrieving

umodem.c: debug message fix

2014-04-30 Thread SASANO Takayoshi
Hello, I found some debug messages need to be fixed in sys/dev/usb/umodem.c. Can I commit the diff? SASANO Takayoshi u...@mx5.nisiq.net Index: umodem.c === RCS file: /cvs/src/sys/dev/usb/umodem.c,v retrieving revision 1.55

Re: azalia(4): RIRB DMA engine needs delay after started

2014-02-25 Thread SASANO Takayoshi
Hi, Thanks, here is a slightly reworked diff that does the wait in a way that's more in line with other bits of azalia(4) that wait for a bit in a register to go on or off. Okay, there is no problem with my 86duino EduCake. Thanks. -- SASANO Takayoshi u...@mx5.nisiq.net

Re: azalia(4): RIRB DMA engine needs delay after started

2014-02-25 Thread SASANO Takayoshi
Hello, This can wait til after 5.5, but I made the diff since I was looking at the code. ok by sasano@, it works on my 86duino EduCake! SASANO Takayoshi u...@mx5.nisiq.net

azalia(4): RIRB DMA engine needs delay after started

2014-02-24 Thread SASANO Takayoshi
. (Vortex86EX's CORB DMA did not required any delay. It starts immediately.) Here is the patch to add delay. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net Index: azalia.c === RCS file: /cvs/src/sys/dev/pci/azalia.c,v retrieving revision 1.209

udav(4): add CoreChip RD9700 support

2014-01-21 Thread SASANO Takayoshi
for this problem. Comments or ok? Regards, -- SASANO Takayoshi u...@mx5.nisiq.net Index: if_udav.c === RCS file: /cvs/src/sys/dev/usb/if_udav.c,v retrieving revision 1.64 diff -u -p -r1.64 if_udav.c --- if_udav.c 15 Nov 2013 10:17:39 -

ugl(4): self-dv_unit fix (Re: cdce(4): sc-cdce_unit)

2013-12-05 Thread SASANO Takayoshi
Hello, if_ugl.c has similar issue, and I think this should be fixed. ok to commit? SASANO Takayoshi u...@mx5.nisiq.net Index: if_ugl.c === RCS file: /cvs/src/sys/dev/usb/if_ugl.c,v retrieving revision 1.2 diff -u -p -r1.2

Re: Genesys Logic GL620USB-A, USB PC-to-PC link cable (take 2)

2013-12-03 Thread SASANO Takayoshi
Hello, jca@ privately advised that I should write my own copyright to describe who modified the code. I am planning to add notice like if_axe.c and sent the diff to him but there is no answer (too busy?). So I ask here. Is there any good solution? Thanks, SASANO Takayoshi u...@mx5

cdce(4): sc-cdce_unit

2013-12-03 Thread SASANO Takayoshi
-cdce_unit = self-dv_unit; sc-cdce_udev = uaa-device; sc-cdce_ctl_iface = uaa-iface; id = usbd_get_interface_descriptor(sc-cdce_ctl_iface); And, sc-sc_unit of sys/dev/usb/if_cdcef.c seems to have save problem. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net

Re: Genesys Logic GL620USB-A, USB PC-to-PC link cable (take 2)

2013-11-16 Thread SASANO Takayoshi
8 -- SASANO Takayoshi u...@mx5.nisiq.net

Re: Genesys Logic GL620USB-A, USB PC-to-PC link cable (take 2)

2013-11-15 Thread SASANO Takayoshi
Hello, I committed ugl(4) driver to source tree. The driver is derived from upl(4) driver, so licence is NetBSD. Thanks. -- SASANO Takayoshi u...@mx5.nisiq.net At Fri, 15 Nov 2013 10:56:37 +0100, Martin Pieuchot wrote: On 14/11/13(Thu) 17:44, Brad Smith wrote: On 14/11/13 3:29 PM, SASANO

Genesys Logic GL620USB-A, USB PC-to-PC link cable (take 2)

2013-11-14 Thread SASANO Takayoshi
notice --- NetBSD or OpenBSD. if_ugl.c is based on if_upl.c, and if_upl.c has NetBSD's one. Regards, -- SASANO Takayoshi u...@mx5.nisiq.net Index: arch/alpha/conf/GENERIC === RCS file: /cvs/src/sys/arch/alpha/conf/GENERIC,v retrieving

Genesys Logic GL620USB-A, USB PC-to-PC link cable

2013-10-25 Thread SASANO Takayoshi
://circuithijacker.blogspot.jp/2007/02/usb-host-to-host-cables-with-slax-linux.html [2] http://www.linux-usb.org/usbnet/ Best regards, -- SASANO Takayoshi u...@mx5.nisiq.net

[PATCH] uthum(4) calibration message fix

2013-09-26 Thread SASANO Takayoshi
SASANO Takayoshi u...@mx5.nisiq.net Index: uthum.c === RCS file: /cvs/src/sys/dev/usb/uthum.c,v retrieving revision 1.23 diff -u -p -r1.23 uthum.c --- uthum.c 8 May 2013 08:26:25 - 1.23 +++ uthum.c 26 Sep 2013 20:28:12

Re: [NEW] ugold(4) driver for Microdia's USB TEMPer variant (take 3)

2013-09-05 Thread SASANO Takayoshi
, +.Xr sysctl 8 -- SASANO Takayoshi u...@mx5.nisiq.net

[NEW] ugold(4) driver for Microdia's USB TEMPer variant (take 3)

2013-09-04 Thread SASANO Takayoshi
Hi all, Here is the driver for Microdia's USB TEMPer, take 3. http://www.uaa.org.uk/gomitext/2013/20130905/20130905.diff Thanks to mpi@ and testers of tech@. man is not yet, sorry. Regards, SASANO Takayoshi u...@mx5.nisiq.net

[NEW] ugold(4) driver for Microdia's USB TEMPer variant (take 2)

2013-05-12 Thread SASANO Takayoshi
* at uhidev? into GENERIC for alpha, amd64, armish, hppa, i386, landisk, loongson, macppc, sgi (IP27, IP30, IP32), socppc and sparc64. Regards, SASANO Takayoshi u...@mx5.nisiq.net

Re: [NEW] ugold(4) driver for Microdia's USB TEMPer variant

2013-05-02 Thread SASANO Takayoshi
*/ +sc-sc_num_sensors = sc-sc_ibuf[1]; How can you be sure sc_ibuf contains the data you asked for? Well, sanity check will be required. Cheers, -- SASANO Takayoshi u...@mx5.nisiq.net

[NEW] ugold(4) driver for Microdia's USB TEMPer variant

2013-03-31 Thread SASANO Takayoshi
) and already use Microdia's-variant-patched uthum(4) driver, revert original uthum(4). ok or comments, please. Cheers, -- SASANO Takayoshi u...@mx5.nisiq.net

Re: uthum(4): Microdia's USB TEMPer variant

2013-03-26 Thread SASANO Takayoshi
Hello, Luis. Now I am rewriting a driver for Microdia's USB TEMPer with advices from yuo@ and deraadt@. Please wait a while and thank you for trying my patch. Thanks. -- SASANO Takayoshi u...@mx5.nisiq.net

uthum(4): Microdia's USB TEMPer variant

2013-03-16 Thread SASANO Takayoshi
-wip.diff Thanks, SASANO Takayoshi u...@mx5.nisiq.net

[patch] puc(4) add I-O DATA RSA-PCI2 support

2012-07-11 Thread SASANO Takayoshi
, */ { PCI_VENDOR_OXFORD2, PCI_PRODUCT_OXFORD2_OX16PCI954, 0, 0 }, By the way, does someone know how to use over 230400bps? I cannot find B460800 and B921600 in termios.h. Regards, SASANO Takayoshi u...@mx5.nisiq.net

diff: fix waiting problem on AMD Hudson's AHCI (Re: AMD APU report)

2012-04-12 Thread SASANO Takayoshi
, + NULL, ahci_ati_sb700_attach }, { PCI_VENDOR_ATI, PCI_PRODUCT_ATI_SB600_SATA, NULL, ahci_ati_sb600_attach }, SASANO Takayoshi u...@mx5.nisiq.net, sas...@cvs.openbsd.org

Re: X Intel driver update. [TESTING NEEDED]

2011-09-14 Thread SASANO Takayoshi
-5 added (80x25, vt100 emulation) intagp0 at vga1 agp0 at intagp0: aperture at 0xd000, size 0x1000 inteldrm0 at vga1: apic 4 int 16 drm0 at inteldrm0 Intel G41 Video rev 0x03 at pci0 dev 2 function 1 not configured SASANO Takayoshi u...@mx5.nisiq.net

Re: amd64: Phenom 9x00's TLB errata warning

2010-11-09 Thread SASANO Takayoshi
Oops, try again... At Tue, 09 Nov 2010 20:48:37 +0900, SASANO Takayoshi wrote: Hello, Phenom 9500 has TLB errata and this should be workarounded by BIOS. But some BIOS do nothing by default, I think the warning is needed. Here is the patch, please review. -- amd64errata.c

amd64: Phenom 9x00's TLB errata warning

2010-11-09 Thread SASANO Takayoshi
, 1.17 and 1.18 specialreg.h - add definitions for amd64errata.c - modified NB_CFG_DISIOREQLOCK and DC_CFG_DIS_CNV_WC_SSO, they are misdefined (see src/sys/arch/x86/include/specialreg.h of NetBSD, revision 1.48 and 1.49) -- SASANO Takayoshi (JG1UAA/@uaa) [http