patch-2.4.19 linux-2.4.19/Documentation/pci.txt
Next file: linux-2.4.19/Documentation/power/pci.txt
Previous file: linux-2.4.19/Documentation/networking/vortex.txt
Back to the patch index
Back to the overall index
-  Lines: 21
-  Date:
Fri Aug  2 17:39:42 2002
-  Orig file: 
linux-2.4.18/Documentation/pci.txt
-  Orig date: 
Fri Dec 21 09:41:53 2001
diff -urN linux-2.4.18/Documentation/pci.txt linux-2.4.19/Documentation/pci.txt
@@ -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
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)