Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/usb/controller/ohci.c
Show First 20 Lines • Show All 2,377 Lines • ▼ Show 20 Lines | done: | ||||
return (err); | return (err); | ||||
} | } | ||||
static void | static void | ||||
ohci_xfer_setup(struct usb_setup_params *parm) | ohci_xfer_setup(struct usb_setup_params *parm) | ||||
{ | { | ||||
struct usb_page_search page_info; | struct usb_page_search page_info; | ||||
struct usb_page_cache *pc; | struct usb_page_cache *pc; | ||||
ohci_softc_t *sc; | |||||
struct usb_xfer *xfer; | struct usb_xfer *xfer; | ||||
void *last_obj; | void *last_obj; | ||||
uint32_t ntd; | uint32_t ntd; | ||||
uint32_t nitd; | uint32_t nitd; | ||||
uint32_t nqh; | uint32_t nqh; | ||||
uint32_t n; | uint32_t n; | ||||
sc = OHCI_BUS2SC(parm->udev->bus); | |||||
xfer = parm->curr_xfer; | xfer = parm->curr_xfer; | ||||
parm->hc_max_packet_size = 0x500; | parm->hc_max_packet_size = 0x500; | ||||
parm->hc_max_packet_count = 1; | parm->hc_max_packet_count = 1; | ||||
parm->hc_max_frame_size = OHCI_PAGE_SIZE; | parm->hc_max_frame_size = OHCI_PAGE_SIZE; | ||||
/* | /* | ||||
* calculate ntd and nqh | * calculate ntd and nqh | ||||
▲ Show 20 Lines • Show All 332 Lines • Show Last 20 Lines |