View Single Post
Old 06-17-2011, 05:13 PM   #3
denverh
Enthusiast
denverh began at the beginning.
 
Posts: 25
Karma: 10
Join Date: May 2011
Device: prs-650
Thanks Kovid, that helps. The existing port detects and identifies readers without any problem. However, they don't get mounted, and of course no data is transferred. From your description of the process, the failure is in the open(). I've created a new open_freebsd() that will get used instead of falling through all the checks in open(). I've figured out a lot of what open_linux() is doing, but parts of it are still puzzles.

One piece of the puzzle that I'm still missing is where the vendor ID, product ID, etc. is kept. How do I get to that information from my open_freebsd()?

I also want to verify that all open_freebsd() needs to do is verify the device node, or nodes, against product & vendor IDs (or perhaps just S/N?), mount the device node, or nodes, and publish that by setting main_prefix, card_a_prefix, and card_b_prefix appropriately. Is there anything else that open_freebsd() needs to do?

And one last thing: you mentioned that there's more information available about the detected reader than vendor/product IDs and S/N. Is any of the rest of that information important to what I'm doing with open_freebsd()?


Thanks again,

Denver
denverh is offline   Reply With Quote