FreeBSD/sys/boot/ficl/loader.c
/*
 * pcibios-write-config (locator offset width value -- )
 *
 * Writes 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 write
 */
pcibios-write-config (locator offset width value -- )
Writes 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 write
pcibios - write - config ( locator offset width value -- ) Writes 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 write
static void
ficlPciBiosWriteConfig(FICL_VM *pVM)
{
	uint32_t value, width, offset, locator;
	value = stackPopINT(pVM->pStack);
	width = stackPopINT(pVM->pStack);
	offset = stackPopINT(pVM->pStack);
	locator = stackPopINT(pVM->pStack);
	biospci_write_config(locator, offset, width, value);
}
static void ficlPciBiosWriteConfig ( FICL_VM * pVM ) { uint32_t value , width , offset , locator ; value = stackPopINT ( pVM -> pStack ) ; width = stackPopINT ( pVM -> pStack ) ; offset = stackPopINT ( pVM -> pStack ) ; locator = stackPopINT ( pVM -> pStack ) ; biospci_write_config ( locator , offset , width , value ) ; }
pcibios-write-config (locator offset width value -- )
 Writes the specified config register.
pcibios - write - config ( locator offset width value -- ) Writes the specified config register .