Browse Source

Add placeholder ibft.h

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
72b1629cee
2 changed files with 13 additions and 4 deletions
  1. 13
    0
      src/include/gpxe/ibft.h
  2. 0
    4
      src/tests/iscsiboot.c

+ 13
- 0
src/include/gpxe/ibft.h View File

1
+#ifndef _GPXE_IBFT_H
2
+#define _GPXE_IBFT_H
3
+
4
+/* Placeholder file */
5
+
6
+static inline int ibft_fill_data ( struct net_device *netdev __unused,
7
+				   const char *initiator_iqn __unused,
8
+				   struct sockaddr_tcpip *st_target __unused,
9
+				   const char *target_iqn __unused ) {
10
+	return 0;
11
+}
12
+ 
13
+#endif /* _GPXE_IBFT_H */

+ 0
- 4
src/tests/iscsiboot.c View File

3
 #include <vsprintf.h>
3
 #include <vsprintf.h>
4
 #include <gpxe/netdevice.h>
4
 #include <gpxe/netdevice.h>
5
 #include <gpxe/iscsi.h>
5
 #include <gpxe/iscsi.h>
6
-#if 0
7
 #include <gpxe/ibft.h>
6
 #include <gpxe/ibft.h>
8
-#endif
9
 #include <int13.h>
7
 #include <int13.h>
10
 
8
 
11
 static struct iscsi_device test_iscsidev;
9
 static struct iscsi_device test_iscsidev;
35
 		printf ( "Could not reach %s\n", target_iqn );
33
 		printf ( "Could not reach %s\n", target_iqn );
36
 		return rc;
34
 		return rc;
37
 	}
35
 	}
38
-#if 0
39
 	ibft_fill_data ( netdev, initiator_iqn, target, target_iqn );
36
 	ibft_fill_data ( netdev, initiator_iqn, target, target_iqn );
40
-#endif
41
 	memset ( &drive, 0, sizeof ( drive ) );
37
 	memset ( &drive, 0, sizeof ( drive ) );
42
 	drive.drive = drivenum;
38
 	drive.drive = drivenum;
43
 	drive.blockdev = &test_iscsidev.scsi.blockdev;
39
 	drive.blockdev = &test_iscsidev.scsi.blockdev;

Loading…
Cancel
Save