[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opensolaris-driver-discuss
Subject:    Re: [driver-discuss] How to allocate the PCI memory space manually?
From:       edward <Edward.Shu () Sun ! COM>
Date:       2010-04-12 5:12:00
Message-ID: 4BC2ABA0.8010607 () sun ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


   There is a internal interface ndi_ra_alloc() for you.
Tough this interface is designed for nexus drivers to allocate
the pci resource,  it is a extra bonus for leaf drivers.  You can
use it in your driver, but it is not guaranteed for leaf drivers.


19:57,:
> hi,
> I am using the Simics simulator to simulate a serengeti machine for 
> the purpose of research.
>
> The PCI devices have three memory spaces: configuration, i/o and 
> memory space in the memory map. Now, I want to write a driver for a 
> particular PCI device. One of the entries in the driver is going to 
> provide a way allocating the PCI memory space by some designate 
> algorithm.
>
> I am new in PCI driver writing, can anyone tell me if the PCI memory 
> space specified by the BAR(Base Address Register) in PCI configuration 
> space is capable of being allocated by the user program or by the 
> device driver?
>
> Thanks in advance.
>
>
> -- 
> Regards
> Dunning
>
> School Of Computer Science and Technology
> Beijng Institute of Technology, China, 100081
> dunning2006@gmail.com <mailto:dunning2006@gmail.com>
>
>
> _______________________________________________
> driver-discuss mailing list
> driver-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/driver-discuss
>    


[Attachment #5 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  <title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
  There is a internal interface ndi_ra_alloc() for you. <br>
Tough this interface is designed for nexus drivers to allocate<br>
the pci resource,  it is a extra bonus for leaf drivers.  You can<br>
use it in your driver, but it is not guaranteed for leaf drivers. <br>
<br>
<br>
19:57,:
<blockquote
 cite="mid:z2i30e32c261004070457h5393511fobc1d29a360f25546@mail.gmail.com"
 type="cite">hi, <br>
I am using the Simics simulator to simulate a serengeti machine for the
purpose of research.<br>
  <br>
The PCI devices have three memory spaces: configuration, i/o and memory
space in the memory map. Now, I want to write a driver for a particular
PCI device. One of the entries in the driver is going to provide a way
allocating the PCI memory space by some designate algorithm.  <br>
  <br>
I am new in PCI driver writing, can anyone tell me if the PCI memory
space specified by the BAR(Base Address Register) in PCI configuration
space is capable of being allocated by the user program or by the
device driver?<br>
  <br>
Thanks in advance.<br>
 <br clear="all">
  <br>
-- <br>
Regards<br>
Dunning<br>
  <br>
School Of Computer Science and Technology <br>
Beijng Institute of Technology, China, 100081<br>
  <a moz-do-not-send="true" \
href="mailto:dunning2006@gmail.com">dunning2006@gmail.com</a><br>  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
driver-discuss mailing list
<a class="moz-txt-link-abbreviated" \
href="mailto:driver-discuss@opensolaris.org">driver-discuss@opensolaris.org</a> <a \
class="moz-txt-link-freetext" \
href="http://mail.opensolaris.org/mailman/listinfo/driver-discuss">http://mail.opensolaris.org/mailman/listinfo/driver-discuss</a>
  </pre>
</blockquote>
<br>
</body>
</html>



_______________________________________________
driver-discuss mailing list
driver-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/driver-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic