Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: extension file!



Rachappa,

At 7:17 PM +0800 6/7/01, Rachappa Kolar wrote:

hi,

how can i create an extension file that loads the network driver for hardware( PCI adapter ) and using what tool ?
Is there any script for writing extension file ?

For a PCI Adapter, creating the file of type 'ndrv', creator 'cfrg' will cause the OT loader to load the driver for you, provided that the driver description record matches your device. Alternatively, if you want to become responsible for loading your own driver, then you can write a port scanner as discussed in the "OTAdvancedClientProg1.0b3" document and make the OTRegisterPort call yourself. The benefit for having the OT PCI scanner make this call if you is that it will make the OTRegisterPort call using private API's so that the driver can support multiple cards, instead of only one card - which is what happens if you register the port yourself.


What is the function of extension file? how can i create it?

It contains the driver as a shared library. An example of creating the driver is provided in the Apple Enet SDK with the DEC 21140 sample. You need to set the name of the driver specified in the driver description to the name property for the card. You also need to make sure that all of the symbols defined in the EnetDEC.exp file are exported.

ValidateHardware

InitStreamModule

TerminateStreamModule

GetOTInstallInfo

TheDriverDescription




what is a file with .r,.rsrc extension how are they creted ?

The .r file is a resource source file and holds the resources which your driver may require. The .rsrc file indicates is simply a resource file containing the rez'd resources. You can create this file using the MPW Rez tool.


with every (Ethernet)driver compiled using codewarrior is it necessary that an extension file has to written ?

For your purposes, the Mac OS identifies files by file type and creator. extensions are not used in the same way that they are under other OS. that's not to say that a Mac applcation might not use the extension to discriminate files. MS products do this, however, for your purposes, the extension is not required.


thanx and regards,
Rachappa


rich


References: 
 >extension file! (From: "Rachappa Kolar" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.