lkml.org 
[lkml]   [2002]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Q: PCI Driver ioremap
Date
From
> pci_enable_device (pdev)

Should check the return but that is fine I guess

> if(base==0)
> DBG("memory mapped wrong\n");//this is never reached
> writew(0xffff, base + 0x48);
> <snip>
> The write is unsuccessful or at least the data never reaches the card.
> What am I doing incorrectly?


Looks fine to me. Obviously you should a read to make sure the write
reaches the card from PCI posting but I'd expect that to timeout and
hit the card
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.037 / U:0.484 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site