wentao and clansdown:
i want to use sl811hs,and select it in kernel ,should i write 4 functions myself?? 1. char SL811Read (hci_t * hci, char offset) { hcipriv_t *hp = &hci->hp; char data; writeb (offset, hp->hcport); wmb (); data = readb (hp->hcport2); rmb (); return (data); } 2.void SL811Write (hci_t * hci, char offset, char data) 3.void SL811BufRead (hci_t * hci, short offset, char *buf, short size) 4.void SL811BufWrite (hci_t * hci, short offset, char *buf, short size)链接已复制
2 回复数
and when i build the kernel, here were some error:
error: `GPDR' undeclared (first use in this function)[/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux2.6.x/drivers/usb/host/hc_sl811.c] kernel_0416 line 1229 error: `GPIO_RISING_EDGE' undeclared (first use in this function)[/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/usb/host/hc_sl811.c] kernel_0416 line 1230 error: (Each undeclared identifier is reported only once[/cygdrive/d/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x/drivers/usb/host/hc_sl811.c] kernel_0416 line 1229 i find "GPIO_RISING_EDGE"and "GPDR" in sl811hs.c , but the program never defined them. why???From what I gather from wentao, this driver takes a lot of work and is a dead end anyway because it's been superceded by the sl811-hcd driver from mainline 2.6.10. See the other thread for a basic idea of the steps to get that driver working.
