rem: static int set_pci_mechanism(void)
add: set_pci_mechanism(void)
context: static int set_pci_mechanism(void){	uint32 ckval = 0x80000000;	/* Start by looking for the older and more limited mechanism 2	 * as the test will probably work for mechanism 1 as well.	 *	 * This code copied/adapted from OpenBSD	 */#define PCI_MODE2_ENABLE  0x0cf8#define PCI_MODE2_FORWARD 0x0cfa	out8(0, PCI_MODE2_ENABLE);	out8(0, PCI_MODE2_FORWARD);	if (in8(PCI_MODE2_ENABLE) == 0 && 	    in8(PCI_MODE2_FORWARD) == 0) {		dprintf("PCI_Mechanism 2 test passed\n");		bus_max_devices = 16;		pci_mode = 2;		return 0;	}	/* If we get here, the first test (for mechanism 2) failed, so there	 * is a good chance this one will pass. Basically enable then disable and	 * make sure we have the same values.	 */#define PCI_MODE1_ADDRESS 0x0cf8	out32(ckval, PCI_MODE1_ADDRESS);	if (in32(PCI_MODE1_ADDRESS) == ckval) {		out32(0, PCI_MODE1_ADDRESS);		if (in32(PCI_MODE1_ADDRESS) == 0) {			dprintf("PCI_Mechanism 1 test passed\n");			bus_max_devices = 32;			pci_mode = 1;			return 0;		}	}	dprintf("PCI: Failed to find a valid PCI Configuration Mechanism!\n"	        "PCI: disabled\n");	pci_mode = 0;	return -1;} 