/* * Store the basic register settings needed by the controller. */ static void configure_hc(struct uhci_hcd *uhci) { /* Set the frame length to the default: 1 ms exactly */ uhci_writeb(uhci, USBSOF_DEFAULT, USBSOF); /* Store the frame list base address */ uhci_writel(uhci, uhci->frame_dma_handle, USBFLBASEADD); /* Set the current frame number */ uhci_writew(uhci, uhci->frame_number & UHCI_MAX_SOF_NUMBER, USBFRNUM); /* perform any arch/bus specific configuration */ if (uhci->configure_hc) uhci->configure_hc(uhci); }
static void configure_hc(struct uhci_hcd *uhci) { /* */ uhci_writeb(uhci, USBSOF_DEFAULT, USBSOF); /* */ uhci_writel(uhci, uhci->frame_dma_handle, USBFLBASEADD); /* */ uhci_writew(uhci, uhci->frame_number & UHCI_MAX_SOF_NUMBER, USBFRNUM); /* */ if (uhci->configure_hc) uhci->configure_hc(uhci); }