Allocate event ring, and event ring segment table with one entry, and write the address of table in ERSTBA.Set the R/S bit and wait for the controller not ready flag CNR to clear.Allocate a command ring and write its address in CRCR.allocate scratchpad buffers, write their addresses in an array, then write the address of that array in the 0th entry of the dcbaap.Allocate the device context base address register on a 64 byte aligned memory location and write that address to the dcbaap register.Set the maximum slots enabled in the config register to 16 (which is the max supported by my xHC).Reset the controller by writing 1 to the USBCMD.HCRST and wait for USBSTATUS.CONTROLLER_NOT_READY flag to clear.I am writing a driver for the xHCI and I have been having a problem with the address assignment.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |