Linking PCI device names and drivers

Hi Everyone,
I have a PCI device with a class code of "ethernet" so the name
created in the device tree is eg:
"/pci@1f,0/pci@1/ethernet@3"
I can run add_drv and attach my driver to this just fine.
But what if I had another PCI ethernet card from a different
vendor but still with a class code of "ethernet"? How would I
get one driver associated with one device and a second driver
the other? I've run add_drv with -i 'pciXXXX,X' but the
name in the device tree is still "ethernet" and therefore this
is what shows up in /etc/path_to_inst?
My attach routine will check the vendor id and device id of
the device and will fail the attach call for the "wrong"
device. If I then add_drv the second driver for the second
card, I see entries in /etc/path_to_inst with two drivers for each
"ethernet" device. Will this cause problems in the long run?
Thanks!
Janice

Hi
First of all the IEEE 1275 PCI Bus Binding ( which can be found at
http://playground.sun.com) clearly states that "ethernet" is one
of the "Generic Names" listed in this manual. See portion of this
document below.
a) In collections of OS drivers, avoid the use of generic names for
the drivers themselves. For example, it is generally unwise to name a
driver ethernet, since there are many different ethernet adapters with
different programming models. Using the generic name ethernet to
identify only one such driver is presumptuous.
You may go through one of these dicsussions to get more info on setting
the "compatible property" through the driver.conf file.
You may already be familiar with most of it,but it clarifies how
a Sun system differentiates between the onboard hme card and the
add on SunSwift card. Although they both use the same driver, you
can create different driver.conf files when the drivers are different
and use the compatible property field to identify the proper driver.
To Configure Driver Parameters With PCI-bus Based Systems
1.Obtain the hardware path name for the device in the device tree.
Typically this path name and the associated instance number will be
present in the /etc/path_to_inst file. For example, on a Sun Ultra 30
UPA/PCI system in which one SunSwift-PCI card is plugged in, the
/etc/path_to_inst file will have the following two entries (in
addition to entries for other devices):
"/pci@1f,4000/network@1,1" 0 "hme"
"/pci@1f,4000/pci@4/SUNW,hme@0,1" 1 "hme"
The first entry corresponds to the hme device on the motherboard.
The second entry corresponds to the hme device on the SunSwift-PCI
card.
In the previous lines:
The first part within the double quotes specifies the hardware node
name in the device tree.
The second number is the instance number.
The last part in double quotes is the driver name.
In the device path name, the last component after the last / character
and before the @ character is the device name.
The path name before the last component is the parent name.
The comma-separated numbers after the @ character at the end
represent the device and function numbers, which are together referred
to as unit-address.
To identify a PCI device unambiguously in the hme.conf file, use the
name, parent name, and the unit-address for the device. Refer to the
pci(4) man page for more information about the PCI device specs.
In the first line of the previous example:
Name = network
Parent = /pci@1f,4000
Unit-address = 1,1
In the second line in the previous example:
Name = SUNW,hme
Parent = /pci@1f,4000/pci@4
Unit-address = 0,1
2.Set the ipg1 and ipg2 parameters for the above two devices in the
/kernel/drv/hme.conf file:
name = "SUNW,hme" parent = "/pci@1f,4000" unit-address = "1,1" ipg1=10
ipg2=5;
name = "SUNW,hme" parent = "/pci@1f,4000/pci@4" unit-address = "0,1"
ipg1=20 ipg2=10;
Note that for the motherboard device, the SUNW,hme device is used even
though the path name uses the name network. The SUNW,hme device name
is the value of the compatible property for this device.
HTH
Shridhar

Similar Messages

  • No Device Name and Port in UserTracking Report for Ipphones

    Hello,
    I'm having problems with Usertracking to IpPhones. The report provides information of usertracking IPPhone number, CCM Address, MAC, etc.. But the information in "Device Name" and "Port" (which would be connected) do not appear.
    The CCM normally appear in Topology Services, and reports Usertracking EndHosts to operate normally, even in the same switches that the phones are connected.
    Thanks

    What version of Campus Manager are you running ?
    What version of the Call Manager do you have ?
    What kind of IP Phone is this ?
    Post screenshot of the problem re-run data collection and UT .  Ensure that you don't have any filters in place and all subnets are included.
    Do an snmpwalk from the CiscoWorks LMS server to the Cisco Call Manager and see if you can poll those values from the cli and let us know the results using the "ccmPhoneTable"  ?
    Get the ut.log and ani.log with neccesary debugs enabled for phones.

  • How to remove the link between Profile name and corp net account after their disassociation

    Hi there,
      How do I  remove the link between Profile name and corp net account after their disassociation ?
    I would like to make remove the link between 'Viv Lingaiah' and
    [email protected] Also, I would like to keep 'Viv Lingaiah' and associate with my outlook id and corpnet account.

    Logon to your live account here
    https://account.live.com/summarypage.aspx then under aliases you can add an alias and promote it to primary.
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • IPhoto won't recognize my iPhone 3Gs.  just says there's an apple iPhone, instead of the device name, and says there are no files to download, but there are 62 items on my phone... what's going on?

    iPhoto won't recognize my iPhone 3Gs.  just says there's an "apple iPhone" instead of the device name, and says there are no files to download, but there are 62 items on my phone... what's going on?  as far as I can tell I have everything up to date and it's always worked in the past.

    Have you already confirmed your Mac as a trusted device?  Try this:
    Lauch iTunes.
    Connect the Phone/iPad
    When it asks you to trust it, say yes.
    Now try again to import.

  • How to map zfs iostat device name and sar -d device name ?

    Hi,
    In order to measure the disk performances or bottlenecks, we need to map the disk devices name from zpool iostat -v and the sar -d output ?
    Is there a way to map the 2 device names ?
    Rgds

    "/usr/bin/iostat -xpnCXMmz [interval] [count]" would be much easier to use, quicker, and requires no further work on your part.
    Otherwise you'll have to convert the MPXIO device back to the underlying physical devices and from that to their equivalent sd device, then lookup those devices in your sar output. It's doable, but not quick or easy to do:
    1) Identify the devices
    # luxadm probe
    2) For each Node WWN listed in "luxadm probe" run:
    # luxadm display WWN
    3) Grep the WWN in /etc/path_to_inst to get the ssd number
    Example:
    --- luxadm probe ---
    No Network Array enclosures found in /dev/es
    Found Fibre Channel device(s):
      Node WWN:5000097408039c00  Device Type:Disk device
        Logical Path:/dev/rdsk/c8t5000097408039D10d0s2
        Logical Path:/dev/rdsk/c10t5000097408039D21d0s2
        Logical Path:/dev/rdsk/c16t5000097408039D18d0s2
        Logical Path:/dev/rdsk/c18t5000097408039D29d0s2
    --- end ---
    --- luxadm display ---
    DEVICE PROPERTIES for disk: 5000097408039c00
      Vendor:               EMC    
      Product ID:           SYMMETRIX      
      Revision:             5874
      Serial Num:           6002310A4000
      Unformatted capacity:  2.812 MBytes
      Read Cache:           Enabled
        Minimum prefetch:   0x0
        Maximum prefetch:   0xffff
      Device Type:          Disk device
      Path(s):
      /dev/rdsk/c8t5000097408039D10d0s2
      /devices/pci@2,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d10,0:c,raw
        LUN path port WWN:          5000097408039d10
        Host controller port WWN:   21000024ff201482
        Path status:                O.K.
      /dev/rdsk/c10t5000097408039D21d0s2
      /devices/pci@6,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d21,0:c,raw
        LUN path port WWN:          5000097408039d21
        Host controller port WWN:   21000024ff201462
        Path status:                O.K.
      /dev/rdsk/c16t5000097408039D18d0s2
      /devices/pci@22,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d18,0:c,raw
        LUN path port WWN:          5000097408039d18
        Host controller port WWN:   21000024ff2014ce
        Path status:                O.K.
      /dev/rdsk/c18t5000097408039D29d0s2
      /devices/pci@26,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d29,0:c,raw
        LUN path port WWN:          5000097408039d29
        Host controller port WWN:   21000024ff20149e
        Path status:                O.K.
      (...snip...)
    --- end ---
    $ grep -i "5000097408039d21,0" ../etc/path_to_inst
    "/pci@6,600000/SUNW,qlc@0/fp@0,0/ssd@w5000097408039d21,0" 179 "ssd"So you now have your [s]sd number, 179 in this example, and your target number, 0.
    Repeat for the rest of your devices and you'll have a look up table you can refer to.

  • LMS 4.2 Fault Monitor - Device Name and Frequency of Events

    Hi all,
    I've just installed LMS 4.2, like it a lot so far.  But I'm running into a few problems, and I'm hoping someone out here has a suggestion. 
    In the Fault Monitor, the Device Name column shows the device's IP address rather than the host name.  We need for it to show the host name, for ease of troubleshooting; most folks don't have the IP addresses memorized.    Likewise, when an email is sent out for an event, the managed device field also shows up as the device's IP address.
    The devices were all discovered with their IP addresses rather than a host name...should LMS have automatically found their host names?  Regardless, I manually updated all of the device's host names, yet they still display as an IP address in the fault monitor. 
    Also, it appears I need to figure out some way to throttle alerts.  One particular device will report an event (ie a temperature out of range) dozens of times in a polling period...several per second, even though it's the same alert.  Any suggestions on where I can throttle this?  My inbox is exploding.                  
    If anyone has any ideas, I would appreciate it!
    Jen

    I am having the IP vs. device name issue as well. The funny thing is if you hover over the IP of the device in Fault Monitor, you can see the device name listed. I was on a conference call with Cisco recently and pointed this out. One of the reps said the faults and alerts showing IP address issue should be fixed in version 4.2.3, but I don't know if he was basing this on first-hand knowledge or was just assuming. Does anyone know if this is the case?
    As for throttling alerts. I had a false positive alert from a device that I put in a custom fault group and changed the threshold on to keep them from firing. You probably have already resolved this issue, but I didn't see a resolution listed here. You would have to determine if raising a threshold for a device is adequate for your situation.
    Thank you,
    Mark

  • Link between PDS name and resource

    Hi folks,
    I've established a link between /SAPAPO/TRPROD and Setup Matrices using PDS name and resource to use in a custom extractor for BI. This works well starting out at /SAPAPO/TRPROD and working my way over to the Setup Matrix tables using function modules BAPI_PDSSRVAPS_GETLIST and BAPI_RSSRVAPS_GETLIST.
    Now I want to validate that it's correct that I'm getting 0 results in a test system. Since /SAPAPO/TRPROD has some 3000 entries and /SAPAPO/SET_MID only 2, I figured it'd be easier if I take those two matrices and see if I can link them back to /SAPAPO/TRPROD (where I won't get any results). Does this make sense so far?
    Moving on ... I've found that in table /SAPAPO/RES_HEAD I can find the resource associated with a Setup Matrix. I can't figure out though how to link the resources to the PDS. Any ideas?

    Hi Jan!
    You say that you want to link the resources with the PDS, right? Do you mean that you want to find a way to discover the resource associated with the PDS activities? If so, you can do that by reading the activity information of the PDS and getting the resource maintained there...
    But I don't fully understand your business requirement... So let me know if I got your issue wrong.
    Will

  • Powertop reporting 100% PCI device usage, and poor battery life

    I have Arch running on an HP Pavillion g4-1200tx laptop with these specs:
    2.2 GHz Intel Core i3-2330M 3 MB L3 cache
    4 GB 1333 MHz DDR3 Memory
    AMD Radeon HD 6470M (1 GB DDR3 dedicated)
    A vanilla install of Arch eats up the battery at around 28 watts.
    After doing some power tweaks, mainly
    Installing and configuring tlp
    Activating the i915_enable_rc6
    Disabling the discrete GPU with vgaswitheroo
    and with the wifi/bluetooth radios off and cpu scaled to powersave, it consumes 20 watts and is uncomfortably hot.
    Powertop reports stats as follows:
    I think this is because the PCI devices are at 100% use. But PCI runtime power mgmt. is active through tlp. I've tried laptop mode tools but tlp comparitively gives better results.
    Here is the tlp stat output.
    What should I do to improve the battery life and make it run cooler?
    Last edited by vn14 (2013-05-01 12:52:30)

    Oh! I thought it was so because PCI was at 100%.
    The GPU is disabled.
    # cat /sys/kernel/debug/vgaswitcheroo/switch
    0:DIS: :Off:0000:01:00.0
    1:IGD:+:Pwr:0000:00:02.0
    Also, it's not a desktop environment's fault (I'm running KDE); Same amount of power is consumed even when X is not running.
    Is there a way to find out why the power consumption is so high?
    How much power does Arch consume normally?
    Last edited by vn14 (2013-05-16 13:14:37)

  • AEBS, device name, and Time Machine backups, question

    Will changing the device name of my AEBS (what shows up, for example, in a Finder window sidebar, affect time machine backups that live on a an AirDisk? I just want to make sure, before I make any changes, that my computers won't 'lose' the existing backups if I do change the device name.

    I'm afraid to try it, but that is what I am not clear about. The Drive name isn't changing, just the AEBS device name. The big question is does TM just care about the drive name, or does it also care about the AEBS device name. If you are right, than I am out of luck. But would love someone to definitely confirm.

  • Re-linking media by name and duration

    Hi,
    i'v been trying to link a media which has the same name but in different locations. (MTS Files)
    I didnt find a quick solution out there (Google, Adobe Forums) which not involved to some extent re-link each file separately. Similar problem were posted at this post, Which Jim SImon Answered:
    "This is a major flaw in the AVCHD design.  You will have a hard time with this one, as there is no way to know which 0013.mts is being asked for.  It's a big enough issue that you may want to seriously consider doing all the work on one machine."
    And yet, it seems simple to me to use the duration feature (its embedded in the project file), to help premiere to distinguish between two kind of 0013.mts files. this is the way ill will do it manually, and it seems silly that premiere could not do the same.
    mybe there is a plugin\script out there which uses the same line of thought, or any get around solution.
    Thanks,
    BISLY

    Hi jim,
    Whats the hold up?
    As known AVCHD recording is quite common, and almost every project i'v worked on has arroused this kind of issue.
    Maybe it a feature to think about for the next version of premiere...
    In my case, im working on a consolidate project of the main one, which addded automatically to all of the similar files an extension of 001, 002 and so on.
    so when im linking the media, even the name is not the same and the duration is really my only indication. as there is a "match exact name" feature, maybe there could be "match exact duration" which you can turn on\off seperately.It will help a lot.

  • DAQmx - merging device name and channel names ?

    Hi all,
    There is probably a extremly simple solution to this, but I didn't manage to find it !
    I use LabView 2009 and 2010.
    I'd like to concatenate the strings "Dev4" (device chosen by the user in the GUI) and e.g. "PFI0" to get a string that I could connect directly to a DAQmx vi.
    Is it possible to do that ?
    Thanks a lot for your help !
    JB
    JB

    Hi,
    I'm back again with this problem.
    Concatenating strings works fine for strings like "Dev3/ai0" for example, like this:
    but when I try to do the same kind of thing for a ai trigger source (in my case "/Dev3/PFI1"), it doesn't work. Here is how I try to do it:
    When I put a probe on the wire at the far right of the screen capture above, I get what I want, ie "/Dev3/PF1", but no trigger are received and there is no error message. Everything works fine when I simply use a constant like this:
    I don't really understand why it doesn't work. Any clue ?
    Thanks for your help !!
    JB

  • PCI devices and network controller

    Hi there can anybody tell on hoe to install the PCI device driver and the network controller please as these two devices is marked with an ? in the devices managers windows
    Thanks

    Subject: Re: PCI devices and network controller (Satellite SM 30 X-165)
    Good morning
    I have a problem i bougt a laptop in china but to translate it thay reprogramed everything and my modem was desinstaled, i dont exactly know which model it is, its a toshiba satellite and the mothem comes whit a ? (yellow question marc) and the name it apears is modem PCI
    could you help me
    Message was edited by: andres_pedroza

  • How to Correlate Device name.Device number and Slot Number of a PXI card .

    Presently from VISA i get the Device name info and Slot info.
    And using Get DAQ information vi I get the Device Name and Device Number.
    I want to correlate and as get what device is assigned what device number
    in
    Which slot
    I am using LAb veiw 7.0 and RT , for this reason i cannot use NIDAQ
    Qmax.
    Suresh Thangappan

    The DAQ Base Address (Get DAQ Device Info) is the same as the BAR1 base address in VISA (see the attached VI).
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense
    Attachments:
    Base Address.vi ‏29 KB

  • Cisco Prime LMS Device Names

    In Prime LMS 4.2, has anyone seen this issue/bug before?
    I've added in all devices indicating their Device Names and Hostnames. However in the Monitor section and only High Severity Faults part, the Device Name is actually showing IP addresses.
    In the Syslog report that sent via email, Device Name fields are showing IP addresses as well. Other sections or portlets are totally fine.
    Thanks.

    Hi Bin,
    Check the below link:
    http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_device_fault_manager/3.2/user/guide/useDevMg.html#wp1367517
    Workaround to get the HOSTNAME in DFM is :
    1> Added the Device Name and IP on the DNS Server or /etc/HOSTS file
    2> Modified NMSROOT/objects/smarts/conf/discovery/discovery.conf, and changed the DisplayNameFormat from "AUTOASSIGNED" to "MIBIISYSNAME". 
    That caused DFM to display the sysName as the display name.
    Also set the NameFormat to TM_USEAUTONAME, then restarted daemon Manager (net stop crmdmgtd && net start crmdmgtd )
    3> Delete and re-add a device in DFM
    ============
    Open name-resolver.conf file and make same changes that we have made in discovery.conf.  ie, the following entry should be there in this file also.
      #NameFormat = "TM_USESEEDNAME"
      NameFormat = "TM_USEAUTONAME"
    Thanks-
    Afroz
    [Do rate the useful post]

  • How can I create a new name and itunes acct

    I want to give my old 2nd generation ipod nano to my son.  Can I create a new device name and itunes for the ipod?

    Yes.  I would suggest creating a separate user account for him on your PC to use to store his own separate iTunes library.  See Method 1 from this Apple support document for more information and assistance.
    How to use multiple iPods, iPads, or iPhones with one computer
    When he connects the iPod to this new iTunes library he'll need to Erase and Sync (or restore) the iPod allowing him to set it up as his own iPod and everything just as if you had just taken it out of the box.
    B-rock

Maybe you are looking for

  • Can i print a string on a panel object?

    I have been trying to find a way to print a sring on a panel object but i couldnt manage it. Can this be done? If it can be, how can i do it?

  • Zen Sleek Photo: support for Album A

    As the title already says: will there be support for Album Art for the Zen Sleek Photo in future firmware versions?

  • Prefer Bridge to Open in 32 bit CS5

    Can Bridge be set to preferentially open files in 32 bit CS5? Bridge CS5, when it doesn't crash (which seems more frequent than even CS4) opens images in 64 bit CS5 by default. Most plug-ins are 32 bit so it would seem user-hostile for Adobe to lock

  • ICWEB new free text field CRMD_ORDERADM_I.

    Hello all, I got a problem. I have used the EEWB to create a new field in table CRMD_ORDERADM_I. I would like the field to be editable in order to enter free text until 120 characters. (Note that the field is located within the contract) Does anybody

  • Jsp:useBean no type with name

    On a jsp page, why is it displying: no type with this name could be found around <jsp:useBean..? Could any body help me out?