6 #include <linux/module.h>
7 #include <linux/kernel.h>
8 #include <linux/string.h>
9 #include <linux/errno.h>
13 #include <linux/netdevice.h>
17 #include <linux/types.h>
18 #include <linux/bitops.h>
23 #define SNI_82596_DRIVER_VERSION "SNI RM 82596 driver - Revision: 0.01"
25 static const char sni_82596_string[] =
"snirm_82596";
27 #define DMA_ALLOC dma_alloc_coherent
28 #define DMA_FREE dma_free_coherent
29 #define DMA_WBACK(priv, addr, len) do { } while (0)
30 #define DMA_INV(priv, addr, len) do { } while (0)
31 #define DMA_WBACK_INV(priv, addr, len) do { } while (0)
33 #define SYSBUS 0x00004400
36 #define SWAP32(x) cpu_to_le32((u32)(x))
37 #define SWAP16(x) cpu_to_le16((u16)(x))
39 #define OPT_MPU_16BIT 0x01
92 if (!res || !ca || !options || !idprom)
99 goto probe_failed_free_mpu;
103 netdevice = alloc_etherdev(
sizeof(
struct i596_private));
105 goto probe_failed_free_ca;
108 platform_set_drvdata (dev, netdevice);
126 if (!netdevice->
irq) {
132 lp = netdev_priv(netdevice);
143 probe_failed_free_ca:
145 probe_failed_free_mpu:
152 struct net_device *dev = platform_get_drvdata(pdev);
165 .probe = sni_82596_probe,
168 .name = sni_82596_string,
173 static int __devinit sni_82596_init(
void)
180 static void __exit sni_82596_exit(
void)