[PATCH] 2.5.24 : drivers/net/defxx.c

Frank Davis
2002-06-24T02:38:43Z

Hello all,
The following patch adds the check for 32-bit DMA mapping functionality
for the defxx driver. This is the first step to make this driver compliant
with Documentation/DMA-mapping.txt . Please review.
Regards,
Frank

--- drivers/net/defxx.c.old Sun May 26 14:37:25 2002
+++ drivers/net/defxx.c Sun Jun 23 22:18:39 2002
@@ -427,7 +427,10 @@
printk(version); /* we only display this string ONCE */
}
#endif
-
+ if(pci_set_dma_mask(pdev, 0xffffffff))
+ {
+ printk(KERN_WARNING "defxx : No suitable DMA available\n");
+ }
/*
* init_fddidev() allocates a device structure with private data, clears the device structure and private data,
* and calls fddi_setup() and register_netdev(). Not much left to do for us here.