Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/cardbus allow mapping of the expansion rom
details: https://anonhg.NetBSD.org/src/rev/08e9e2254600
branches: trunk
changeset: 477679:08e9e2254600
user: joda <joda%NetBSD.org@localhost>
date: Wed Oct 27 14:14:18 1999 +0000
description:
allow mapping of the expansion rom
diffstat:
sys/dev/cardbus/cardbus_map.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r a08b348f33dd -r 08e9e2254600 sys/dev/cardbus/cardbus_map.c
--- a/sys/dev/cardbus/cardbus_map.c Wed Oct 27 14:09:52 1999 +0000
+++ b/sys/dev/cardbus/cardbus_map.c Wed Oct 27 14:14:18 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cardbus_map.c,v 1.4 1999/10/27 10:04:41 haya Exp $ */
+/* $NetBSD: cardbus_map.c,v 1.5 1999/10/27 14:14:18 joda Exp $ */
/*
* Copyright (c) 1999
@@ -87,7 +87,8 @@
cardbusreg_t address, mask;
int s;
- if (reg < PCI_MAPREG_START || reg >= PCI_MAPREG_END || (reg & 3)) {
+ if (reg != CARDBUS_ROM_REG
+ && (reg < PCI_MAPREG_START || reg >= PCI_MAPREG_END || (reg & 3))) {
panic("cardbus_io_find: bad request");
}
@@ -154,7 +155,8 @@
cardbusreg_t address, mask;
int s;
- if (reg < PCI_MAPREG_START || reg >= PCI_MAPREG_END || (reg & 3)) {
+ if (reg != CARDBUS_ROM_REG &&
+ (reg < PCI_MAPREG_START || reg >= PCI_MAPREG_END || (reg & 3))) {
panic("cardbus_find_mem: bad request");
}
Home |
Main Index |
Thread Index |
Old Index