summaryrefslogtreecommitdiffstats
path: root/sys/pci/pcivar.h
diff options
context:
space:
mode:
authorse <se@FreeBSD.org>1999-01-19 23:29:20 +0000
committerse <se@FreeBSD.org>1999-01-19 23:29:20 +0000
commit2142e794d720c024a10ed406c58af94d4dd0ab6b (patch)
tree7fe02de1c4a8aa39ce6e7823fa18def84b54a456 /sys/pci/pcivar.h
parent1b9be3b5a8aed57d7ee12ba5025079529ea33d28 (diff)
downloadFreeBSD-src-2142e794d720c024a10ed406c58af94d4dd0ab6b.zip
FreeBSD-src-2142e794d720c024a10ed406c58af94d4dd0ab6b.tar.gz
Fix problem with zero valued map registers followed by valid map entries.
The previous code just ignored the invalid map register, but this gave surprising results because of the way pci_map_port() associated the map register offset supplied with a map entry in the map array.
Diffstat (limited to 'sys/pci/pcivar.h')
-rw-r--r--sys/pci/pcivar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/pcivar.h b/sys/pci/pcivar.h
index 15f1478..7843e3a 100644
--- a/sys/pci/pcivar.h
+++ b/sys/pci/pcivar.h
@@ -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: pcivar.h,v 1.23 1998/12/14 05:47:29 dillon Exp $
+ * $Id: pcivar.h,v 1.24 1999/01/13 04:59:19 bde Exp $
*
*/
@@ -66,7 +66,7 @@ typedef struct {
#define PCI_MAPPORT 0x04 /* port map */
u_int8_t ln2size;
u_int8_t ln2range;
-/* u_int8_t dummy;*/
+ u_int8_t reg; /* offset of map register in config space */
} pcimap;
/* config header information common to all header types */
OpenPOWER on IntegriCloud