Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
3.4 KiB

  1. /*
  2. *
  3. * Modifications: $Header: H:/ARCHIVES/preboot/lsa2/inc/pxe_cmn.h_v 1.3 May 09 1997 08:50:12 vprabhax $
  4. *
  5. * Copyright(c) 1997 by Intel Corporation. All Rights Reserved.
  6. *
  7. */
  8. #ifndef _PXENV_CMN_H
  9. #define _PXENV_CMN_H
  10. /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
  11. /* PXENV.H - PXENV/TFTP/UNDI API common, Version 2.x, 97-Jan-17
  12. *
  13. * Constant and type definitions used in other PXENV API header files.
  14. */
  15. /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
  16. /* Parameter/Result structure storage types.
  17. */
  18. #ifndef _BASETSD_H_
  19. typedef signed char INT8;
  20. typedef signed short INT16;
  21. typedef signed long INT32;
  22. typedef unsigned char UINT8;
  23. typedef unsigned short UINT16;
  24. typedef unsigned long UINT32;
  25. #endif
  26. /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
  27. /* Result codes returned in AX by a PXENV API service.
  28. */
  29. #define PXENV_EXIT_SUCCESS 0x0000
  30. #define PXENV_EXIT_FAILURE 0x0001
  31. #define PXENV_EXIT_CHAIN 0xFFFF /* used internally */
  32. /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
  33. /* CPU types
  34. */
  35. #define PXENV_CPU_X86 0
  36. #define PXENV_CPU_ALPHA 1
  37. #define PXENV_CPU_PPC 2
  38. /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
  39. /* Bus types
  40. */
  41. #define PXENV_BUS_ISA 0
  42. #define PXENV_BUS_EISA 1
  43. #define PXENV_BUS_MCA 2
  44. #define PXENV_BUS_PCI 3
  45. #define PXENV_BUS_VESA 4
  46. #define PXENV_BUS_PCMCIA 5
  47. /* = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = */
  48. /* Status codes returned in the status word of PXENV API parameter structures.
  49. */
  50. /* General errors */
  51. #define PXENV_STATUS_SUCCESS 0x00
  52. #define PXENV_STATUS_FAILURE 0x01 /* General failure. */
  53. #define PXENV_STATUS_BAD_FUNC 0x02 /* Invalid function number. */
  54. #define PXENV_STATUS_UNSUPPORTED 0x03 /* Function is not yet supported. */
  55. #define PXENV_STATUS_1A_HOOKED 0x04 /* Int 1Ah cannot be unhooked. */
  56. /* ARP errors */
  57. #define PXENV_STATUS_ARP_TIMEOUT 0x11
  58. /* TFTP errors */
  59. #define PXENV_STATUS_TFTP_CANNOT_ARP_ADDRESS 0x30
  60. #define PXENV_STATUS_TFTP_OPEN_TIMEOUT 0x32
  61. #define PXENV_STATUS_TFTP_UNKNOWN_OPCODE 0x33
  62. #define PXENV_STATUS_TFTP_ERROR_OPCODE 0x34
  63. #define PXENV_STATUS_TFTP_READ_TIMEOUT 0x35
  64. #define PXENV_STATUS_TFTP_WRITE_TIMEOUT 0x37
  65. #define PXENV_STATUS_TFTP_CANNOT_OPEN_CONNECTION 0x38
  66. #define PXENV_STATUS_TFTP_CANNOT_READ_FROM_CONNECTION 0x39
  67. #define PXENV_STATUS_TFTP_CANNOT_WRITE_TO_CONNECTION 0x3A
  68. /* BOOTP errors */
  69. #define PXENV_STATUS_BOOTP_TIMEOUT 0x41
  70. #define PXENV_STATUS_BOOTP_NO_CLIENT_OR_SERVER_IP 0x42
  71. #define PXENV_STATUS_BOOTP_NO_BOOTFILE_NAME 0x43
  72. #define PXENV_STATUS_BOOTP_CANNOT_ARP_REDIR_SRVR 0x44
  73. /* DHCP errors */
  74. #define PXENV_STATUS_DHCP_TIMEOUT 0x51
  75. #define PXENV_STATUS_UNDI_MEDIATEST_FAILED 0x61
  76. /* MTFTP errors */
  77. #define PXENV_STATUS_MTFTP_CANNOT_ARP_ADDRESS 0x90
  78. #define PXENV_STATUS_MTFTP_OPEN_TIMEOUT 0x92
  79. #define PXENV_STATUS_MTFTP_UNKNOWN_OPCODE 0x93
  80. #define PXENV_STATUS_MTFTP_READ_TIMEOUT 0x95
  81. #define PXENV_STATUS_MTFTP_WRITE_TIMEOUT 0x97
  82. #define PXENV_STATUS_MTFTP_CANNOT_OPEN_CONNECTION 0x98
  83. #define PXENV_STATUS_MTFTP_CANNOT_READ_FROM_CONNECTION 0x99
  84. #define PXENV_STATUS_MTFTP_CANNOT_WRITE_TO_CONNECTION 0x9A
  85. #define PXENV_STATUS_MTFTP_CANNOT_INIT_NIC_FOR_MCAST 0x9B
  86. #define PXENV_STATUS_MTFTP_TOO_MANY_PACKAGES 0x9C
  87. #define PXENV_STATUS_MTFTP_MCOPY_PROBLEM 0x9D
  88. #endif /* _PXENV_CMN_H */
  89. /* EOF - $Workfile: pxe_cmn.h $ */