AXI memory mapped to PCI Express BAR0 size in Root Complex

I am using AXI memory mapped to PCI express (2.5) IP as a Root complex in my design.
I have selected the maximum BAR0 Size as 2 GB under PCIE:BARS and AXI-PCIe BAR translation as 0x00000000.
I want to access a memory in the host side of the Root complex using an endpoint.
When I tried to access the address more than 0x7FFF_FFFF from the endpoint in my testbench, the transaction is getting lost in the PCIe section of the IP. I don't see any AXI transaction in the output of the AXI.
Any transaction from the endpoint to address less than 0x80000000 goes through.
Is this a limitation in the IP?
What is the solution if we want to access 4GB of memory from the endpoint thorugh the Root complex?

Hi Suresh,
This is a known issue with the core.  This is targeted for fix in the next Vivado release, where you will either have the option of selecting a 4G BAR for the RP, or masking out the RP BAR altogether, which will allow the full 4G memory space to accept requests from the downstream devices.  

Similar Messages

  • Need Urgent Help : Using VIVADO Design Suite for PCI Express 3.0, 8 lane, and AXI Interfaces for Video Processing

    My scenario is as follows :-
    1) I am building a Image Processing Application and using VIVADO HLS for that.
    2) I have synthesized my design using VIVADO HLS, and export it as IP-XACT format.
    3) I have imported it in VIVADO Design Suite, and added to the IP catalog, in a new project created.
    4) Since I am building an image processing pipeline, I am using AXI Stream interfaces, 1 input stream, and 1 output stream, and mentioned that in the HLS tool itself..
    5) I have a Virtex 7 690T FPGA, and have accordingly chosen the board throughout the HLS process, and the project.
    6) We want to use a PCI Express 3.0, through DMA access to the CPU.
    7) Now I am stuck here regarding how to proceed forward, I have gone through most of the Xilinx documentation, but am still not clear about what to do from here on.
    8) There are these 3 variables for me, AXI Stream Interface, DMA, PCI Express 3.0, all I have right now is the IP of the Image Processing pipeline that I generated through VIVADO HLS.
    9) Also at a later stage we would like to stream in Video, and process it through our image processing pipeline.
    Please help me with an overview of steps that I need to follow to get my design together and working on a real FPGA hardware with my Computer(windows OS), as in what Xilinx IP blocks do I need to use, how will I be able to exploit the maximum bandwidth from the PCI Express Interface in my specific case of send image through a stream, what tools will I need to use at every stage.
    I would be highly grateful if you guys can help me, we have a dealine to meet.
    Please let me know if we need any extra information.
     

    School project?

  • Nio ByteBuffer and memory-mapped file size limitation

    I have a question/issue regarding ByteBuffer and memory-mapped file size limitations. I recently started using NIO FileChannels and ByteBuffers to store and process buffers of binary data. Until now, the maximum individual ByteBuffer/memory-mapped file size I have needed to process was around 80MB.
    However, I need to now begin processing larger buffers of binary data from a new source. Initial testing with buffer sizes above 100MB result in IOExceptions (java.lang.OutOfMemoryError: Map failed).
    I am using 32bit Windows XP; 2GB of memory (typically 1.3 to 1.5GB free); Java version 1.6.0_03; with -Xmx set to 1280m. Decreasing the Java heap max size down 768m does result in the ability to memory map larger buffers to files, but never bigger than roughly 500MB. However, the application that uses this code contains other components that require the -xMx option to be set to 1280.
    The following simple code segment executed by itself will produce the IOException for me when executed using -Xmx1280m. If I use -Xmx768m, I can increase the buffer size up to around 300MB, but never to a size that I would think I could map.
    try
    String mapFile = "C:/temp/" + UUID.randomUUID().toString() + ".tmp";
    FileChannel rwChan = new RandomAccessFile( mapFile, "rw").getChannel();
    ByteBuffer byteBuffer = rwChan.map( FileChannel.MapMode.READ_WRITE,
    0, 100000000 );
    rwChan.close();
    catch( Exception e )
    e.printStackTrace();
    I am hoping that someone can shed some light on the factors that affect the amount of data that may be memory mapped to/in a file at one time. I have investigated this for some time now and based on my understanding of how memory mapped files are supposed to work, I would think that I could map ByteBuffers to files larger than 500MB. I believe that address space plays a role, but I admittedly am no OS address space expert.
    Thanks in advance for any input.
    Regards- KJ

    See the workaround in http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4724038

  • RTS5229 PCI Express Card Reader=Unassigned class [ff00] dv6t-7000

    Hello everyone.  I am having issues with the built-in card reader in my HP dv6t-7000.  I know that this kind of question has been asked before, but I am unable to find a solution.  I am new to Arch, but have used almost ALL other distros.  Arch is the first Linux on my laptop.   Now down to the details. 
    lscpi
    00:00.0 Host bridge: Intel Corporation 2nd Generation Core Processor Family DRAM Controller (rev 09)
    00:01.0 PCI bridge: Intel Corporation Xeon E3-1200/2nd Generation Core Processor Family PCI Express Root Port (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation 2nd Generation Core Processor Family Integrated Graphics Controller (rev 09)
    00:14.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB xHCI Host Controller (rev 04)
    00:16.0 Communication controller: Intel Corporation 7 Series/C210 Series Chipset Family MEI Controller #1 (rev 04)
    00:1a.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #2 (rev 04)
    00:1b.0 Audio device: Intel Corporation 7 Series/C210 Series Chipset Family High Definition Audio Controller (rev 04)
    00:1c.0 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 1 (rev c4)
    00:1c.2 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 3 (rev c4)
    00:1c.3 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 4 (rev c4)
    00:1c.5 PCI bridge: Intel Corporation 7 Series/C210 Series Chipset Family PCI Express Root Port 6 (rev c4)
    00:1d.0 USB controller: Intel Corporation 7 Series/C210 Series Chipset Family USB Enhanced Host Controller #1 (rev 04)
    00:1f.0 ISA bridge: Intel Corporation HM77 Express Chipset LPC Controller (rev 04)
    00:1f.2 RAID bus controller: Intel Corporation 82801 Mobile SATA Controller [RAID mode] (rev 04)
    00:1f.3 SMBus: Intel Corporation 7 Series/C210 Series Chipset Family SMBus Controller (rev 04)
    01:00.0 VGA compatible controller: NVIDIA Corporation GF108 [GeForce GT 630M] (rev a1)
    08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)
    0a:00.0 Network controller: Ralink corp. Device 539a
    0b:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 07)
    lsusb
    Bus 003 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 004 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
    Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 003 Device 003: ID 138a:0018 Validity Sensors, Inc.
    Bus 003 Device 004: ID 05c8:033a Cheng Uei Precision Industry Co., Ltd (Foxlink)
    The card reader class is Unassigned.  Why?  I followed this thread:
    http://ubuntuforums.org/showthread.php?t=206464 and installed the realtek driver with no sucess. dmesg shows no changes. The card reader is basically ignored.
    according to lsmod the module is active.
    rts5229 299012
    What should I do?

    more info :
    lspci -vnn | grep -A5 RTS5229
    08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader [10ec:5229] (rev 01)
    Subsystem: Hewlett-Packard Company Device [103c:1818]
    Flags: bus master, fast devsel, latency 0, IRQ 18
    Memory at 71000000 (32-bit, non-prefetchable) [size=4K]
    Capabilities: <access denied>
    Kernel driver in use: rts5229
    http://vincentlycheng.wordpress.com/201 … t-working/
    same fix. Didn't work for me. Should I try rtsx_pci instead?
    Last edited by ryanvade (2013-01-24 04:49:06)

  • AXI4 memory mapped slave user logic implementation

    hi, I'm using a Spartan6 and the EDK.
    I'm trying to write data via PCIe/AXI to a third party IP core, and read data of this IP core. The connection looks like this:
    PCIe/AXI MM bridge <> AXI Interconnect <> AXI_MM_Slave <> two instances of the 3rd_party_IP_core
    I want to read/write 128 bits. I created an AXI4 memory mapped slave with two address spaces with the CIP Wizard.
    Now I'd like this AXI slave to read the data from the bus, and forward it to an output : std_logic_vector(127 downto 0), and read data of an input : std_logic_vector(127 downto 0) and write this data to the AXI bus.
    I don't know how to use the IPIC signals the CIP Wizard created, to do this. As I want to read/write 128 bits while the Bus2IP_data and IP2Bus_data is only 32 bits wide, I don't know how to manage this. Could anyone please help me with some VHDL-code?
    Thanks and regards,
    Fabian

    As per my understanding
    It may  be  possible  If one person manages all service desk operations and that person have windows user id with userid "SERVICEDESK ".
    It is not possible for several users to have same userid in Active directory
    Integration of portal with windows userid possible whith same userid.
    we can see some other inputs also
    Koti Reddy

  • K8T fir upgrade PCI express?

    I don't know much about the history of my MB , but I was wondering if there is a later model, Same promise controller. but with A PCI express slot and possibly more memory capacity. I don't want to start a new windows re install
    I know that there is a certain risk in windows not being happy with a different mb but , if the raid system is the same , Maybe a worst case senario of a repair install .
    Thanks in Advance>

    There's a trick for windows XP that make possible to move the entire partition/installation or even the entire hard drive to new hardware:
    1) download this file: http://www.wintricks.it/windxp/dload/RE-install-2.rar
    2) verify the presence of this files under *:\windows\system32\driver
    - Isapnp.sys
    - Atapi.sys
    - Intelide.sys
    - Pciide.sys
    - Pciidex.sys
    If not available, you can get'em from the downloaded file.
    3) import the .reg file (REinstal.reg)
    Now you're ready to move the partition to a new hardware, using some partition clone software/utility/tool to clone the entire raid installation onto a new hard drive, naturally the size of the new hdd should be enough to contain the entire partition
    BTW, if i'm not wrong, this trick can work only on eide/pata or in sata emulating eide/ata, so I guess no SATA AHCI (or advanced features) for now: you should clean install with slipstreamed drivers (like with nlite) to use those features. Or better clean install Windows 7 that's better.

  • Problem of PCI express link width and speed

    hello,
    I instantiate the pci express core v1.7 into a pci express endpoint and the core was configured as GEN I x8 or GEN II x4. By using the example design Xilinx offered in the ipcore dir, I could read and write device by PIO mode.
    However, when I check the device’s link width and speed by using lspci –vvvv in Linux, I found that no matter what configurations I set, the device link is always trained as GEN I x1, which means the throughput of device, reduce 8 times. May the most important problem is that all logic in the user layer upon transaction layer are written at 250MHz, and if link width and speed are limited 2.5G/T and x1, I need to change user logic circuit which is a huge work.
    So my question is how to change the PCI express link width and speed in OS side, or I need to change a new motherboard?
    (I guess it related with motherboard, and I check that the PCI express slot in motherboard support GEN II X16. Another issue, when I insert a PCI express GEN II x8 device, the device is also trained as GEN I x1).
    lscpi -vvvv
    01:00.0 RAM memory: Xilinx Corporation Device 6018
    Subsystem: Xilinx Corporation Device 0007
    Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
    Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
    Latency: 0, Cache Line Size: 64 bytes
    Interrupt: pin A routed to IRQ 16
    Region 0: Memory at dfcff800 (32-bit, non-prefetchable) [size=2K]
    Region 1: Memory at de000000 (32-bit, non-prefetchable) [size=16M]
    Capabilities: [40] Power Management version 3
    Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0+,D1+,D2+,D3hot+,D3cold-)
    Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
    Capabilities: [48] MSI: Enable- Count=1/1 Maskable- 64bit+
    Address: 0000000000000000 Data: 0000
    Capabilities: [60] Express (v2) Endpoint, MSI 01
    DevCap: MaxPayload 512 bytes, PhantFunc 0, Latency L0s unlimited, L1 unlimited
    ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
    DevCtl: Report errors: Correctable- Non-Fatal+ Fatal+ Unsupported-
    RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop+
    MaxPayload 128 bytes, MaxReadReq 512 bytes
    DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr- TransPend-
    LnkCap: Port #0, Speed 2.5GT/s, Width x8, ASPM L0s, Latency L0 unlimited, L1 unlimited
    ClockPM- Surprise- LLActRep- BwNot-
    LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
    ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
    LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk- DLActive- BWMgmt- ABWMgmt-
    DevCap2: Completion Timeout: Range B, TimeoutDis-
    DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis-
    LnkCtl2: Target Link Speed: 2.5GT/s, EnterCompliance- SpeedDis-, Selectable De-emphasis: -6dB
    Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
    Compliance De-emphasis: -6dB
    LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete-, EqualizationPhase1-
    EqualizationPhase2-, EqualizationPhase3-, LinkEqualizationRequest-
    Capabilities: [100 v1] Device Serial Number 00-00-00-01-01-00-0a-35
    Kernel driver in use: card

    I also have this issue of the user_link_up is high and everything looks good but the LnkSta widht is 1x. did you ever get any guidance about this?
     

  • Can I add a PCI Express eSATA card to my G5

    Hi All,
    Not clear if this will work...I have a late 2005 model Power Mac G5. I'd like to add this eSATA PCI Express card: http://www.worldofcables.com/store/viewItem.asp?idproduct=9232
    So I can use this external drive with it's faster eSATA capability: http://www.macmall.com/p/Fantom-Drives-External-Hard-Drives/product~dpno~7819677 ~pdp.ffadahe?store=macmall&source=MWB23824
    It's not clear to me if my mac can accommodate this card...does anyone have more insight than me?
    Thanks in advance,
    Rick

    Greetings Everyone,
    I am a long time Mac User but I must confess I am not really a "power user" I use my mac to edit my gigs and thats about it. I have acquired a 6TB G-Raid External SATA drive with tons of footage and I need to be able to interface my G5 PPC to it. I need to add a ESATA card to my rig so I can get to that footage. Please, Please, Please help! If anyone can suggest a card that will work I would be so very happy! I would be happier still if it was affordable!
    "Help me Obi-Wan Kenobi...you're my only hope!"
    Here are my specs:
    OS X v 10.5.8
    Build # 9L31a
    Model Name: Power Mac G5
    Model Identifier: PowerMac7,3
    Processor Name: PowerPC G5 (2.2)
    Processor Speed: 1.8 GHz
    Number Of CPUs: 2
    L2 Cache (per CPU): 512 KB
    Memory: 4 GB
    Bus Speed: 900 MHz
    Boot ROM Version: 5.1.8f7

  • What version is my PCI Express x1 slot?

    I have an HP Pavillion m9500t.  What PCI Express x1 version does this PC have?

    Hi:
    According to the chipset specs from Intel, it has a PCI express revision of 1.1.
    http://ark.intel.com/products/31914/Intel-82G33-Graphics-and-Memory-Controller

  • X-Fi Fatal1ty PCI/-Express - All Hardware Acceleration Crashing, Significant R

    Hello,
    I've made a few posts on the forums recently about various topics to help me isolate the issue I am having. At this point, using the latest stable drivers for either a PCI or PCI-E X-Fi Fatalty, any hardware acceleration of sounds is causing my system to bluescreen, freeze or crash the application. Some games give me no option of not using hardware acceleration (ie. Rainbow6 Vegas 2), resorting in my having to change my Sound Acceleration down to Emulation Only. This setting greatly eases off on the sound latency buffers, resulting in sounds that are delayed an entire second. The good news is no crashes and sounds actually sound correct.
    A few things to note about my setup,
    ) I am an extreme computer professional, programmer and developer. My Windows XP SP2 installation is incredibly streamlined; I only have 6 services running and all non-essential drivers removed, resulting in only 69MiB commit charge at startup across processes and ~950 threads. Suffice to say, my system is baby-cheek clean, and I aim to keep it that way.
    2) I have been using this setup for many years now. I have been using NVIDIA video cards for the past 5+ years, currently I have a GTX280, and all of them have behaved perfectly with my streamlined setup. I even unregister every single one of NVIDIA's DLLs and stop all of their services, and the 3D Settings Per Application and Color Control Features still all work. Suffice to say, NVIDIA's drivers, although a trite on the large side, are written well enough to keep drivers away from OS services (as it should be).
    3) My other hardware is not at fault. I have tested the X-Fis against multiple PSUs, different video cards, multiple fresh installations of Windows and more. I don't use utilities to clean my drivers; I do it by hand. I know exactly what's on my system and what I want removed. Though it may be egotistical to state, I'm pretty much knowledgable of every component my system has running.
    4) As a result of this knowledge and my desire to keep my system clean, I ONLY HAVE INSTALLED the drivers necessary for my X-Fis to work. I DID install Creative Audio Console, but the application seems to have too many dependencies on OS Services, since it never runs, either reporting that my audio device cannot be found, or the application simply does nothing and a bogus error is written to the event log. I have enabled DCOM to make sure it wasn't dependent on that, and it still does not work. To summarize, yes, I have tried enabling every service I could find that it might depend on, and none worked. Creative Audio Console is, to me, a piece of ill-written software. In comparison to NVIDIA's excellent control panel which works no matter how much stuff I remove, Creative's Audio Console fails.
    I do not have the Creative Audio Licensing Engine, I do not have the Creative Audio Control Panel, I do not have the Creative Labs Audio Engine Service, I do not have CMSS or any other OS-level services that normally get installed. Remember people, drivers are NOT TO BE DEPENDENT on OS services; they are protocols defining to the OS how to communicate with the hardware. Any necessity of additional "service" software is way past the acceptable standards of drivers.
    5) That being said, I had no issues with stability using older drivers on my PCI X-Fi Fatalty cards. These drivers were dated early 2007, and did not install all of the X-Fi Effects, Utility Effects, 20x Effects, etc. drivers. Mind you I preferred these drivers since they were much simpler to track, as they only had a few .sys files.
    As it stands, I want to use my PCI-Express X-Fi Fatalty, but I want to use it without all of Creative's bloat. I want streamlined, driver-only installation that does not NEED external applications to reinforce its stability. Creative, IS THAT POSSIBLE? Can someone, by definition of the Windows Driver Management signature system, just use your drivers alone for stable gaming? If not, you're violating standards and should never have received WDM cert. on any drivers. I highly recommend you do NOT spit back, saying that for proper functionality, performance, stability, etc. you must install all of Creative's supplemental software. These requires are in violation of the ethics behind software drivers and receiving Digital Signature Certification from Microsoft on your drivers.

    Infinity7,
    I do not want to sound arrogant, but the list of options you provided me with is the stereotypical laundry list of system configuration information for any piece of hardware. I'll address everything though.
    ) No, I'm not using an NVIDIA chipset. I'm using an ASuS Maximus Extreme, just like you said, which uses the X38 chipset.
    2) I'm using Windows XP 32-bit, SP2. I have 2 GiB of memory and do NOT have PAE enabled.
    2) I don't have onboard sound; our motherboard has a PCI-E sound card which I do not have installed.
    3) I don't have any spyware. I don't browse the web on my system. I know every program running and have no rootkits. Nothing is hiding from me.
    4) I don't use antivirus programs. I've been on the internet for 5+ years now and have never needed an antivirus program, since I know when I have a virus and I remove it manually.
    5) I have the latest version of DirectX, June 2008 Redistritutable. Note that most of the post DX 9.0c revisions are meant for D3D, and have nothing to do with DSound.
    6) I've tried every PCI-E slot I have, including both PCI-E x slots and both PCI-E x6 slots. The card is currently in one of my x6 slots.
    7) Any 998+ system is going to have IRQ sharing. Between ACPI BIOSes (more IRQs), Windows XP and drivers, IRQs are rarely in conflict, aside from occasional USB device IRQ sharing. To answer your question, yes, currently both my video card and sound card are sharing IRQ 6. I have done enough work to isolate that IRQ sharing is NOT the issue, though, especially through my testing of the PCI card and the PCI-E card experiencing the same issue.
    8) The output sampling rate of games is not always configurable, and never makes a difference. The X-Fi always upsamples everything it gets as it is, though I guess there is some validity to the sampling rates that are streamed into the buffers.
    Now, to address the rest of your suggestions I say read my post. I specify that changing acceleration to emulation results in perfect stability and sounds that sound correct, however the relaxed latency results in sounds? that are easily delayed by second. This is unacceptable for gaming, obviously.
    As for your ordering of driver installation, it really is through lack of knowledge that people state what order drivers must be installed in. Even NVIDIA's drivers probe for any change through the interfaces they use when the system starts, so any chipset drivers that drastically change the devices in Windows will be detected as changed by other drivers. Be that as it may, I didn't even have the X-Fi in my computer when I installed this latest version of Windows. Only after I had installed everything did I begin to install the Creative Drivers (whilst avoiding all bloatware).
    Most importantly, note that I determined when the crashing started occuring with my original PCI version of the card. After I installed the drivers that started including the additional .sys files (X-Fi Effects, 20X effects, etc.) the crashing occured. As far as I know I cannot use older drivers with the PCI-E model, so rolling back to those previous drivers is out of the question.
    Lastly, for my system specs,
    Motherboard : ASuS Maximus Extreme X38 Chipset, BIOS 0907
    CPU : Intel QX9650 (OCed from 3.0GHZ to 3.6GHZ, stable through Orthos testing)
    Memory : (2) GiB Corsair Dominator Sticks, 4-4-4-2
    Video : eVGA GeForce GTX280 FTW Edition (PCI-Express)
    PSU : Thermaltake Toughpower 200W (backed by UPS)
    Sound : Creative X-Fi Fatalty PCI / PCI-Express (tried both independently)

  • Driver to access a memory mapped device

    Hi,
    I've got a memory mapped device, but the OS (Solaris 10) doesn't let me access it in user space without a driver. So, I need to write a driver to bind the driver to my device at location 0x7fff00000000. I've followed the Device Driver Tutorial and examples on Sun's website, and came up with the following code. But when I mmap the driver into user space, the device at 0x7fff00000000 is not accessed at all. So, I believe there is a problem in probing and attaching the device. Could you please take a look at my code and tell me what I'm doing wrong? I'm new to device drivers. Thank you.
    static int
    foo_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
            int instance = ddi_get_instance(dip);
            struct foo_state *fsp;
            switch (cmd) {
            case DDI_ATTACH:
                    if (ddi_soft_state_zalloc(foo_state_head, instance)
                        != DDI_SUCCESS) {
                            cmn_err(CE_WARN, "Unable to allocate state for %d",
                                instance);
                            return (DDI_FAILURE);
                    if ((fsp = ddi_get_soft_state(foo_state_head, instance))
                        == NULL) {
                            cmn_err(CE_WARN, "Unable to obtain state for %d",
                                instance);
                            ddi_soft_state_free(dip, instance);
                            return (DDI_FAILURE);
                    if (ddi_create_minor_node(dip, "foo", S_IFCHR, instance,
                        DDI_PSEUDO, 0) != DDI_SUCCESS) {
                            cmn_err(CE_WARN, "Cannot create minor node for %d",
                                instance);
                            ddi_soft_state_free(dip, instance);
                            ddi_remove_minor_node(dip, NULL);
                            return (DDI_FAILURE);
                    fsp->instance = instance;
                    fsp->dev = dip;
                    ddi_report_dev(dip);
                    return (DDI_SUCCESS);
            case DDI_RESUME:
                    return (DDI_SUCCESS);
            default:
                    return (DDI_FAILURE);
    static int
    foo_devmap(dev_t dev, devmap_cookie_t handle, offset_t off, size_t len,
        size_t *maplen, uint_t model)
        struct foo_state *fsp;
        int error, rnumber;
        off_t regsize;
        /* Set up data access attribute structure */
        struct ddi_device_acc_attr foo_acc_attr = {
            DDI_DEVICE_ATTR_V0,
            DDI_STRUCTURE_BE_ACC,
            DDI_STRICTORDER_ACC
        fsp = ddi_get_soft_state(foo_state_head, getminor(dev));
        if (fsp == NULL)
            return (-1);
        /* use register set 0 */
        rnumber = 0;
        /* get size of register set */
        if (ddi_dev_regsize(fsp->dev, rnumber, &regsize) != DDI_SUCCESS)
            return (-1);
        /* round up len to a multiple of a page size */
        len = ptob(btopr(len));
        if (off + len > regsize)
            return (-1);
        /* Set up the device mapping */
        error = devmap_devmem_setup(handle, fsp->dev, NULL, rnumber,
           off, len, PROT_ALL, DEVMAP_DEFAULTS, &foo_acc_attr);
        /* acknowledge the entire range */
        *maplen = len;
        return (error);
    static int
    foo_segmap(dev_t dev, off_t off, struct as *asp, caddr_t *addrp,
         off_t len, unsigned int prot, unsigned int maxprot,
         unsigned int flags, cred_t *credp)
         return (ddi_devmap_segmap(dev, off, asp, addrp,
              len, prot, maxprot, flags, credp));
    }

    Hi java_user,
    There are no EBIU VIs. You will need to use C code for that part of your application.
    Mike Lyons
    National Instruments
    http://www.ni.com/devzone

  • Memory mapping large files

    Hi folks.
    I am developing an application that has very large input files. During execution, the files will be processed twice: once, sequentially to get the position of each piece of data in the file, and then directly by seeking to a specific position to retrieve a specific piece of information.
    My rational for doing this is to avoid loading the entire content of the file into memory via some data structure. However, all of the seeking/reading seems to be quite a performance hit.
    Is there a way to memory map a file and then be able to read only a portion of the data based on its byteposition? I've searched around for sample code, but I can only find examples of sequential access.
    Any help will be appreciated extremely!!
    Thanks

    That's pretty simple. Thanks
    Follow-up questions:
    The code I have now reads:
    FileChannel fc = seqDBRAF.getChannel();
    ByteBuffer roBuf = fc.map(FileChannel.MapMode.READ_ONLY, 0, fc.size());
    CharBuffer cb = Charset.forName("ISO-8859-15").newDecoder().decode(roBuf);
    The decode line takes a long time to execute not the "map" line. Why is this?
    If/when I use the position method to "seek" to the right place, should I do this to the ByteBuffer and then decode? Or decode first and then just read from the position in the Charbuffer?
    Thanks

  • Error code 1450 - memory mapped file

    Hello,
    in my application I am using memory mapped files. I have three of it, the maximum size of the biggest one is 5MB. I store 64 Waveforms from a DAQ card in it. 
    The application runs fine, but sometimes comes an error, when I try to access the MMF. The error code is 1450, "insufficient system resources"
    Is a size of 5MB too big? Should I rather create one MMF for each waveform?

    Hi mitulatbati,
    which development tools are you actually using?
    Which platform, libraries and so on...?
    Can you post example code?
    Marco Brauner NIG 

  • Acquisition d'une caméra par PCI express

    Bonjour, nous sommes 3 étudiants en 2ème année de DUT génie industriel et maintenance et nous devons réaliser un projet de TP à distance par LabVIEW. Il y a donc une interface LabVIEW avec un retour vidéo. Nous avons besoin de choisir une carte d'acquisition PCI express d'après nos professeurs mais nous n'y connaissons rien. La caméra est une Sony EVI-D100P rotative. Nous avons le choix entre changer des caméras pour une aussi performante qui possède deja une carte d'acquisition ou garder cette Sony et acheter la carte d'acquisition, il faut faire au moins cher. Que pouvez- vous nous conseillé comme carte pour la Sony ou éventuellement pouvez vous nous aider a trouver la bonne caméra qui possèdera de bonne qualité? 
    Merci d'avance.
    Cordialement.

    Bonjour,
    Je vous invite à contacter le service commercial de National Instruments au 01.57.66.24.24 ou bien directement le commercial de votre région.
    Ce seront les plus aptes à vous conseiller.
    Bonne journée
    Valentin
    Certified TestStand Architect
    Certified LabVIEW Developer
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Travaux Pratiques d'initiation à LabVIEW et à la mesure
    Du 2 au 23 octobre, partout en France

  • PCI Express interface control using LABVIEW

    I've made my own PCI Express card which is meant for data transmission from external device to PC through PCI Express intergace.
    Everything is being controlled by FPGA chip.
    My qiestion is, how to make Labview be able to recognise the device and send data through PCIe interface?
    Thanks you very in advance for you help.

    Hi
    Meghan,
    Thanks for your reply!
    Basically, this is a signal
    acquisition system. The main part are ADC which is connected to FIFO memory and
    then to PCI Express pins. Cyclone from ALTERA is meant to control all the
    processes.
    Something similar you can find here: 
    http://www.knottsystems.com/cyclone.aspSo, all the system is located on the PCI
    Express card which is supposed to communicate with a PC through PCI Express
    Bus.
    There is a program inside the Cyclone which makes all the necessary
    packages according to PCIe Specification for the data transmission through the
    Bus.
    So the problem is how to get data into the PC using
    Labview.
    Thanks,
    Igors
    Engineer of Electronics

Maybe you are looking for

  • How to restore Ipod database without iTunes?

    Hi, My iPod mini is visible to any aplication except iTunes. I have tried all it sugested on the manuals to fix it and nothing worked. Others applications like RealPlayer and Anapod can see that the iPod is connect but can´t show its content. RealPla

  • PPTP Problems with RV320

    I just bought a new RV320 to replace my older RV082 in my local office network. I was able to get the RV320 set up and running, but had a problem with the PPTP settings. On the RV082 I have three gateway-to-gateway VPNs set up and when a user logs in

  • MIRO with Aggregation: configurable material

    Hi, We have Created PO for a configurable material  where we specified the char. values for variant at the time of the MIGO we specified the char. values in   Batch classification. Now while doing MIRO we selected the layout Aggregation: configurable

  • Adding XML fragments to a document in a XMLType table

    Hi, Is there a direct way to insert an XML fragment into a document held in a XMLtype, or does this have to be done via the updatexml function? thanks Pete

  • PHP/MySQL versions needed?

    I have been using php 4.3.11 and MySql 4.0.15 on a Mac G5 with Deamweaver 8, I just upgraded to CS 3 and got a new Intel MacBook and just put PHP 5 on it, but what version of MySql is recommended? I put on Mysql 5, but could not get it to work, and a