Linux setpci equivalent in FreeBSD?

Zahemszky Gábor Gabor at Zahemszky.HU
Tue Apr 14 18:05:29 UTC 2009


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ábor at Zahemszky dot HU

(*) http://www.gentoo-wiki.info/Acer_Ferrari_4005WLMi#SDHCI

-- 
#!/bin/ksh
Z='21N16I25C25E30, 40M30E33E25T15U!';
IFS=' ABCDEFGHIJKLMNOPQRSTUVWXYZ ';
set -- $Z;for i;{ [[ $i = ? ]]&&print $i&&break;
[[ $i = ??? ]]&&j=$i&&i=${i%?};
typeset -i40 i=8#$i;print -n ${i#???};
[[ "$j" = ??? ]]&&print -n "${j#??} "&&j=;typeset +i i;};
IFS=' 0123456789 ';set -- $Z;for i;{ [[ $i = , ]]&&i=2;
[[ $i = ?? ]]||typeset -l i;j="$j $i";typeset +l i;};print "$j"


More information about the freebsd-hackers mailing list