summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/netdevice.h
diff options
context:
space:
mode:
authorMarty Connor2006-08-09 06:42:14 +0200
committerMarty Connor2006-08-09 06:42:14 +0200
commitee9ae8130a7acfbc6a96dd86cf6cf62569e68169 (patch)
tree63a80d61dd24cd4f649a478c79f733efeb3c771d /src/include/gpxe/netdevice.h
parentMake VERSION_MAJOR for gPXE be 0 (diff)
downloadipxe-ee9ae8130a7acfbc6a96dd86cf6cf62569e68169.tar.gz
ipxe-ee9ae8130a7acfbc6a96dd86cf6cf62569e68169.tar.xz
ipxe-ee9ae8130a7acfbc6a96dd86cf6cf62569e68169.zip
Remove _PROTOCOL macros for gcc 3.2 compatibility
Diffstat (limited to 'src/include/gpxe/netdevice.h')
-rw-r--r--src/include/gpxe/netdevice.h18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/include/gpxe/netdevice.h b/src/include/gpxe/netdevice.h
index 60ce886d..b7ec83d9 100644
--- a/src/include/gpxe/netdevice.h
+++ b/src/include/gpxe/netdevice.h
@@ -176,21 +176,11 @@ struct net_device {
void *priv;
};
-/**
- * Register a link-layer protocol
- *
- * @v protocol Link-layer protocol
- */
-#define LL_PROTOCOL( protocol ) \
- struct ll_protocol protocol __table ( ll_protocols, 01 )
+/** Declare a link-layer protocol */
+#define __ll_protocol __table ( ll_protocols, 01 )
-/**
- * Register a network-layer protocol
- *
- * @v protocol Network-layer protocol
- */
-#define NET_PROTOCOL( protocol ) \
- struct net_protocol protocol __table ( net_protocols, 01 )
+/** Declare a network-layer protocol */
+#define __net_protocol __table ( net_protocols, 01 )
/**
* Get network device name