diff options
| author | Michael Brown | 2023-01-22 17:54:20 +0100 |
|---|---|---|
| committer | Michael Brown | 2023-01-22 18:45:34 +0100 |
| commit | 2061d658b3d199ec84976e6a573f68424369be69 (patch) | |
| tree | 0645e9e632cade65e7c9bddd5a4dce313c35b8ef /src/arch/arm32/include/ipxe/efi/dhcparch.h | |
| parent | [build] Move -Ulinux to common Makefile (diff) | |
| download | ipxe-2061d658b3d199ec84976e6a573f68424369be69.tar.gz ipxe-2061d658b3d199ec84976e6a573f68424369be69.tar.xz ipxe-2061d658b3d199ec84976e6a573f68424369be69.zip | |
[dhcp] Simplify platform-specific client architecture definitions
Move the platform-specific DHCP client architecture definitions to
header files of the form <ipxe/$(PLATFORM)/dhcparch.h>. This
simplifies the directory structure and allows the otherwise unused
arch/$(ARCH)/include/$(PLATFORM) to be removed from the include
directory search path, which avoids the confusing situation in which a
header file may potentially be accessed through more than one path.
For Linux userspace binaries on any architecture, use the EFI values
for that architecture by delegating to the EFI header file. This
avoids the need to explicitly select values for Linux userspace
binaries for each architecture.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/arm32/include/ipxe/efi/dhcparch.h')
| -rw-r--r-- | src/arch/arm32/include/ipxe/efi/dhcparch.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/arch/arm32/include/ipxe/efi/dhcparch.h b/src/arch/arm32/include/ipxe/efi/dhcparch.h new file mode 100644 index 000000000..0b669992c --- /dev/null +++ b/src/arch/arm32/include/ipxe/efi/dhcparch.h @@ -0,0 +1,20 @@ +#ifndef _IPXE_EFI_DHCPARCH_H +#define _IPXE_EFI_DHCPARCH_H + +/** @file + * + * DHCP client architecture definitions + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include <ipxe/dhcp.h> + +/** DHCP client architecture */ +#define DHCP_ARCH_CLIENT_ARCHITECTURE DHCP_CLIENT_ARCHITECTURE_ARM32 + +/** DHCP client network device interface */ +#define DHCP_ARCH_CLIENT_NDI 1 /* UNDI */ , 3, 10 /* v3.10 */ + +#endif /* _IPXE_EFI_DHCPARCH_H */ |
