summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_nfereg.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2006-04-26 02:07:31 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2006-04-26 02:07:31 +0000
commit8e2bdef6dc9b0f4d93dd996ecdc328f333ee798f (patch)
tree60120312e7e18ad70a25b5e4b4c21ed6faa18284 /sys/dev/pci/if_nfereg.h
parent54eb52469e4e2949f9cca3ec348791ea586bfdc0 (diff)
Use %b in error flag printfs to describe meaning of error bits.
requested by deraadt@
Diffstat (limited to 'sys/dev/pci/if_nfereg.h')
-rw-r--r--sys/dev/pci/if_nfereg.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/pci/if_nfereg.h b/sys/dev/pci/if_nfereg.h
index 36d131bf6d8..79eab5149c7 100644
--- a/sys/dev/pci/if_nfereg.h
+++ b/sys/dev/pci/if_nfereg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_nfereg.h,v 1.16 2006/02/22 19:23:44 damien Exp $ */
+/* $OpenBSD: if_nfereg.h,v 1.17 2006/04/26 02:07:30 jsg Exp $ */
/*-
* Copyright (c) 2005 Jonathan Gray <jsg@openbsd.org>
@@ -151,6 +151,10 @@ struct nfe_desc32 {
#define NFE_TX_LASTFRAG_V1 (1 << 0)
} __packed;
+#define NFE_V1_TXERR "\020" \
+ "\14TXERROR\13UNDERFLOW\12LATECOLLISION\11LOSTCARRIER\10DEFERRED" \
+ "\08FORCEDINT\03RETRY\00LASTPACKET"
+
/* V2 Rx/Tx descriptor */
struct nfe_desc64 {
uint32_t physaddr[2];
@@ -165,6 +169,9 @@ struct nfe_desc64 {
#define NFE_TX_LASTFRAG_V2 (1 << 13)
} __packed;
+#define NFE_V2_TXERR "\020" \
+ "\14FORCEDINT\13LASTPACKET\12UNDERFLOW\10LOSTCARRIER\09DEFERRED\02RETRY"
+
/* flags common to V1/V2 descriptors */
#define NFE_RX_CSUMOK 0x1c00
#define NFE_RX_ERROR (1 << 14)