Просмотр исходного кода

Remove the obsolete pre-aBFT AoE boot table.

tags/v0.9.3
Michael Brown 16 лет назад
Родитель
Сommit
9747c1a486
1 измененных файлов: 0 добавлений и 30 удалений
  1. 0
    30
      src/usr/aoeboot.c

+ 0
- 30
src/usr/aoeboot.c Просмотреть файл

10
 #include <int13.h>
10
 #include <int13.h>
11
 #include <usr/aoeboot.h>
11
 #include <usr/aoeboot.h>
12
 
12
 
13
-/**
14
- * AoE boot information block
15
- *
16
- * Must be placed at 40:f0.
17
- *
18
- * This structure needs to be replaced by an ACPI table or similar.
19
- */
20
-struct aoe_boot_info {
21
-	/** Must be 0x01 */
22
-	uint8_t one;
23
-	/** Client MAC address */
24
-	uint8_t client[ETH_ALEN];
25
-	/** Server MAC address */
26
-	uint8_t server[ETH_ALEN];
27
-	/** Shelf number */
28
-	uint16_t shelf;
29
-	/** Slot number */
30
-	uint8_t slot;
31
-} __attribute__ (( packed ));
32
-
33
 /**
13
 /**
34
  * Guess boot network device
14
  * Guess boot network device
35
  *
15
  *
73
 	/* FIXME: ugly, ugly hack */
53
 	/* FIXME: ugly, ugly hack */
74
 	struct aoe_session *aoe =
54
 	struct aoe_session *aoe =
75
 		container_of ( ata.backend, struct aoe_session, refcnt );
55
 		container_of ( ata.backend, struct aoe_session, refcnt );
76
-	struct aoe_boot_info boot_info;
77
-	boot_info.one = 0x01;
78
-	memcpy ( boot_info.client, netdev->ll_addr,
79
-		 sizeof ( boot_info.client ) );
80
-	memcpy ( boot_info.server, aoe->target,
81
-		 sizeof ( boot_info.server ) );
82
-	boot_info.shelf = htons ( aoe->major );
83
-	boot_info.slot = aoe->minor;
84
-	copy_to_real ( 0x40, 0xf0, &boot_info, sizeof ( boot_info ) );
85
-
86
 	abft_fill_data ( aoe );
56
 	abft_fill_data ( aoe );
87
 
57
 
88
 	drive.drive = find_global_dhcp_num_option ( DHCP_EB_BIOS_DRIVE );
58
 	drive.drive = find_global_dhcp_num_option ( DHCP_EB_BIOS_DRIVE );

Загрузка…
Отмена
Сохранить