summaryrefslogtreecommitdiffstats
path: root/sys/i386/pci
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1997-05-26 21:25:24 +0000
committerse <se@FreeBSD.org>1997-05-26 21:25:24 +0000
commitd3b40e61a72f912d95e1d111dfde12fb8fc11155 (patch)
tree0707cbc906cf2a6126b7a9e5f6f3284b6936c96f /sys/i386/pci
parentd4c4dc86bf4338e642f9f145855a15e93e2199e9 (diff)
downloadFreeBSD-src-d3b40e61a72f912d95e1d111dfde12fb8fc11155.zip
FreeBSD-src-d3b40e61a72f912d95e1d111dfde12fb8fc11155.tar.gz
Fix previous fix: The enable bit is bit 31 (0x8000000) and not bit 15.
Diffstat (limited to 'sys/i386/pci')
-rw-r--r--sys/i386/pci/pci_bus.c4
-rw-r--r--sys/i386/pci/pci_cfgreg.c4
-rw-r--r--sys/i386/pci/pci_pir.c4
3 files changed, 6 insertions, 6 deletions
diff --git a/sys/i386/pci/pci_bus.c b/sys/i386/pci/pci_bus.c
index cc58c0d..7085c1e 100644
--- a/sys/i386/pci/pci_bus.c
+++ b/sys/i386/pci/pci_bus.c
@@ -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: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
+ * $Id: pcibus.c,v 1.37 1997/05/26 21:11:05 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, 0x8000 |
+ outl(CONF1_ADDR_PORT, (1 << 31) |
(bus << 16) | (slot << 11) | (func << 8) | reg);
dataport = CONF1_DATA_PORT;
break;
diff --git a/sys/i386/pci/pci_cfgreg.c b/sys/i386/pci/pci_cfgreg.c
index cc58c0d..7085c1e 100644
--- a/sys/i386/pci/pci_cfgreg.c
+++ b/sys/i386/pci/pci_cfgreg.c
@@ -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: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
+ * $Id: pcibus.c,v 1.37 1997/05/26 21:11:05 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, 0x8000 |
+ outl(CONF1_ADDR_PORT, (1 << 31) |
(bus << 16) | (slot << 11) | (func << 8) | reg);
dataport = CONF1_DATA_PORT;
break;
diff --git a/sys/i386/pci/pci_pir.c b/sys/i386/pci/pci_pir.c
index cc58c0d..7085c1e 100644
--- a/sys/i386/pci/pci_pir.c
+++ b/sys/i386/pci/pci_pir.c
@@ -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: pcibus.c,v 1.36 1997/05/26 15:08:42 se Exp $
+ * $Id: pcibus.c,v 1.37 1997/05/26 21:11:05 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, 0x8000 |
+ outl(CONF1_ADDR_PORT, (1 << 31) |
(bus << 16) | (slot << 11) | (func << 8) | reg);
dataport = CONF1_DATA_PORT;
break;
OpenPOWER on IntegriCloud