Set enable bit when writing the configuration address in configuration
mode 1. Omission of this bit makes all config register accesses fail in on recent chip sets ... (The problem was reported and debug output provided by: Steve Passe)
This commit is contained in:
parent
c4ed75ce19
commit
e0c57a9615
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -59,7 +59,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
|
||||
&& (reg & (bytes -1)) == 0) {
|
||||
switch (cfgmech) {
|
||||
case 1:
|
||||
outl(CONF1_ADDR_PORT,
|
||||
outl(CONF1_ADDR_PORT, 0x8000 |
|
||||
(bus << 16) | (slot << 11) | (func << 8) | reg);
|
||||
dataport = CONF1_DATA_PORT;
|
||||
break;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -59,7 +59,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
|
||||
&& (reg & (bytes -1)) == 0) {
|
||||
switch (cfgmech) {
|
||||
case 1:
|
||||
outl(CONF1_ADDR_PORT,
|
||||
outl(CONF1_ADDR_PORT, 0x8000 |
|
||||
(bus << 16) | (slot << 11) | (func << 8) | reg);
|
||||
dataport = CONF1_DATA_PORT;
|
||||
break;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -59,7 +59,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
|
||||
&& (reg & (bytes -1)) == 0) {
|
||||
switch (cfgmech) {
|
||||
case 1:
|
||||
outl(CONF1_ADDR_PORT,
|
||||
outl(CONF1_ADDR_PORT, 0x8000 |
|
||||
(bus << 16) | (slot << 11) | (func << 8) | reg);
|
||||
dataport = CONF1_DATA_PORT;
|
||||
break;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -59,7 +59,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
|
||||
&& (reg & (bytes -1)) == 0) {
|
||||
switch (cfgmech) {
|
||||
case 1:
|
||||
outl(CONF1_ADDR_PORT,
|
||||
outl(CONF1_ADDR_PORT, 0x8000 |
|
||||
(bus << 16) | (slot << 11) | (func << 8) | reg);
|
||||
dataport = CONF1_DATA_PORT;
|
||||
break;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -59,7 +59,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
|
||||
&& (reg & (bytes -1)) == 0) {
|
||||
switch (cfgmech) {
|
||||
case 1:
|
||||
outl(CONF1_ADDR_PORT,
|
||||
outl(CONF1_ADDR_PORT, 0x8000 |
|
||||
(bus << 16) | (slot << 11) | (func << 8) | reg);
|
||||
dataport = CONF1_DATA_PORT;
|
||||
break;
|
||||
|
@ -23,7 +23,7 @@
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id$
|
||||
* $Id: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
|
||||
*
|
||||
*/
|
||||
|
||||
@ -59,7 +59,7 @@ pci_cfgenable(unsigned bus, unsigned slot, unsigned func, int reg, int bytes)
|
||||
&& (reg & (bytes -1)) == 0) {
|
||||
switch (cfgmech) {
|
||||
case 1:
|
||||
outl(CONF1_ADDR_PORT,
|
||||
outl(CONF1_ADDR_PORT, 0x8000 |
|
||||
(bus << 16) | (slot << 11) | (func << 8) | reg);
|
||||
dataport = CONF1_DATA_PORT;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user