Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 2009 13:02:22 -0700
From:      Kip Macy <kmacy@freebsd.org>
To:        =?ISO-8859-1?Q?Zahemszky_G=E1bor?= <Gabor@zahemszky.hu>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Linux setpci equivalent in FreeBSD?
Message-ID:  <3c1674c90904141302l7dc5b77fub7db44f01f690f5d@mail.gmail.com>
In-Reply-To: <20090414192250.5b66db8c@Picasso.Zahemszky.HU>
References:  <20090414192250.5b66db8c@Picasso.Zahemszky.HU>

next in thread | previous in thread | raw e-mail | index | archive | help
man pciconf(8) - it lets you set config space bits

-Kip

2009/4/14 Zahemszky G=E1bor <Gabor@zahemszky.hu>:
> Hi!
>
> I'v found (well, mav@ found it) on a wiki page =A0(*) 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
>
> --
> #!/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"
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org=
"
>



--=20
All that is necessary for the triumph of evil is that good men do nothing.
    Edmund Burke



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