man pciconf(8) - it lets you set config space bits -Kip
2009/4/14 Zahemszky Gábor <ga...@zahemszky.hu>: > 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" > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org" > -- All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"