Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

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"


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090414192250.5b66db8c>