FreeBSD/sys/dev/pci/pci.c
/* return log2 of map size decoded for memory or port map */
return log2 of map size decoded for memory or port map
return log2 of map size decoded for memory or port map
int
pci_mapsize(uint64_t testval)
{
	int ln2size;
	testval = pci_mapbase(testval);
	ln2size = 0;
	if (testval != 0) {
		while ((testval & 1) == 0)
		{
			ln2size++;
			testval >>= 1;
		}
	}
	return (ln2size);
}
int pci_mapsize ( uint64_t testval ) { int ln2size ; testval = pci_mapbase ( testval ) ; ln2size = 0 ; if ( testval != 0 ) { while ( ( testval & 1 ) == 0 ) { ln2size ++ ; testval >>= 1 ; } } return ( ln2size ) ; }
return log2 of map size decoded for memory or port map
return log2 of map size decoded for memory or port map