On Sat, 13 Oct 2007 19:53:57 +0530 "vasant j" <vasant.embsys@xxxxxxxxx> wrote: > I am new to linux programming....i am programming for PCI > card.....My problem is i have used *"request_mem_region( )"* command > and requested for 1k of memory.....It is returning failure.How to > tackle this.... > > i did like this : > char *p; > p=request_mem_region(0x2000,0xb,"pci"); 0x2000 should be the address of the card mem (wich you find out with pci_resource_start()) and 0xb is the len (pci_resource_len()). "pci" should be something unique IIRC. Bye...Frank
Attachment:
signature.asc
Description: PGP signature