Lines 26-31
Link Here
|
26 |
char *common_hdO_version_string = HDO_VERSION_STRING; |
26 |
char *common_hdO_version_string = HDO_VERSION_STRING; |
27 |
char *common_hdP_version_string = HDP_VERSION_STRING; |
27 |
char *common_hdP_version_string = HDP_VERSION_STRING; |
28 |
|
28 |
|
|
|
29 |
// fix for common symbol exported by nvnetlib.o |
30 |
char* aPhyAddrAndId[256]; |
31 |
|
29 |
/* |
32 |
/* |
30 |
* Driver information |
33 |
* Driver information |
31 |
*/ |
34 |
*/ |
Lines 753-759
Link Here
|
753 |
} |
756 |
} |
754 |
|
757 |
|
755 |
|
758 |
|
756 |
static void nvnet_interrupt(int irq, void *dev_instance, struct pt_regs *regs) |
759 |
static irqreturn_t nvnet_interrupt(int irq, void *dev_instance, struct pt_regs *regs) |
757 |
{ |
760 |
{ |
758 |
struct net_device *dev; |
761 |
struct net_device *dev; |
759 |
struct nvnet_private *priv; |
762 |
struct nvnet_private *priv; |
Lines 765-771
Link Here
|
765 |
irq, dev_instance, regs); |
768 |
irq, dev_instance, regs); |
766 |
|
769 |
|
767 |
if(!dev) |
770 |
if(!dev) |
768 |
return; |
771 |
return IRQ_NONE; |
769 |
|
772 |
|
770 |
if(priv->hwapi->pfnQueryInterrupt(priv->hwapi->pADCX)) |
773 |
if(priv->hwapi->pfnQueryInterrupt(priv->hwapi->pADCX)) |
771 |
{ |
774 |
{ |
Lines 776-781
Link Here
|
776 |
|
779 |
|
777 |
PRINTK(DEBUG_INTR, "nvnet_interrupt - Out\n"); |
780 |
PRINTK(DEBUG_INTR, "nvnet_interrupt - Out\n"); |
778 |
|
781 |
|
|
|
782 |
return IRQ_HANDLED; |
783 |
|
779 |
} |
784 |
} |
780 |
|
785 |
|
781 |
static int nvnet_close(struct net_device *dev) |
786 |
static int nvnet_close(struct net_device *dev) |
Lines 1127-1132
Link Here
|
1127 |
priv->pdev = pdev; |
1132 |
priv->pdev = pdev; |
1128 |
|
1133 |
|
1129 |
SET_MODULE_OWNER(dev); |
1134 |
SET_MODULE_OWNER(dev); |
|
|
1135 |
SET_NETDEV_DEV(dev, &pdev->dev); |
1130 |
priv->regs = (char *)memptr; |
1136 |
priv->regs = (char *)memptr; |
1131 |
pci_set_master(pdev); |
1137 |
pci_set_master(pdev); |
1132 |
|
1138 |
|
Lines 1245-1251
Link Here
|
1245 |
*/ |
1251 |
*/ |
1246 |
static void __devexit nvnet_remove(struct pci_dev *pdev) |
1252 |
static void __devexit nvnet_remove(struct pci_dev *pdev) |
1247 |
{ |
1253 |
{ |
1248 |
struct net_device *dev = pdev->driver_data; |
1254 |
struct net_device *dev = pci_get_drvdata (pdev); |
1249 |
struct nvnet_private *priv = dev->priv; |
1255 |
struct nvnet_private *priv = dev->priv; |
1250 |
int i; |
1256 |
int i; |
1251 |
|
1257 |
|