Re: Long-standing bugs and typos

Stephen Lee (sl14@crux5.cit.cornell.edu)
Wed, 6 Mar 1996 00:56:11 -0500


On Mar 5, 9:10pm, Johannes Kroeger wrote:
>
> Hello experts,
>
> Here is a small collection of bugs and typos that should be fixed before the
> next stable release.
>
Add this typo to your list...

This is linux/include/linux/pci.h:

--- pci.h- Wed Mar 6 01:01:45 1996
+++ pci.h Wed Mar 6 01:01:53 1996
@@ -536,8 +536,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)