From: Kristian V. D. V. <va...@li...> - 2005-10-21 12:09:09
|
On Friday 21 October 2005 13:25, Steven Picken wrote: > I've finally got myself a new machine to run Syllable again, but it's > using a Marvell Yukon chipset, which isn't supported yet in Syllable. > Is there a set of pointers that you could give me about porting drivers > over from Linux, and I'll take a shot at it. The only real reference is the current ports, so you'll have to read some of them to get an idea of what needs to be changed. Most of the code will port without changes, although there are some modifications you'll need to make, including but not limited to: o Semaphore & Spinlock types and initialisation o skb management methods are different; there is no skb_put() function, but there is a macro in most lincomp.h headers that emulate it. o Slight differences in the IRQ handlers, and no top-half/bottom-half interupts. o Syllable will require it's own hardware detection routines; PCI access & device management is different in Syllable (Although the actual PCI read/write functions themselves are very similiar) A lot of the differences are hidden via. the header lincomp.h, which provides macros and wrappers for Linux functions that don't exist on Syllable. If you have any questions you can ask here, but the syllable-developer mailing lists may get you more/quicker responses. Good luck! -- Vanders http://www.syllable.org http://www.liqwyd.com |