Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Add second space indentation for bit field value...



details:   https://anonhg.NetBSD.org/src/rev/7e460e78cdbb
branches:  trunk
changeset: 948381:7e460e78cdbb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Dec 28 13:12:24 2020 +0000

description:
Add second space indentation for bit field values for Enhanced Allocation
capabilities.  From thorpej.

diffstat:

 sys/dev/pci/pcireg.h |  58 +++++++++++++++++++++++++--------------------------
 1 files changed, 28 insertions(+), 30 deletions(-)

diffs (75 lines):

diff -r dacd54791b63 -r 7e460e78cdbb sys/dev/pci/pcireg.h
--- a/sys/dev/pci/pcireg.h      Mon Dec 28 12:56:33 2020 +0000
+++ b/sys/dev/pci/pcireg.h      Mon Dec 28 13:12:24 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pcireg.h,v 1.152 2020/12/28 12:38:44 skrll Exp $       */
+/*     $NetBSD: pcireg.h,v 1.153 2020/12/28 13:12:24 skrll Exp $       */
 
 /*
  * Copyright (c) 1995, 1996, 1999, 2000
@@ -1878,38 +1878,36 @@
 /* Bit definitions for the first DW of each entry */
 #define PCI_EA_ES      __BITS(2, 0)    /* Entry Size */
 #define PCI_EA_BEI     __BITS(7, 4)    /* BAR Equivalent Indicator */
-#define PCI_EA_BEI_BAR0                0       /* BAR0 (10h) */
-#define PCI_EA_BEI_BAR1                1       /* BAR1 (14h) */
-#define PCI_EA_BEI_BAR2                2       /* BAR2 (18h) */
-#define PCI_EA_BEI_BAR3                3       /* BAR3 (1ch) */
-#define PCI_EA_BEI_BAR4                4       /* BAR4 (20h) */
-#define PCI_EA_BEI_BAR5                5       /* BAR5 (24h) */
-#define PCI_EA_BEI_BEHIND      6       /* Behind the function (for type1) */
-#define PCI_EA_BEI_NOTIND      7       /* Not Indicated */
-#define PCI_EA_BEI_EXPROM      8       /* Expansion ROM */
-#define PCI_EA_BEI_VFBAR0      9       /* VF BAR0 */
-#define PCI_EA_BEI_VFBAR1      10      /* VF BAR1 */
-#define PCI_EA_BEI_VFBAR2      11      /* VF BAR2 */
-#define PCI_EA_BEI_VFBAR3      12      /* VF BAR3 */
-#define PCI_EA_BEI_VFBAR4      13      /* VF BAR4 */
-#define PCI_EA_BEI_VFBAR5      14      /* VF BAR5 */
-#define PCI_EA_BEI_RESERVED    15      /* Reserved (treat as Not Indicated) */
-
+#define  PCI_EA_BEI_BAR0       0       /* BAR0 (10h) */
+#define  PCI_EA_BEI_BAR1       1       /* BAR1 (14h) */
+#define  PCI_EA_BEI_BAR2       2       /* BAR2 (18h) */
+#define  PCI_EA_BEI_BAR3       3       /* BAR3 (1ch) */
+#define  PCI_EA_BEI_BAR4       4       /* BAR4 (20h) */
+#define  PCI_EA_BEI_BAR5       5       /* BAR5 (24h) */
+#define  PCI_EA_BEI_BEHIND     6       /* Behind the function (for type1) */
+#define  PCI_EA_BEI_NOTIND     7       /* Not Indicated */
+#define  PCI_EA_BEI_EXPROM     8       /* Expansion ROM */
+#define  PCI_EA_BEI_VFBAR0     9       /* VF BAR0 */
+#define  PCI_EA_BEI_VFBAR1     10      /* VF BAR1 */
+#define  PCI_EA_BEI_VFBAR2     11      /* VF BAR2 */
+#define  PCI_EA_BEI_VFBAR3     12      /* VF BAR3 */
+#define  PCI_EA_BEI_VFBAR4     13      /* VF BAR4 */
+#define  PCI_EA_BEI_VFBAR5     14      /* VF BAR5 */
+#define  PCI_EA_BEI_RESERVED   15      /* Reserved (treat as Not Indicated) */
 #define PCI_EA_PP      __BITS(15, 8)   /* Primary Properties */
 #define PCI_EA_SP      __BITS(23, 16)  /* Secondary Properties */
 /* PP and SP's values */
-#define PCI_EA_PROP_MEM_NONPREF        0x00    /* Memory Space, Non-Prefetchable */
-#define PCI_EA_PROP_MEM_PREF   0x01    /* Memory Space, Prefetchable */
-#define PCI_EA_PROP_IO         0x02    /* I/O Space */
-#define PCI_EA_PROP_VF_MEM_NONPREF 0x03        /* Resorce for VF use. Mem. Non-Pref */
-#define PCI_EA_PROP_VF_MEM_PREF        0x04    /* Resorce for VF use. Mem. Prefetch */
-#define PCI_EA_PROP_BB_MEM_NONPREF 0x05        /* Behind Bridge: MEM. Non-Pref */
-#define PCI_EA_PROP_BB_MEM_PREF 0x06   /* Behind Bridge: MEM. Prefetch */
-#define PCI_EA_PROP_BB_IO      0x07    /* Behind Bridge: I/O Space */
-#define PCI_EA_PROP_MEM_UNAVAIL        0xfd    /* Memory Space Unavailable */
-#define PCI_EA_PROP_IO_UNAVAIL 0xfe    /* IO Space Unavailable */
-#define PCI_EA_PROP_UNAVAIL    0xff    /* Entry Unavailable for use */
-
+#define  PCI_EA_PROP_MEM_NONPREF       0x00    /* Memory Space, Non-Prefetchable */
+#define  PCI_EA_PROP_MEM_PREF          0x01    /* Memory Space, Prefetchable */
+#define  PCI_EA_PROP_IO                        0x02    /* I/O Space */
+#define  PCI_EA_PROP_VF_MEM_NONPREF    0x03    /* Resorce for VF use. Mem. Non-Pref */
+#define  PCI_EA_PROP_VF_MEM_PREF       0x04    /* Resorce for VF use. Mem. Prefetch */
+#define  PCI_EA_PROP_BB_MEM_NONPREF    0x05    /* Behind Bridge: MEM. Non-Pref */
+#define  PCI_EA_PROP_BB_MEM_PREF       0x06    /* Behind Bridge: MEM. Prefetch */
+#define  PCI_EA_PROP_BB_IO             0x07    /* Behind Bridge: I/O Space */
+#define  PCI_EA_PROP_MEM_UNAVAIL       0xfd    /* Memory Space Unavailable */
+#define  PCI_EA_PROP_IO_UNAVAIL                0xfe    /* IO Space Unavailable */
+#define  PCI_EA_PROP_UNAVAIL           0xff    /* Entry Unavailable for use */
 #define PCI_EA_W       __BIT(30)       /* Writable */
 #define PCI_EA_E       __BIT(31)       /* Enable for this entry */
 



Home | Main Index | Thread Index | Old Index