From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9952 invoked by alias); 13 Jun 2002 16:28:58 -0000 Mailing-List: contact ecos-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@sources.redhat.com Received: (qmail 9939 invoked from network); 13 Jun 2002 16:28:56 -0000 Received: from unknown (HELO proxy.centtech.com) (206.196.95.10) by sources.redhat.com with SMTP; 13 Jun 2002 16:28:56 -0000 Received: from sprint.centtech.com (sprint.centtech.com [10.177.173.31]) by proxy.centtech.com (8.11.6/8.11.6) with ESMTP id g5DGSq101012; Thu, 13 Jun 2002 11:28:52 -0500 (CDT) Received: (from root@localhost) by sprint.centtech.com (8.11.6+Sun/8.11.6) id g5DGSqF29529; Thu, 13 Jun 2002 11:28:52 -0500 (CDT) Received: from centtech.com (shad [10.177.173.44]) by sprint.centtech.com (8.11.6+Sun/8.11.6) with ESMTP id g5DGSo629522; Thu, 13 Jun 2002 11:28:50 -0500 (CDT) Message-ID: <3D08C565.7000403@centtech.com> Date: Thu, 13 Jun 2002 09:28:00 -0000 From: Stephen Polkowski User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011126 Netscape6/6.2.1 X-Accept-Language: en-us MIME-Version: 1.0 To: namita chawla CC: ecos-discuss@sources.redhat.com References: <20020613115852.26270.qmail@webmail24.rediffmail.com> <87bsafkuzj.fsf@dedasys.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS perl-11 Subject: Re: [ECOS] How to access PCI memory(HELP).... X-SW-Source: 2002-06/txt/msg00225.txt.bz2 Just use the pci functions in eCos. First find the device your are interested in, then get the device info. The info has the base addresses of the pci memory. Then, just reference the memory. // Find host bridge cyg_pci_find_class(0x060000, &shadow_devid); // Get Vendor ID cyg_pci_get_device_info(shadow_devid, &device); David N. Welton wrote: > "namita chawla" writes: > > >>Does a similar function exist in windows so that my application can >>directly access the memory of device? >> > > I take it you mean eCos... did you try just reading and writing to the > memory location? > > -- Stephen Polkowski Centaur Technology Austin, TX (512) 418-5730 -- Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos and search the list archive: http://sources.redhat.com/ml/ecos-discuss