patch-2.1.99 linux/Documentation/pci.txt
Next file: linux/Documentation/powerpc/00-INDEX
Previous file: linux/Documentation/paride.txt
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Tue Apr 28 14:22:04 1998
- Orig file:
v2.1.98/linux/Documentation/pci.txt
- Orig date:
Thu Apr 23 20:21:27 1998
diff -u --recursive --new-file v2.1.98/linux/Documentation/pci.txt linux/Documentation/pci.txt
@@ -22,7 +22,7 @@
In case you want to do some complex matching, look at pci_devices -- it's
a linked list of pci_dev structures for all PCI devices in the system.
- All these methods return pointer to a pci_dev structure which is used as a
+ All these methods return a pointer to a pci_dev structure which is used as a
parameter for many other PCI functions. The rest of them accept bus and
device/function numbers which can be found in pci_dev->bus->number and
pci_dev->devfn. Feel free to use all other fields of the pci_dev structure, but
@@ -34,8 +34,8 @@
2. How to access PCI config space
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can use pci_(read|write)_config_(byte|word|dword) to access the config
-space of device represented by pci_dev. All these functions return 0 when
-successfull or an error code (PCIBIOS_...) which can be translated to text
+space of a device represented by pci_dev. All these functions return 0 when
+successful or an error code (PCIBIOS_...) which can be translated to a text
string by pcibios_strerror. Most drivers expect that accesses to valid PCI
devices don't fail.
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov