diff options
author | Michael Brown | 2007-11-21 04:29:53 +0100 |
---|---|---|
committer | Michael Brown | 2007-11-21 04:29:53 +0100 |
commit | 26f3a09ccf99244fffc4aad23b7bda78c3d9dd21 (patch) | |
tree | 5c41bfc37056a01a8ee0baf68ab9627dd263fb62 /src/arch/i386/include | |
parent | Added definition of a UUID and uuid_ntoa() (for debugging), and (diff) | |
download | ipxe-26f3a09ccf99244fffc4aad23b7bda78c3d9dd21.tar.gz ipxe-26f3a09ccf99244fffc4aad23b7bda78c3d9dd21.tar.xz ipxe-26f3a09ccf99244fffc4aad23b7bda78c3d9dd21.zip |
Add UUID to DHCP request as option 97 (if available).
Diffstat (limited to 'src/arch/i386/include')
-rw-r--r-- | src/arch/i386/include/bits/uuid.h | 10 | ||||
-rw-r--r-- | src/arch/i386/include/smbios.h | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/i386/include/bits/uuid.h b/src/arch/i386/include/bits/uuid.h new file mode 100644 index 00000000..0cbd320a --- /dev/null +++ b/src/arch/i386/include/bits/uuid.h @@ -0,0 +1,10 @@ +#ifndef _I386_UUID_H +#define _I386_UUID_H + +#include <smbios.h> + +static inline int get_uuid ( union uuid *uuid ) { + return smbios_get_uuid ( uuid ); +} + +#endif /* _I386_UUID_H */ diff --git a/src/arch/i386/include/smbios.h b/src/arch/i386/include/smbios.h index f5f0b5c2..821eda17 100644 --- a/src/arch/i386/include/smbios.h +++ b/src/arch/i386/include/smbios.h @@ -46,5 +46,6 @@ extern int find_smbios_structure ( unsigned int type, extern int find_smbios_string ( struct smbios_strings *strings, unsigned int index, char *buffer, size_t length ); +extern int smbios_get_uuid ( union uuid *uuid ); #endif /* _SMBIOS_H */ |