FreeBSD/sys/boot/ficl/loader.c
/*
 * pcibios-read-config (locator offset width -- value)
 *
 * Reads the specified config register.
 * Locator is bus << 8 | device << 3 | fuction
 * offset is the pci config register
 * width is 0 for byte, 1 for word, 2 for dword
 * value is the value to read from the register
 */
pcibios-read-config (locator offset width -- value)
Reads the specified config register.
Locator is bus << 8 | device << 3 | fuction
offset is the pci config register
width is 0 for byte, 1 for word, 2 for dword
value is the value to read from the register
pcibios - read - config ( locator offset width -- value ) Reads the specified config register . Locator is bus << 8 | device << 3 | fuction offset is the pci config register width is 0 for byte 1 for word 2 for dword value is the value to read from the register
static void
ficlPciBiosReadConfig(FICL_VM *pVM)
{
	uint32_t value, width, offset, locator;
	width = stackPopINT(pVM->pStack);
	offset = stackPopINT(pVM->pStack);
	locator = stackPopINT(pVM->pStack);
	biospci_read_config(locator, offset, width, &value);
	stackPushINT(pVM->pStack, value);
}
static void ficlPciBiosReadConfig ( FICL_VM * pVM ) { uint32_t value , width , offset , locator ; width = stackPopINT ( pVM -> pStack ) ; offset = stackPopINT ( pVM -> pStack ) ; locator = stackPopINT ( pVM -> pStack ) ; biospci_read_config ( locator , offset , width , & value ) ; stackPushINT ( pVM -> pStack , value ) ; }
pcibios-read-config (locator offset width -- value)
 Reads the specified config register.
pcibios - read - config ( locator offset width -- value ) Reads the specified config register .