lkml.org 
[lkml]   [1999]   [Dec]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[Drivers] PCI base address
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.024 / U:1.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site