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: Subject: IOPCIDevice - Custom name?



Hi Greg,

I've just built a simple .kext driver for a PCI card.
It uses DeviceID/VendorID matching, no Name matching.

I can load it with kextload, but when I look into the
System Profiler,
my PCI device appears as pci1000,10.
I'd like to give it a custom firendly name from the
driver's code.
(maybe on ::start, before actually starting the
service)

How can I do this?

Thanx,
Greg


The name you have "pci1000,10" is a generic name. In general to give an add-in PCI device a friendly name you need to supply an FCode driver in the expansion ROM on your device. The FCode driver then sets the friendly name at boot time.

I'm guessing you don't want to do all that work :)

Your question is interesting. Note that since IOPCIDevice is a subclass of IORegistryEntry you should be able to use the setName method of IORegistryEntry to change the name.

Cheers,
--
J-Sun Seng
Networking & Communications / Hardware
Developer Technical Support
Apple Computer, Inc.
#1 Infinite Loop
M/S: 303-2T
Cupertino, CA 95014
_______________________________________________
darwin-drivers mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-drivers
Do not post admin requests to the list. They will be ignored.



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.