Subject: Import JMicron driver
To: None <email@example.com>
From: Pierrick Brossin <firstname.lastname@example.org>
Date: 12/12/2006 17:39:17
I am a newcomer to NetBSD kernel / drivers programming.
Since I need the JMicron driver in NetBSD I thought I'd do the job and
learn something new!
I hope I'm not writing to the wrong mailing list. If so please let me
know where I should ask for help (if it's possible to get some).
So. FreeBSD recognizes my JMicron controller as atapci. This seems to be
the generic driver with some add-ons for the JMicron controller support.
(I would have to make it available for ahcisata on NetBSD as well
I've started with things I've found by myself. That means, add the
vendor and product ids to the pcidevs file (will have to add more later
if I succeed to this import) and I then ran "make -f" as said at the top
of the file. That makes it nicer in dmesg:
ahcisata0 at pci4 dev 0 function 0: JMicron JMB363 controller
pciide0: JMicron JMB363 controller (rev. 0x02)
That's almost nothing but I tried to find how things work and I can't
seem to understand.
My idea (if it's the right way to go) is to create a jmicronide.c file
in /usr/src/sys/dev/pci/ to handle match and attach (and probably
more!). Is it correct ? (assuming the jmicron controller will not be
recognized as full device but will work through pciide)
Thanks for your time.
I'd really appreciate your help with this so I can try to port this to