Messages in this thread | | | From | "Vikram" <> | Subject | [Drivers] PCI base address | Date | Mon, 1 Nov 1999 23:14:44 +0530 |
| |
Hi !! I am developing one linux drive for a nic which is memory mapped. The problem I am facing is I get two different base memory addresses with two methods.
My card's base memory address is stored at PCI_BASE_ADDRESS_0 which I will map using ioremap() but problem is when I read pcibios_read_config_dword() and struct pci_dev *pdev=pci_find_slot()
/*************************************/ PCI registers read using pcibiod_read_config_dword() 10021383 24000006 2000000 4000 e9ff0000 0 Dec 24 14:11:37 vikram last message repeated 6 times e8fc0000 0 0 10a END -- PCI registers /*************************************/ BASE_ADDRESS_by pcibios_read_config_word = e9ff0000
/*************************************/ struct pci_dev *pdev= pci_find_slot(....);
pdev->base_addr[0] =e9180000 pdev->base_addr[1] = 0 pdev->base_addr[2] = 0 pdev->base_addr[3] = 0 pdev->base_addr[4] = 0 pdev->base_addr[5] = 0 /*************************************/
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |