Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.19-rc2 /Documentation/pci.txt

Filename:/Documentation/pci.txt
Lines Added:7
Lines Deleted:0
Also changed in: (Previous) 2.4.19-rc1  2.4.19-pre10  2.4.19-pre9  2.4.19-pre8  2.4.19-pre7  2.4.19-pre6 
(Following) 2.4.19-rc3  2.4.19-rc4  2.4.19-rc5  2.4.19  2.4.21-bk1  2.4.21-bk2 

Location
[  2.4.19-rc2
  [  Documentation
     o  pci.txt

Patch

diff -Naur -X /home/marcelo/lib/dontdiff linux.orig/Documentation/pci.txt linux/Documentation/pci.txt
--- linux.orig/Documentation/pci.txt   2001-12-21 17:41:53.000000000 +0000
+++ linux/Documentation/pci.txt   2002-07-16 23:18:18.000000000 +0000
@@ -156,6 +156,11 @@
 which enables the bus master bit in PCI_COMMAND register and also fixes
 the latency timer value if it's set to something bogus by the BIOS.
 
+   If you want to use the PCI Memory-Write-Invalidate transaction,
+call pci_set_mwi().  This enables bit PCI_COMMAND bit for Mem-Wr-Inval
+and also ensures that the cache line size register is set correctly.
+Make sure to check the return value of pci_set_mwi(), not all architectures
+may support Memory-Write-Invalidate.
 
 4. How to access PCI config space
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -202,6 +207,8 @@
 pci_resource_len()      Returns the byte length of a PCI region
 pci_set_drvdata()      Set private driver data pointer for a pci_dev
 pci_get_drvdata()      Return private driver data pointer for a pci_dev
+pci_set_mwi()         Enable Memory-Write-Invalidate transactions.
+pci_clear_mwi()         Disable Memory-Write-Invalidate transactions.
 
 
 7. Miscellaneous hints


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.