diff options
Diffstat (limited to 'sys/dev/pci/if_bge.c')
-rw-r--r-- | sys/dev/pci/if_bge.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index c99d24ff12e..7289f9359e1 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.115 2005/12/11 01:37:21 brad Exp $ */ +/* $OpenBSD: if_bge.c,v 1.116 2005/12/12 05:25:07 brad Exp $ */ /* * Copyright (c) 2001 Wind River Systems @@ -1830,6 +1830,14 @@ bge_attach(struct device *parent, struct device *self, void *aux) NULL, NULL) != 0) sc->bge_pcie = 1; + /* + * PCI-X check. + */ + sc->bge_pcix = 0; + if (pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_PCIX, + NULL, NULL) != 0) + sc->bge_pcix = 1; + /* Try to reset the chip. */ DPRINTFN(5, ("bge_reset\n")); bge_reset(sc); |