patch-1.3.85 linux/include/linux/pci.h

Next file: linux/include/linux/proc_fs.h
Previous file: linux/include/linux/mtio.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.84/linux/include/linux/pci.h linux/include/linux/pci.h
@@ -569,8 +569,8 @@
  * devices.  The slot/function address of each device is encoded
  * in a single byte as follows:
  *
- *	7:4 = slot
- *	3:0 = function
+ *	7:3 = slot
+ *	2:0 = function
  */
 #define PCI_DEVFN(slot,func)	((((slot) & 0x1f) << 3) | ((func) & 0x07))
 #define PCI_SLOT(devfn)		(((devfn) >> 3) & 0x1f)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this