Re: Accessing the configuration registers

Vikram (vikram@controlnet.co.in)
Tue, 4 Jan 2000 10:53:49 +0530


You have to map the base_address of registers to virtual memory using
ioremap() , and using address remapped by ioremap() use readl() and writel()
for read-write.

--Vikram

----- Original Message -----
From: Anil Kumar S R <anilsr@sasi.com>
To: <linux-kernel@vger.rutgers.edu>
Sent: Monday, January 03, 2000 1:13 PM
Subject: Accessing the configuration registers

Hi,
I am using a PCI-ISA bridge, I want to read the Local Configuration
Registers.
There are two ways to do :
1. I/O mapped
2. Memory mapped
using PCI Base Address Registers.

In case of I/O mapped ,I can use IN & OUT instructions
for accessing the configuration registers.

In case of Memory mapped how do access the Configuration Registers.

With regards,
Anil

-
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/

-
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/