Date: Wed, 17 Aug 2005 14:26:06 +0200 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-usb@freebsd.org Subject: Re: usb hid atmel kit Message-ID: <200508171426.07588.hselasky@c2i.net> In-Reply-To: <430329BD.3090107@laposte.net> References: <4302F94D.7040607@laposte.net> <200508171319.59983.hselasky@c2i.net> <430329BD.3090107@laposte.net>
index | next in thread | previous in thread | raw e-mail
On Wednesday 17 August 2005 14:12, lepingouin.tux wrote:
> Hans Petter Selasky wrote:
> >On Wednesday 17 August 2005 10:46, lepingouin.tux wrote:
> >>Hi,
> >>
> >>I have the atmel developpement kit with at43usb355 microcontroler. This
> >>chip have a USB hub plus a programmable function.
> >>
> >>I programed this function to use the HID-class driver.
> >>
> >>Linux can see the usb-hid function :
> >> >usb 1-2: new full speed USB device using uhci_hcd and address 4
> >> >hub 1-2:1.0: USB hub found
> >> >hub 1-2:1.0: 3 ports detected
> >> >usb 1-2.1: new full speed USB device using uhci_hcd and address 5
> >> >hiddev96: USB HID v1.10 Device [crazy thing] on usb-0000:00:07.2-2.1
> >>
> >>But FreeBSD can see only the usb-hub, and don't see the hid-function
> >>
> >>>uhub1: Atmel product 0x3355, class 9/0, rev 1.10/1.17, addr 2
> >>>uhub1: 3 ports with 0 removable, bus powered
> >
> >Is your USB controller USB 2.0 capable. What does "dmesg |grep usb" show ?
> >
> >--HPS
>
> My usb controler is an OHCI controler :
>
> ohci0: <OHCI (generic) USB controller> mem 0xd1002000-0xd1002fff irq 15 at
> device 19.0 on pci0 usb0: OHCI version 1.0, legacy support
> usb0: SMM does not respond, resetting
> usb0: <OHCI (generic) USB controller> on ohci0
> usb0: USB revision 1.0
>
> fabien M
In the file "/sys/dev/usb/ohci.c" change the function "ohci_rhsc_enable" so
that it looks like shown below. Make sure that you get everything right.
void
ohci_rhsc_enable(void *v_sc)
{
ohci_softc_t *sc = v_sc;
int s;
s = splhardusb(); /* XXX has no effect on FreeBSD */
ohci_rhsc_able(sc, 1);
/* acknowledge any RHSC interrupt */
OWRITE4(sc, OHCI_INTERRUPT_STATUS, OHCI_RHSC);
ohci_rhsc(sc, sc->sc_intrxfer);
splx(s);
return;
}
If you are loading the USB module,
simply cd /sys/modules/usb; make clean all install clean
Else recompile the kernel.
Then reboot.
Does it change anything ?
--HPS
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200508171426.07588.hselasky>
