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.

pxe_addr.h 518B

1234567891011121314151617
  1. /*
  2. * Architecture-specific portion of pxe.h for Etherboot
  3. *
  4. * This file has to define the types SEGOFF16_t, SEGDESC_t and
  5. * SEGSEL_t for use in other PXE structures. See pxe.h for details.
  6. */
  7. #ifndef PXE_ADDR_H
  8. #define PXE_ADDR_H
  9. #define IS_NULL_SEGOFF16(x) ( ( (x).segment == 0 ) && ( (x).offset == 0 ) )
  10. #define SEGOFF16_TO_PTR(x) ( VIRTUAL( (x).segment, (x).offset ) )
  11. #define PTR_TO_SEGOFF16(ptr,segoff16) \
  12. (segoff16).segment = SEGMENT(ptr); \
  13. (segoff16).offset = OFFSET(ptr);
  14. #endif /* PXE_ADDR_H */