search for: pxe_get_nic_typ

Displaying 4 results from an estimated 4 matches for "pxe_get_nic_typ".

Did you mean: pxe_get_nic_type
2012 Nov 23
1
[PATCH] nictype.c32: PXELINUX module to display UNDI NIC bus type...
...(const char *prog); + +static const char prog_name[] = "nictype.c32"; + +int main(int argc, char **argv) +{ + int status; + t_PXENV_UNDI_GET_NIC_TYPE nic_type_info; + char filename[] = "VVVVDDDD"; + + openconsole(&dev_stdcon_r, &dev_stdcon_w); + + status = pxe_get_nic_type(&nic_type_info); + if (status == -1 || status != PXENV_STATUS_SUCCESS) { + fprintf(stderr, "pxe_get_nic_type failure\n"); + goto err_nic_type_info; + } + + /* Unknown NIC type? */ + if (nic_type_info.NicType >= Countof(nic_type_names)) + nic_type_info.NicType = 0; + +...
2012 Jun 26
2
[GIT PULL] elflink bug fixes
...e/syslinux/pxe.h +++ b/com32/include/syslinux/pxe.h @@ -34,11 +34,11 @@ #ifndef _SYSLINUX_PXE_H #define _SYSLINUX_PXE_H -#include <pxe.h> #include <syslinux/pxe_api.h> /* SYSLINUX-defined PXE utility functions */ int pxe_get_cached_info(int level, void **buf, size_t *len); -int pxe_get_nic_type(t_PXENV_UNDI_GET_NIC_TYPE *gnt); +int pxe_get_nic_type(t_PXENV_UNDI_GET_NIC_TYPE * gnt); +uint32_t pxe_dns(const char *hostname); #endif /* _SYSLINUX_PXE_H */ diff --git a/com32/lib/Makefile b/com32/lib/Makefile index daa7284..57e9c2f 100644 --- a/com32/lib/Makefile +++ b/com32/lib/Makefile @@...
2012 Jul 16
5
[PATCH 0/5] Deleting __intcall() from Syslinux
From: Matt Fleming <matt.fleming at intel.com> Since we can't use __intcall() for EFI, and since we can now have the ELF module code resolve all our symbols at runtime, we should delete as many references to __intcall() as possible and just access the symbols directly. The most interesting patch is the support for weak symbols. We need to be able to reference derivative-specific
2012 Aug 14
1
[GIT PULL] elflink fixes
...{ + if (err) { err = -1; goto exit; } diff --git a/com32/lib/syslinux/pxe_get_nic.c b/com32/lib/syslinux/pxe_get_nic.c index b301a75..6e256f9 100644 --- a/com32/lib/syslinux/pxe_get_nic.c +++ b/com32/lib/syslinux/pxe_get_nic.c @@ -42,25 +42,19 @@ or -1 on invocation failure */ int pxe_get_nic_type(t_PXENV_UNDI_GET_NIC_TYPE *gnt) { - com32sys_t regs; t_PXENV_UNDI_GET_NIC_TYPE *lgnt; + int err; lgnt = lzalloc(sizeof *lgnt); if (!lgnt) return -1; - memset(&regs, 0, sizeof regs); - regs.eax.w[0] = 0x0009; - regs.ebx.w[0] = PXENV_UNDI_GET_NIC_TYPE; - r...