Add PCI_BAR(n) for the nth Base Address Register.
This commit is contained in:
parent
061b0589a4
commit
1d2aca0728
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: pcireg.h,v 1.66 2010/02/26 00:38:14 dyoung Exp $ */
|
/* $NetBSD: pcireg.h,v 1.67 2010/03/20 00:23:41 dyoung Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1995, 1996, 1999, 2000
|
* Copyright (c) 1995, 1996, 1999, 2000
|
||||||
@ -365,6 +365,8 @@ typedef u_int8_t pci_revision_t;
|
|||||||
#define PCI_BAR4 0x20
|
#define PCI_BAR4 0x20
|
||||||
#define PCI_BAR5 0x24
|
#define PCI_BAR5 0x24
|
||||||
|
|
||||||
|
#define PCI_BAR(__n) (0x10 + 4 * (__n))
|
||||||
|
|
||||||
#define PCI_MAPREG_TYPE(mr) \
|
#define PCI_MAPREG_TYPE(mr) \
|
||||||
((mr) & PCI_MAPREG_TYPE_MASK)
|
((mr) & PCI_MAPREG_TYPE_MASK)
|
||||||
#define PCI_MAPREG_TYPE_MASK 0x00000001
|
#define PCI_MAPREG_TYPE_MASK 0x00000001
|
||||||
|
Loading…
Reference in New Issue
Block a user