home *** CD-ROM | disk | FTP | other *** search
/ Troubleshooting Netware Systems / CSTRIAL0196.BIN / attach / pcc / v08n03 / netwrk.exe / WDPOST.ZIP / WDPOST.TAR / wdpost.dir / sample.drv / lancons.h < prev    next >
C/C++ Source or Header  |  1988-06-21  |  2KB  |  55 lines

  1. /************************************************************************
  2. * RCS  $Revision$            $Date$                *
  3. *                                    *
  4. * LANCONS.H                                *
  5. *                                    *
  6. * Environment                                *
  7. *     MS-DOS, WD8003, Generic IBM PC.                    *
  8. *                                    *
  9. * (c) Copyright 1987 Western Digital Corporation(R).            *
  10. * All reghts reserved. Contains confidential information        *
  11. * and trade secrets proprietary to Western Digital Corporation        *
  12. *                                    *
  13. * Module Description                             *
  14. *    Machine (PC) specific MAC module constants for the 82588     *
  15. *    based WD8000 LAN controller card running on a generic IBM PC.    *
  16. *                                    *
  17. * Activity:                                *
  18. *    DATE:    06/02/87                        *
  19. *    LEVEL:    et.bb.00                        *
  20. *    WHO:    KC                             *
  21. *    CHANGE: Created file for Netbios emulator WD8003 port.        *
  22. *                                    *
  23. *        DATE:   3/15/88                            *
  24. *     LEVEL:    etbc00
  25. *    WHO:    Steve Chen                        *
  26. *    CHANGE:    Add define constant for interrupt controller 2        *
  27. ************************************************************************/
  28.  
  29. /* %%4%%+ */
  30. /* Interrupt stuff */        
  31. #define    INTVEC        0x03        /* Interrupt request vector */
  32. #define INTBASE     0x08        /* Base of interrupts for 8259 */
  33. #define INTBASE_2    0x70        /* [8] base of int contorller 2 */
  34. #define P8259        0x21        /* PC 8259 mask port */
  35. #define P8259_2        0xA1    /*[8] 8259 mask for interrupt controller 2 */
  36. #define INTREG        0x20    /*[8] 8259 int register for controller 1 */
  37. #define INTREG_2    0xA0    /*[8] 8259 int register for controller 2 */
  38. /* %%4%%- */
  39.  
  40. /*
  41.  * Offset of header from beginning of message driver
  42.  */
  43. #define OPOFF        (long) 0x20E
  44.  
  45. /* 
  46.  * This is the structure which sits at the beginning of the message driver.
  47.  *  (Defined in C.OBJ).    Needed for serial number & maybe a version number.
  48.  */
  49. struct drvrhdr
  50.     {
  51.     char serial[10];        /* serial number */
  52.     char reserv[16];
  53.     };
  54.  
  55.