Felix Tang wrote :
> Jean,
>  
>  Well, I've written the dongle driver. I just have a few questions
>  about the kernel and debugging.

        No problem.

>  1. How do you compile just irda without having to make all the modules? 

        On my box, make modules ; make modules_install only recompile
what's needed (of course it needs to go through all directories, but
it doesn't recompile the rest).

>  2. How are the order of IRDA_TASK_WAIT and IRDA_TASK_WAIT1 called? 

        In the order you want. Really.
        The only one that matters are IRDA_TASK_INIT (which is the
initial state) and IRDA_TASK_DONE (which indicate that you are
done). You use irda_task_next_state() to indicate which state you want
to be next, so you can control precisely how the state machine runs.
        Use "printk()" or "IRDA_DEBUG()" to write messages in the log
(read them via "dmesg").

>  3. It works... I think(irdadump can see two machines discoverying each
>  other). How do I make it change baud rates, so it runs above 9600? 

        First, your driver has to export to the IrDA stack that it
support something higher than 9600 (via qos->baud_rate.bits). Then, at
the time of the LAP connection, the stack will negociate the hishgest
speed for the duration of the connection, and come back to 9600 for
discovery.

>  4. I've currently modified girbil.c (to save trouble with make). How
>  should I go about adding it to the makefile?  

        Just cut'n'paste in Makefile and Config.in. Look in there,
it's actually not so complicated. Don't forget Config.in so that you
can enable it.

>  5. Is this something that should be added to irda for linux?

        Always. It doesn't cost much to add that to the kernel.
 
>  Thanks for encouraging me to write it. ;) Anyone wanna know how to make a
>  10 dollar (Canadian) SIR dongle... which is approximately 6.25 US?

        Yes, please. Many people should be interested.

>  Felix

        Have fun...

        Jean
_______________________________________________
Linux-IrDA mailing list  -  [EMAIL PROTECTED]
http://www.pasta.cs.UiT.No/mailman/listinfo/linux-irda

Reply via email to