Browse Source

Remove more obsolete files

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
7e3a8f5e10
2 changed files with 0 additions and 101 deletions
  1. 0
    49
      src/core/background.c
  2. 0
    52
      src/include/background.h

+ 0
- 49
src/core/background.c View File

@@ -1,49 +0,0 @@
1
-#include "background.h"
2
-
3
-static struct background backgrounds[0]
4
-	__table_start ( struct background, background );
5
-static struct background backgrounds_end[0]
6
-	__table_end ( struct background, background );
7
-
8
-/** @file */
9
-
10
-/**
11
- * Call send method of all background protocols
12
- *
13
- * @v timestamp		Current time
14
- * @ret None		-
15
- * @err None		-
16
- *
17
- * This calls each background protocol's background::send() method.
18
- */
19
-void background_send ( unsigned long timestamp ) {
20
-	struct background *background;
21
-
22
-	for ( background = backgrounds ; background < backgrounds_end ;
23
-	      background++ ) {
24
-		if ( background->send )
25
-			background->send ( timestamp );
26
-	}
27
-}
28
-
29
-/**
30
- * Call process method of all background protocols
31
- *
32
- * @v timestamp		Current time
33
- * @v ptype		Packet type
34
- * @v ip		IP header, if present
35
- * @ret None		-
36
- * @err None		-
37
- *
38
- * This calls each background protocol's background::process() method.
39
- */
40
-void background_process ( unsigned long timestamp, unsigned short ptype,
41
-			  struct iphdr *ip ) {
42
-	struct background *background;
43
-
44
-	for ( background = backgrounds ; background < backgrounds_end ;
45
-	      background++ ) {
46
-		if ( background->process )
47
-			background->process ( timestamp, ptype, ip );
48
-	}
49
-}

+ 0
- 52
src/include/background.h View File

@@ -1,52 +0,0 @@
1
-#ifndef BACKGROUND_H
2
-#define BACKGROUND_H
3
-
4
-/** @file
5
- *
6
- * Background protocols
7
- *
8
- * Some protocols (e.g. ARP, IGMP) operate in the background; the
9
- * upper layers are not aware of their operation.  When an ARP query
10
- * for the local station's IP address arrives, Etherboot must reply to
11
- * it regardless of what other operations are currently in progress.
12
- *
13
- * Background protocols are called in two circumstances: when
14
- * Etherboot is about to poll for a packet, and when Etherboot has
15
- * received a packet that the upper layer (whatever that may currently
16
- * be) isn't interested in.
17
- *
18
- */
19
-
20
-#include <gpxe/tables.h>
21
-#include "ip.h"
22
-
23
-/** A background protocol */
24
-struct background {
25
-	/** Send method
26
-	 *
27
-	 * This method will be called whenever Etherboot is about to
28
-	 * poll for a packet.  The background protocol should use this
29
-	 * method to send out any periodic transmissions that it may
30
-	 * require.
31
-	 */
32
-	void ( *send ) ( unsigned long timestamp );
33
-	/** Process method
34
-	 *
35
-	 * This method will be called whenever Etherboot has received
36
-	 * a packet and doesn't know what to do with it.
37
-	 */
38
-	void ( *process ) ( unsigned long timestamp, unsigned short ptype,
39
-			    struct iphdr *ip );
40
-};
41
-
42
-/** A member of the background protocols table */
43
-#define __background __table ( struct background, background, 01 )
44
-
45
-/* Functions in background.c */
46
-
47
-extern void background_send ( unsigned long timestamp );
48
-
49
-extern void background_process ( unsigned long timestamp, unsigned short ptype,
50
-				 struct iphdr *ip );
51
-
52
-#endif /* BACKGROUND_H */

Loading…
Cancel
Save