FreeBSD/sys/dev/pci/pci.c
/* Perform early UHCI takeover from SMM. */
Perform early UHCI takeover from SMM.
Perform early UHCI takeover from SMM .
static void
uhci_early_takeover(device_t self)
{
	struct resource *res;
	int rid;
	pci_write_config(self, PCI_LEGSUP, PCI_LEGSUP_USBPIRQDEN, 2);
	rid = PCI_UHCI_BASE_REG;
	res = bus_alloc_resource_any(self, SYS_RES_IOPORT, &rid, RF_ACTIVE);
	if (res != NULL) {
		bus_write_2(res, UHCI_INTR, 0);
		bus_release_resource(self, SYS_RES_IOPORT, rid, res);
	}
}
static void uhci_early_takeover ( device_t self ) { struct resource * res ; int rid ; pci_write_config ( self , PCI_LEGSUP , PCI_LEGSUP_USBPIRQDEN , 2 ) ; rid = PCI_UHCI_BASE_REG ; res = bus_alloc_resource_any ( self , SYS_RES_IOPORT , & rid , RF_ACTIVE ) ; if ( res != NULL ) { bus_write_2 ( res , UHCI_INTR , 0 ) ; bus_release_resource ( self , SYS_RES_IOPORT , rid , res ) ; } }
Perform early UHCI takeover from SMM.
Perform early UHCI takeover from SMM .
/*
	 * Set the PIRQD enable bit and switch off all the others. We don't
	 * want legacy support to interfere with us XXX Does this also mean
	 * that the BIOS won't touch the keyboard anymore if it is connected
	 * to the ports of the root hub?
	 */ /* Disable interrupts */