Leaked source code of windows server 2003
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.

58 lines
1.5 KiB

  1. /* config.h
  2. * stuff here is meant to deal w/ portability issues
  3. * across architectur/platforms
  4. *
  5. * ALL_HOST defined means do all work on host, as opposed to some on
  6. * TI board
  7. *
  8. * DIRECT_IO defined means the CPU running the code cas do direct file IO
  9. *
  10. * NO_ADDR_CONST_EXPR defined means the compiler in use can't do address
  11. * arithmetic in integer constant expressions, i.e. case statement
  12. */
  13. #ifndef _CONFIG_H_
  14. #define _CONFIG_H_
  15. #ifdef sun
  16. #define ALL_HOST /* do all the work on the host */
  17. #define DIRECT_IO /* the CPU doing the graphics can do file IO */
  18. /*#define NO_ADDR_CONST_EXPR */
  19. #else /* def sun */
  20. #define ALL_HOST /* do all the work on the host */
  21. #define DIRECT_IO /* the CPU doing the graphics can do file IO */
  22. #define NO_ADDR_CONST_EXPR
  23. #endif /* def sun */
  24. #ifndef FAR
  25. #ifdef MSDOS
  26. #define FAR far
  27. #else
  28. #define FAR
  29. #endif
  30. #endif
  31. /* deal w/ the different pointer addressing, i.e. PR_SHIFT != 0 means bit
  32. * addressing
  33. */
  34. #ifdef MSDOS
  35. #define PR_SHIFT 0 /* Host code; byte addresses */
  36. #elif sun
  37. #define PR_SHIFT 0 /* Host code; byte addresses */
  38. #else
  39. #define PR_SHIFT 3 /* TI code; bit of byte addresses */
  40. #endif /* MSDOS */
  41. /* the following macros are for dealing w/ TI "asm" statement */
  42. #ifdef ALL_HOST
  43. #define DISABLE_INTERRUPT
  44. #define ENABLE_INTERRUPT
  45. #define ASM( a,b) b
  46. #else /* ALL_HOST */
  47. #define DISABLE_INTERRUPT asm (" DINT")
  48. #define ENABLE_INTERRUPT asm (" EINT")
  49. #define ASM( a,b) a
  50. #endif /* ALL_HOST */
  51. #endif /* __CONFIG_H */