On Sun, Jul 02, 2006 at 06:37:18PM +0300, John Que wrote:

> Could a single call to
> pci_request_regions(pdev, driver_name)
> result in that we see 2 regions afterwards when running
> cat /proc/iomem?

Sure.  Take a look at the output of 'lspci -v' some time.  On my
machine, for example, I have:

05:11.0 Ethernet controller: Intel Corporation 82546GB Gigabit Ethernet 
Controller (rev 03)
        Subsystem: Intel Corporation PRO/1000 MT Dual Port Network Connection
        Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 10
        Memory at cffc0000 (64-bit, non-prefetchable) [size=128K]   <===
        Memory at cff00000 (64-bit, non-prefetchable) [size=256K]   <===
        I/O ports at e400 [size=64]
        Expansion ROM at cfec0000 [disabled] [size=256K]
        Capabilities: <available only to root>

05:11.1 Ethernet controller: Intel Corporation 82546GB Gigabit Ethernet 
Controller (rev 03)
        Subsystem: Intel Corporation PRO/1000 MT Dual Port Network Connection
        Flags: bus master, 66Mhz, medium devsel, latency 64, IRQ 11
        Memory at cffe0000 (64-bit, non-prefetchable) [size=128K]   <===
        Memory at cff80000 (64-bit, non-prefetchable) [size=256K]   <===
        I/O ports at e800 [size=64]
        Expansion ROM at cff40000 [disabled] [size=256K]
        Capabilities: <available only to root>

As you can see, each port of the dual-port card has two memory regions,
four a total of 4 memory regions.


cheers,
Lennert
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to