Date: Fri, 29 May 2020 05:48:18 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 204521] [new driver] [request] Port rtsx from OpenBSD to FreeBSD Message-ID: <bug-204521-227-Wl0wnnqEXc@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-204521-227@https.bugs.freebsd.org/bugzilla/> References: <bug-204521-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D204521 --- Comment #128 from Lyubomir <l.yotov@gmail.com> --- Thanks for the great work. I can confirm that it compiles and loads on: Lenovo T450 pciconf -lv rtsx0@pci0:2:0:0: class=3D0xff0000 card=3D0x503417aa chip=3D0x522710ec rev= =3D0x01 hdr=3D0x00 vendor =3D 'Realtek Semiconductor Co., Ltd.' device =3D 'RTS5227 PCI Express Card Reader' FreeBSD 12.1-RELEASE-p5 GENERIC amd64 I can also copy from and to the inserted card (2GB at the moment available). dmesg rtsx0: <Realtek RTS5227 PCI MMC/SD Card Reader> mem 0xf1100000-0xf1100fff i= rq 16 at device 0.0 on pci1 rtsx0: Card inserted/removed rtsx0: No request running mmc0: <MMC/SD bus> on rtsx0 mmcsd0: 32GB <SDHC USD00 0.2 SN 26157BA2 MFG 06/2016 by 156 SO> at mmc0 50.0MHz/4bit/256-block Here is the output from the compilation: t450:~/rtsx.git/trunk % make machine -> /usr/src/sys/amd64/include x86 -> /usr/src/sys/x86/include awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/device_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/kern/bus_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/pci/pci_if.m -h awk -f /usr/src/sys/tools/makeobjops.awk /usr/src/sys/dev/mmc/mmcbr_if.m -h Warning: Object directory not changed from original /usr/home/lyubd/rtsx.git/trunk cc "-ferror-limit=3D0" -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I/usr/src/sys -I/usr/src/sys/contrib/ck/include -fno-common=20 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -fdebug-prefix-map=3D./machine=3D/usr/src/sys/amd64/include -fdebug-prefix-map=3D./x86=3D/usr/src/sys/x86/include -MD -MF.depend.rts= x.o -MTrtsx.o -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-sse -msoft-float=20 -fno-asynchronous-unwind-tables -ffreestanding -fwrapv -fstack-protector -W= all -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wcast-qual -Wundef -Wno-pointer-sign -D__printf__=3D__freebsd_kprintf__ -Wmissing-include-dirs -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error-tautological-comp= are -Wno-error-empty-body -Wno-error-parentheses-equality -Wno-error-unused-function -Wno-error-pointer-sign -Wno-error-shift-negative-value -Wno-address-of-packed-member -mno-aes -mno-avx -std=3Diso9899:1999 -c rtsx.c -o rtsx.o rtsx.c:1180:1: warning: unused function 'rtsx_led_enable' [-Wunused-functio= n] rtsx_led_enable(struct rtsx_softc *sc) ^ rtsx.c:1199:1: warning: unused function 'rtsx_led_disable' [-Wunused-functi= on] rtsx_led_disable(struct rtsx_softc *sc) ^ 2 warnings generated. ld -m elf_x86_64_fbsd -d -warn-common --build-id=3Dsha1 -r -d -o rtsx.ko rt= sx.o :> export_syms awk -f /usr/src/sys/conf/kmod_syms.awk rtsx.ko export_syms | xargs -J% obj= copy % rtsx.ko objcopy --strip-debug rtsx.ko Regards, Lyubomir --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-204521-227-Wl0wnnqEXc>