Help!!!!
Help!!!!
- Subject: Help!!!!
- From: sandeep krishnamurthy <email@hidden>
- Date: Tue, 06 May 2003 06:56:43 +0000
hi
We have a Mac OS9 USB device driver for an modem and till now the Vendor
ID and product ID as part of the USBDriverDescription structure were
hardcoded. Now we want to provide the end-users with an option to be able
to change the VID/PID before installation. To do this we thought of the
following :
We planned to write the VID/PID provided by the end-user through an
application to be written into the resource file from where the driver
could pick up these values. But the problem is that, before the driver
matching is carried out by the USB manager there is no way we can invoke a
function from the driver to populate the USBDriverDescription structure,
which leaves us with no other option but to use an hardcoded
USBDriverDescription structure.
When we went through the USB DDK documentation, we could not find any
function which can be invoked in the driver before the matching phase is
over.
The same thing we are able to do in MacOSX in which the VID/PID
given by the end-user, through an application has been written into a plist
file, from where in the driver we are reading it from the init( ) routine.
In the start( ) routine, we are comparing the VID with the one we get from
the device descriptor and if they dont match, the driver is prevented from
being loaded.
We want to know,
(i) if there is a way in which we can dynamically populate the
USBDriverDescription structure during the matching phase
or
(ii) any function which can be invoked from the driver prior to the
matching phase that is carried out by the USB manager.
please CC all replies to me as i have not registered with the mailing list
yest.
Thanks ,
Sandeep Krishnamurthy
________________________________________________________________________
This letter has been delivered unencrypted. We'd like to remind you that
the full protection of e-mail correspondence is provided by S-mail
encryption mechanisms if only both, Sender and Recipient use S-mail.
Register at S-mail.com:
http://www.s-mail.com
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.