How to find the base address of a pci device in register programming?

Hello Everyone
 I am making a register program to pci-7344.
 At this link http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/15f094f65a17e3af8625660d0018a20a?O... I find a method that finds the correct address in the register programming a pci device,but I am confused with some details.
It says BAR0 is assigned to the miniMITE ASIC,while BAR1 is used to program the PCI device itself.So the address mapped from BAR0 is
supposed to be the base-address of the registers on the miniMITE,but why 0x300 is added to the base-address? What 0x300 means?
I wonder if the address mapped from the BAR1 is not the valid baseadress for the pci board and a initial offset should be added to
it.If so what is the initial offset?
Thank you!!

Thank you for your reply !!
 I am developing pci-7344`s driver under venturecom`s rtx,now I have found the baseadresses[0] and baseadresses[1] . baseaddresses[0] is the base-address of the miniMITE and I can get the vendor ID, device ID by directly reading from baseaddresses[0] +offset,but  baseaddresses[1]  does not like to be the base address of the 7344 registers,because I can not get the correct status information when I read from the csr(baseaddresses[1]+0x04)(all the value read back is 1).According to your advice I add the following codes to the program.
 window_data_value = ( (0xffffff00 & (ULONG)BAR1.LowPart) | (0x00000080) );
        *((PLONG)(vMemAddr[0]+0xc0)) = window_data_value;
  vMemAddr[0] is the virtual address that is mapped from BAR0 into the user`s program ,which gives us access to physical memory locations on the system.
  After adding these codes I still can read the correct information from BAR0,but I still can not read back the correct value from BAR1(all the value read back is 0).
 It says in ddk that the csr(a read-only register) is located at cardlogicaddress+4(8byte offset),so I wonder what  the cardlogicaddress is . What is relationship between baseaddresses[1] and cardlogicaddress?
Thank you!!!!!

Similar Messages

  • How to find the MAC address of iPod Shuffle?

    Hi,
    I need to add MAC address of iPod shuffle to the wireless router. Does anyone know how to find the MAC address of iPod shuffle? I would appreciate your help! Thanks.

    Thanks for reply. So then I am not sure why my laptop is not recognizing iPod shuffle when it is connected through USB cable. I don't see DEVICES option under iTunes..so can't sync the music.

  • How to read the MAC address of a BT device ?

    How to read the MAC address of a BT device ?
    Thanks,
    Ionut

    I should've added more details ; I'm interested to find out, from an IPhone app, if a certain BT device is in the proximity of the phone. The verification involve checking the MAC address or the name of the device.
    Thanks,
    Ionut

  • I just purchased my Mac and trying to set it up with my office network.  Need to know how to find the airport address

    How do I find the Airport address on my MAC

    The first time you set up the iPad you must do it by connecting the iPad to a computer, which needs to be running the latest version of iTunes, using the provided USB cable that came with it.  It cannot be done wirelessly initially.

  • How to find the MAC address of my iPad2?

    My WiFi hot spot has MAC address filter for better security.
    But I cannot find the MAC address of my new iPad2.

    If you need to setup wifi to start the MAC address with iPad, try  the http://www.ipad-tablet-help.com/2010/03/how-to-find-ipad-mac-address.html   to find it out.  Works for iOS5.

  • How to find the URL address of portal page ?

    Hello All,
    How to access a page from Portal Content Directory without logging into Portals ?
    Can we know the URL address for a Portal page so tht it can be called from another page via href object.
    Pls, provide me with an alternate solution that works better.
    Thank you for your time and valuable inputs. Looking forward to your responses.
    Regards,
    Anil Kumar.

    Hi,
    It is quite simple to find out the URL of a page, Check this for more:
    /thread/426798 [original link is broken]
    http://help.sap.com/saphelp_nw70/helpdata/en/43/014421d21d6fade10000000a11466f/frameset.htm
    Greetings,
    Praveen Gudapati

  • How to find the email address by display name

    as title,
    i can get the display name from the to, cc, bc edit box,
    then i need to get the email address,
    current i use object API to query: GWAccount->GWAddressBook->GWAddressBookEntrie->get_EmailAddress,get_DisplayName
    but i find it is really slow when there are many contacts, example 10000.
    so is there any other effective method to get the email address?

    First off, you are not really doing:
    GWAccount->GWAddressBook->GWAddressBookEntrie->
    get_EmailAddress,get_DisplayName()
    are you?
    If you enter the full line, it will read in all
    of the entries each time it is called.
    You should break each part into an object:
    gwAccount
    gwBook
    gwEntries
    I'm not sure what you are doing.
    Are you trying to compose an email?
    If so, why are you not using Recipients.Resolve()?
    Are you trying to get the recipients from an email?
    Preston
    >>> On Friday, April 16, 2010 at 1:26 AM,
    hillp<[email protected]>
    wrote:
    > as title,
    > i can get the display name from the to, cc, bc edit box,
    > then i need to get the email address,
    > current i use object API to query:
    >
    GWAccount‑>GWAddressBook‑>GWAddressBookEntrie >get_EmailAddress,get_Di
    splayName
    > but i find it is really slow when there are many contacts, example
    > 10000.
    >
    > so is there any other effective method to get the email address?

  • How to find the email address for my deskjet 2540 printer?

    I have just bought a deskjet 2540 printer and I cannot find the email adress for it so I can print from my blackberry.Also I can not find the claim code for it as well. Any suggestion on how to do this would be helpful.

    dompiemonte wrote:
    C159 wrote:
    I have just bought a deskjet 2540 printer and I cannot find the email adress for it so I can print from my blackberry.Also I can not find the claim code for it as well. Any suggestion on how to do this would be helpful.Just help me to make my printer work. I just need the printer email ad.As I explained above, the printer is not an ePrint-capable model.  The specifications for the printer can be found here.  They clearly state the printer is not able to print via ePrint. This is why you cannot find the claim code.  It does have "Wireless Direct" built into it - this can enable you to print wirelessly.  How to set up the DJ 2540 for wireless connections. WyreNut

  • How to find the mac address

    I am trying to connect my iPad to my Netgear router and activate the user list. Amazingly the router status does not show the iPad although it is connected. I used the mac address which I found under settings --> general --> info. I used the WLAN address to add it to the routers user list. Unfortunately it did not work. Any idea which other address I could use and where to find it on the iPad. Thanks for the help.

    Does it show under Options | Status as a WLAN Mac Address?
    If someone has been helpful please consider giving them kudos by clicking the star to the left of their post.
    Remember to resolve your thread by clicking Accepted Solution.

  • How to find the web address for the page I came from

    Hello,
    I want to find the page that I last visited in ADF for implementing some audit functions.
    My jdev version is 11.1.1.2.0; I've search on the internet but I didn't find anything.
    Please help me.
    Thank you in advance.

    FacesContext ctx = FacesContext.getCurrentInstance();> HttpServletRequest request = (HttpServletRequest)ctx.getExternalContext().getRequest();
    ctx.getExternalContext().redirect(request.getContextPath() + "/faces/" + ctx.getViewRoot().getViewId());
    ctx.getExternalContext().redirect() - wil redirect to the correct page..
    ctx.getViewRoot().getViewId() - wil give you the current view id as suggested by Sireesha
    request.getContextPath() - will get you the complete context path

  • How to find the Name of Infoset either from Query Name or Program Name

    Hi,
    I ahve got the program name from the Transaction code of the Query. I also found out the name of the Query but I could not find out the name of the "Infoset". Please help me to find out the name of the Infoset either from the Query Name or from the Program name.
    Thanks,
    Jans

    Hello Christian,
    Thank you for your reply. Actually. We have got transaction name of report and from that we found out the name of the Program and from that Program we have utilised the FM to find out the Query name. But we are unable to find the name of Infiset as we have to Download this Infoset from DEV and it is to be uploaded into QUALITY.
    But we are not sure about the Infoset.
    I could not understand your sentence "When Open it".
    Regards,
    Jans

  • Ref:How to find the IP address is already in USE

    I am trying to install the Oracle 10g RAC - 2 Node. When I am running vipca I am getting CRS-1006 saying that IP is already in use in the network. The vip IP address is giving issues. It is successfully installed the Cluster software and Database Software but It could not start the or create the LISTENER_. My question is how can we find that an IP address is already in use. so that we can give other IP address.
    Thanks in advance.

    Check both nodes:
    [root@vmractest1 ~]# nslookup <VIP address>
    to reconfirm which host machine is already using this.
    disable the adress
    [root@vmractest1 ~]# ifconfig -a | grep 10.4.10.46
    [root@vmractest1 ~]# ifconfig -a | grep 10.4.10.47
    check destination is unreachable
    [root@vmractest1 ~]# ping 10.4.10.46
    [root@vmractest1 ~]# ping 10.4.10.47
    Edited by: mmusette on Apr 6, 2009 4:45 PM

  • How to find the Apple IDs used on a device?

    I travel extresnively and have created muiltiple Apple IDs in order to be able to download apps that are only available in specific Apple Stores. For instance my US Apple ID won't let me download NFL Game Pass so I have an Apple ID for Singapore that I've used for that. Besides Apple IDs in a few countries I also have some apps that my sons purchased. Now I have a new app that I need for work from a European Apple Store. I downloaded it to my computer but I can't install it on my iPhone becasue it has already been authorized for 5 different Apple IDs.
    1) How can I find out which AppleIDs are authorized on a specific iPhone?
    2) How can I see a list of which apps are associated with which Apple IDs either on the iPhone or on the computer in iTunes?
    3) How can I unauthorize a specific AppleID on the phone to regain a free slot?

    I used the query below to get the RMAN backup details, here I am missing detail of compression algorithm
    SELECT SESSION_KEY, INPUT_TYPE, STATUS,
    TO_CHAR(START_TIME,'mm/dd/yy hh24:mi') start_time,
    TO_CHAR(END_TIME,'mm/dd/yy hh24:mi') end_time,
    ELAPSED_SECONDS/3600 hrs,
    COMPRESSION_RATIO ,
    INPUT_BYTES_DISPLAY, OUTPUT_BYTES_DISPLAY, TIME_TAKEN_DISPLAY
    FROM V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;Output
    SESSION_KEY     INPUT_TYPE     STATUS     START_TIME     END_TIME     HRS     COMPRESSION_RATIO     INPUT_BYTE     OUTPUT_BYTES_DI     TIME_TAKEN_DISP
    417     DB INCR     COMPLETED     8/23/2012 16:01     8/23/2012 16:33     0.529444444     1.06917899     244.67G     228.84G     0:31:46
    423     DB INCR     COMPLETED     8/23/2012 16:43     8/23/2012 17:14     0.510277778     1.0692043     244.59G     228.76G     0:30:37
    435     DB INCR     COMPLETED     8/24/2012 11:39     8/24/2012 12:13     0.571666667     1.06899247     244.64G     228.85G     0:34:18
    441     DB INCR     COMPLETED     8/24/2012 13:52     8/24/2012 14:23     0.511666667     1.0690053     244.60G     228.81G     0:30:42
    447     DB INCR     COMPLETED     8/24/2012 16:30     8/24/2012 16:58     0.467222222     2609.07178     244.60G     96.00M     0:28:02
    457     DB INCR     COMPLETED     8/25/2012 12:30     8/25/2012 13:01     0.527222222     1.06896188     244.68G     228.90G     0:31:38
    467     DB INCR     COMPLETED     8/26/2012 16:30     8/26/2012 16:56     0.4325     739.556573     244.65G     338.75M     0:25:57On the output I need to have the compression algorithm used for each backup.
    Hope this is crystal clear now.

  • How can i find the base UOM?

    Hi ,
    I have created an rfc function module in our BW system.  I have to call this RFC from SAP R/3 . To call this RFC I have to pass MATERIAL NUMBER , Quantity Required and  UOM. Every thing is working good.
    As per the Spec , "if UOM is not there on requested call , Assume base UOM"
    I Didn’t understand this point .How can find the base UOM of the quantity required?
    Could you please give me the idea?
    Thanks,
    Suresh

    Hi ,
    Thanks for your responce.
    Do you mean: When I call the RFC function module , if  i wont give any UOM,
    It will take the base UOM automatically  or i should include any logic to pass the base uom.
    Please clarify this.
    Thanks.
    Suresh.

  • Test the base address

    I will test the base address for my VME.the base address is set by P2A2,P2C2,P2A3,P2C3. I should create 16 VME devices in MAX,should't I? and each device respond to one base address.

    Hi cws6805,
    Thank you for contacting National Instruments. Let me make sure I understand exactly what you are asking. The base address of your VME device is set using four parameters. I'm not sure what you mean by "P2A2, P2C2, P2A3, P2C3" but it sounds as if you are referring to pins A2, C2, A3, and C3 on the P2 connector. You need to test your device to find out what the base address is. You're not sure which address your instrument will use, so you want to add a VME device for each possible base address.
    If this device is in a VXI chassis with a VXI controller, this method will not work. Those pins are used for -2V, Clock 10, Trigger Line, and ground. If this is the case, your VME instrument will not function properly in a VXI system.
    I'll assume t
    hat your VME instrument uses four other parameters to set the base address. If you add all 16 devices and then try to communicate with each device, then yes, you would be able to determine which device can communicate and therefore is the real device. You could then find out what the base address is for that device.
    Regards,
    David Shatila
    Applications Engineer
    National Instruments

Maybe you are looking for

  • Using Target Disk mode to reinstall OS-X

    I have a PPC G5 Dual 2.0gHz which failed the other day. All the fans were running full and a red LED showing on the logic board (it's just a warning I think). Since then the machine cannot be started up. It will begin the startup process normally but

  • Is it safe yet to buy a 23" display?

    I was about to buy a 23" display 3 yrs ago when I got my new G5 but there were so many probs with colour casts etc that I opted for the 20" Well now fancy a second minotuar and wonder whether the 23" probs have been ironed out?

  • How to count non repeated cells?

    I have an spreadsheet with a lot of email addresses and some of them are repeated. I need to know exactly how many email addresses I have. It's the same thing as categorize but I need a formula. I've tried with this excel formula: =SUMPRODUCT(A2:A10"

  • ITunes Match problem with Mastered for iTunes tracks

    My question is, has anyone solved the problem I'm describing here? My wife bought an album (David Bowie, The Next Day, it's great), as a Mastered for iTunes album, under her Apple ID. I copied the album to my computer using Home Sharing. My computer

  • Nokia X3-02 is turned off without command after de...

    My cel model X3-02 have many problems afterI update to version 7.15 the device software with Npkia OVI Update. Please who knows about return to old version, it´s better to me. Thanks