Date: Tue, 14 Apr 2009 19:22:50 +0200 From: Zahemszky =?ISO-8859-2?Q?G=E1bor?= <Gabor@Zahemszky.HU> To: freebsd-hackers@freebsd.org Subject: Linux setpci equivalent in FreeBSD? Message-ID: <20090414192250.5b66db8c@Picasso.Zahemszky.HU>
next in thread | raw e-mail | index | archive | help
Hi! I'v found (well, mav@ found it) on a wiki page (*) a trick to use some TI sdhci cards. They use the setpci command, to set some bits in the HW. Are there any tool under FreeBSD to do the same? Thanks, G=E1bor at Zahemszky dot HU (*) http://www.gentoo-wiki.info/Acer_Ferrari_4005WLMi#SDHCI --=20 #!/bin/ksh Z=3D'21N16I25C25E30, 40M30E33E25T15U!'; IFS=3D' ABCDEFGHIJKLMNOPQRSTUVWXYZ '; set -- $Z;for i;{ [[ $i =3D ? ]]&&print $i&&break; [[ $i =3D ??? ]]&&j=3D$i&&i=3D${i%?}; typeset -i40 i=3D8#$i;print -n ${i#???}; [[ "$j" =3D ??? ]]&&print -n "${j#??} "&&j=3D;typeset +i i;}; IFS=3D' 0123456789 ';set -- $Z;for i;{ [[ $i =3D , ]]&&i=3D2; [[ $i =3D ?? ]]||typeset -l i;j=3D"$j $i";typeset +l i;};print "$j"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090414192250.5b66db8c>