diff options
| author | Michael Brown | 2021-02-17 16:59:52 +0100 |
|---|---|---|
| committer | Michael Brown | 2021-02-17 16:59:52 +0100 |
| commit | 057674bb1f766db8b4c6593dc238ea68e4f38028 (patch) | |
| tree | 5bfd66f170528a5856b0314c0c4cef9a02116a93 /src/include/ipxe | |
| parent | [ath5k] Add missing AR5K_EEPROM_READ in ath5k_eeprom_read_turbo_modes (diff) | |
| download | ipxe-057674bb1f766db8b4c6593dc238ea68e4f38028.tar.gz ipxe-057674bb1f766db8b4c6593dc238ea68e4f38028.tar.xz ipxe-057674bb1f766db8b4c6593dc238ea68e4f38028.zip | |
[pxe] Split out platform-independent portions of cachedhcp.c
Split out the portions of cachedhcp.c that can be shared between BIOS
and UEFI (both of which can provide a buffer containing a previously
obtained DHCP packet, and neither of which provide a means to
determine the length of this DHCP packet).
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/ipxe')
| -rw-r--r-- | src/include/ipxe/cachedhcp.h | 17 | ||||
| -rw-r--r-- | src/include/ipxe/errfile.h | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/include/ipxe/cachedhcp.h b/src/include/ipxe/cachedhcp.h new file mode 100644 index 000000000..7765c6455 --- /dev/null +++ b/src/include/ipxe/cachedhcp.h @@ -0,0 +1,17 @@ +#ifndef _IPXE_CACHEDHCP_H +#define _IPXE_CACHEDHCP_H + +/** @file + * + * Cached DHCP packet + * + */ + +FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); + +#include <stddef.h> +#include <ipxe/uaccess.h> + +extern int cachedhcp_record ( userptr_t data, size_t max_len ); + +#endif /* _IPXE_CACHEDHCP_H */ diff --git a/src/include/ipxe/errfile.h b/src/include/ipxe/errfile.h index f14cb8619..4c1c334d8 100644 --- a/src/include/ipxe/errfile.h +++ b/src/include/ipxe/errfile.h @@ -76,6 +76,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); #define ERRFILE_dummy_sanboot ( ERRFILE_CORE | 0x00240000 ) #define ERRFILE_fdt ( ERRFILE_CORE | 0x00250000 ) #define ERRFILE_dma ( ERRFILE_CORE | 0x00260000 ) +#define ERRFILE_cachedhcp ( ERRFILE_CORE | 0x00270000 ) #define ERRFILE_eisa ( ERRFILE_DRIVER | 0x00000000 ) #define ERRFILE_isa ( ERRFILE_DRIVER | 0x00010000 ) |
