summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/include')
-rw-r--r--src/include/gpxe/netdevice.h18
-rw-r--r--src/include/gpxe/tcpip.h18
2 files changed, 8 insertions, 28 deletions
diff --git a/src/include/gpxe/netdevice.h b/src/include/gpxe/netdevice.h
index 60ce886d9..b7ec83d96 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
diff --git a/src/include/gpxe/tcpip.h b/src/include/gpxe/tcpip.h
index daed7da53..6ab2f195d 100644
--- a/src/include/gpxe/tcpip.h
+++ b/src/include/gpxe/tcpip.h
@@ -94,21 +94,11 @@ struct tcpip_net_protocol {
struct sockaddr_tcpip *st_dest );
};
-/**
- * Register a TCP/IP transport-layer protocol
- *
- * @v protocol Transport-layer protocol
- */
-#define TCPIP_PROTOCOL( protocol ) \
- struct tcpip_protocol protocol __table ( tcpip_protocols, 01 )
+/** Declare a TCP/IP transport-layer protocol */
+#define __tcpip_protocol __table ( tcpip_protocols, 01 )
-/**
- * Register a TCP/IP network-layer protocol
- *
- * @v protocol Network-layer protocol
- */
-#define TCPIP_NET_PROTOCOL( protocol ) \
- struct tcpip_net_protocol protocol __table ( tcpip_net_protocols, 01 )
+/** Declare a TCP/IP network-layer protocol */
+#define __tcpip_net_protocol __table ( tcpip_net_protocols, 01 )
extern int tcpip_rx ( struct pk_buff *pkb, uint8_t tcpip_proto,
struct sockaddr_tcpip *st_src,