Loading drivers/staging/vt6655/device_main.c +1 −9 Original line number Diff line number Diff line Loading @@ -902,10 +902,6 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) VNSvInPortB(pDevice->PortOffset+0x4F, &value); pr_debug("After write: value is %x\n", value); #endif #ifdef IO_MAP pDevice->PortOffset = pDevice->ioaddr; #endif // do reset if (!MACbSoftwareReset(pDevice->PortOffset)) { pr_err(DEVICE_NAME ": Failed to access MAC hardware..\n"); Loading Loading @@ -949,14 +945,10 @@ static void device_print_info(PSDevice pDevice) DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: %s\n", dev->name, get_chip_name(pDevice->chip_id)); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: MAC=%pM", dev->name, dev->dev_addr); #ifdef IO_MAP DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IO=0x%lx ", (unsigned long)pDevice->ioaddr); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IRQ=%d\n", pDevice->dev->irq); #else DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IO=0x%lx Mem=0x%lx ", (unsigned long)pDevice->ioaddr, (unsigned long)pDevice->PortOffset); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IRQ=%d\n", pDevice->dev->irq); #endif } static void vt6655_init_info(struct pci_dev *pcid, PSDevice *ppDevice, Loading drivers/staging/vt6655/upc.h +0 −34 Original line number Diff line number Diff line Loading @@ -34,38 +34,6 @@ /*--------------------- Export Definitions -------------------------*/ // // For IO mapped // #ifdef IO_MAP #define VNSvInPortB(dwIOAddress, pbyData) \ do { \ *(pbyData) = inb(dwIOAddress); \ } while (0) #define VNSvInPortW(dwIOAddress, pwData) \ do { \ *(pwData) = inw(dwIOAddress); \ } while (0) #define VNSvInPortD(dwIOAddress, pdwData) \ do { \ *(pdwData) = inl(dwIOAddress); \ } while (0) #define VNSvOutPortB(dwIOAddress, byData) \ outb(byData, dwIOAddress) #define VNSvOutPortW(dwIOAddress, wData) \ outw(wData, dwIOAddress) #define VNSvOutPortD(dwIOAddress, dwData) \ outl(dwData, dwIOAddress) #else // // For memory mapped IO // Loading Loading @@ -100,8 +68,6 @@ do { \ writel((unsigned long)dwData, dwIOAddress); \ } while (0) #endif // // ALWAYS IO-Mapped IO when in 16-bit/32-bit environment // Loading Loading
drivers/staging/vt6655/device_main.c +1 −9 Original line number Diff line number Diff line Loading @@ -902,10 +902,6 @@ vt6655_probe(struct pci_dev *pcid, const struct pci_device_id *ent) VNSvInPortB(pDevice->PortOffset+0x4F, &value); pr_debug("After write: value is %x\n", value); #endif #ifdef IO_MAP pDevice->PortOffset = pDevice->ioaddr; #endif // do reset if (!MACbSoftwareReset(pDevice->PortOffset)) { pr_err(DEVICE_NAME ": Failed to access MAC hardware..\n"); Loading Loading @@ -949,14 +945,10 @@ static void device_print_info(PSDevice pDevice) DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: %s\n", dev->name, get_chip_name(pDevice->chip_id)); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO "%s: MAC=%pM", dev->name, dev->dev_addr); #ifdef IO_MAP DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IO=0x%lx ", (unsigned long)pDevice->ioaddr); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IRQ=%d\n", pDevice->dev->irq); #else DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IO=0x%lx Mem=0x%lx ", (unsigned long)pDevice->ioaddr, (unsigned long)pDevice->PortOffset); DBG_PRT(MSG_LEVEL_INFO, KERN_INFO " IRQ=%d\n", pDevice->dev->irq); #endif } static void vt6655_init_info(struct pci_dev *pcid, PSDevice *ppDevice, Loading
drivers/staging/vt6655/upc.h +0 −34 Original line number Diff line number Diff line Loading @@ -34,38 +34,6 @@ /*--------------------- Export Definitions -------------------------*/ // // For IO mapped // #ifdef IO_MAP #define VNSvInPortB(dwIOAddress, pbyData) \ do { \ *(pbyData) = inb(dwIOAddress); \ } while (0) #define VNSvInPortW(dwIOAddress, pwData) \ do { \ *(pwData) = inw(dwIOAddress); \ } while (0) #define VNSvInPortD(dwIOAddress, pdwData) \ do { \ *(pdwData) = inl(dwIOAddress); \ } while (0) #define VNSvOutPortB(dwIOAddress, byData) \ outb(byData, dwIOAddress) #define VNSvOutPortW(dwIOAddress, wData) \ outw(wData, dwIOAddress) #define VNSvOutPortD(dwIOAddress, dwData) \ outl(dwData, dwIOAddress) #else // // For memory mapped IO // Loading Loading @@ -100,8 +68,6 @@ do { \ writel((unsigned long)dwData, dwIOAddress); \ } while (0) #endif // // ALWAYS IO-Mapped IO when in 16-bit/32-bit environment // Loading