home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / veridata.zip / veridata.h < prev    next >
Text File  |  1995-02-19  |  3KB  |  69 lines

  1. /*
  2.  * veridata.h (magic numbers of the Veridata EL-486S/25e notebook)
  3.  */
  4.  
  5. #define HDD_TIMEOUT_PORT 0x01f2 /* port used to send the harddisk timeout value to */
  6. #define HDD_NOTIFY_PORT  0x01f7 /* port used to activate the new value */
  7. #define HDD_NOTIFY_VALUE 0xe3   /* value to send to HDD_NOTIFY_PORT to activate the new value */
  8. /* note: there is no way get the current value of the harddisk */
  9.  
  10. #define VERIDATA_PORT   0x05f0 /* port used for "powersaving" instructions */
  11.  
  12. /*
  13.  * out VERIDATA_PORT,value:
  14.  *   
  15.  * effect  | speed | backlight | COM1 | inverse | blank  | ? | ? | bat. led
  16.  * bit nr  |   1   |    2      |  3   |    4    |   5    | 6 | 7 |     8   
  17.  * ------------------------------------------------------------------------
  18.  *   1     | turbo |    on     |  on  | inverse | normal |   |   |    off   
  19.  *   0     | slow  |    off    |  off | normal  | blank  |   |   |    on    
  20.  *
  21.  * ! if you switch from blank screen to normal screen, then backlight is
  22.  *   always wrong.
  23.  *   to blankscreen: backlight=off + blank=blank
  24.  *   to unblankscreen: blank=normal + backlight=previous state (you have
  25.  *                     remember the state yourself)
  26.  *
  27.  * We will put (bit 6)=0 and (bit 7)=0 (since the BIOS does this also 
  28.  * in MS-DOS), so you should use (value & SAFETY_MASK)
  29.  *
  30.  *
  31.  * in VERIDATA_PORT,value:
  32.  *   
  33.  * effect  | speed | backlight | COM1 | inverse | blank  | source | power
  34.  * bit nr  |   1   |    2      |  3   |    4    |   5    |    6   |  7-8!
  35.  * ----------------------------------------------------------------------
  36.  *   1     | turbo |    on     |  on  | inverse | normal | extern | 
  37.  *   0     | slow  |    of     |  off | normal  | blank  | intern |
  38.  *
  39.  * ! power status
  40.  * ---------------------
  41.  *   7  |   8   | status
  42.  * ---------------------
  43.  *   1  |   1   | ok
  44.  *   1  |   0   | level1
  45.  *   0  |   0   | level2
  46.  */
  47.  
  48. #define SAFETY_MASK   0xf9   /* 11111001 */
  49.  
  50. #define CPU_FAST      0x80   /* 10000000 */
  51. #define BACKLIGHT_ON  0x40   /* 01000000 */
  52. #define COM1_ENABLE   0x20   /* 00100000 */
  53. #define INVERSE_ON    0x10   /* 00010000 */
  54. #define BLANK_OFF     0x08   /* 00001000 */
  55. #define POWER_EXT     0x04   /* 00000100 */
  56. #define BAT_LOW_OFF   0x01   /* 00000001 */
  57.  
  58. #define POWER_MASK    0x03   /* 00000011 */
  59. #define POWER_OK      0x03   /* 00000011 */
  60. #define POWER_LVL1    0x02   /* 00000010 */
  61. #define POWER_LVL2    0x00   /* 00000000 */
  62.  
  63. #ifndef TRUE
  64. #define TRUE 1
  65. #endif
  66. #ifndef FALSE
  67. #define FALSE 0
  68. #endif
  69.