home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MISC / NETWORK / TEL23SRC.ZIP / NET / ENET / ZYPDEFS.INC < prev   
Encoding:
Text File  |  1990-05-23  |  15.5 KB  |  512 lines

  1. ;************************************************************************
  2. ;*                                    *
  3. ;*    ZYPDEFS.INC -- ZYPHER Definitions                *
  4. ;*                                    *
  5. ;*  Copyright (C) Ungermann-Bass, Inc. 1986, 1987.            *
  6. ;*  All rights reserved.                        *
  7. ;*                                    *
  8. ;************************************************************************
  9. ;*    Revision History                        *
  10. ;*    ----------------                        *
  11. ;*  03/16/87    JF    Added "Get_Xmt_Bfr", "Write_Xmt_Bfr", "Send_    *
  12. ;*            Xmt_Bfr", and "Release_Xmt_Bfr" definitions.    *
  13. ;*  03/19/87    JF    Added definitions for "incremental mode" of    *
  14. ;*            "Receive" command.                *
  15. ;*  03/29/87    JF    Added "Schedule" command definitions.        *
  16. ;*  04/02/87    JF    Added "Set_Multicast" command definitions.    *
  17. ;*                                    *
  18. ;************************************************************************
  19.  
  20.     ;************************************************
  21.     ;*    82586 System Configuration Pointer    *
  22.     ;************************************************
  23.  
  24. SCP_    STRUC
  25.  
  26. SCP_SysBus        db    0    ; System data bus width.
  27.             db    0    ; [Unused by us.]
  28.             dw    0    ;    "
  29.             dw    0    ;    "
  30. SCP_ISCP_Address    dw    0    ; Low order 16 bits of ISCP address.
  31. SCP_ISCP_Address_MSB    db    0    ; High order 6 bits of ISCP address.
  32.             db    0
  33.  
  34. SCP_    ENDS
  35.  
  36.     ;************************************************
  37.     ;*   82586 Intermediate System Control Pointer    *
  38.     ;************************************************
  39.  
  40. ISCP_    STRUC
  41.  
  42. ISCP_Busy        db    0    ; Initialization-in-progress flag.
  43.             db    0    ; [Unused.]
  44. ISCP_SCB_Offset        dw    0    ; Offset of SCB from SCB Base.
  45. ISCP_SCB_Base        dw    0    ; Low order bits of SCB base address.
  46. ISCP_SCB_Base_MSB    db    0    ; High order bits of SCB base address.
  47.             db    0    ; [Unused.]
  48.  
  49. ISCP_    ENDS
  50.  
  51.     ;************************************************
  52.     ;*    82586 System Control Block        *
  53.     ;************************************************
  54.  
  55. SCB_    STRUC
  56.  
  57. SCB_Status    dw    0        ; STAT, CUS, and RUS.
  58. SCB_Command    dw    0        ; ACK, CUC, RESET, and RUC.
  59. SCB_CBL_offset    dw    0        ; Command Block List.
  60. SCB_RFA_offset    dw    0        ; Receive Frame Area.
  61. SCB_CRCERRS    dw    0        ; Cyclic Redundancy Check.
  62. SCB_ALNERRS    dw    0        ; Alignment.
  63. SCB_RSCERRS    dw    0        ; Resource.
  64. SCB_OVRNERRS    dw    0        ; Overrun.
  65.  
  66. SCB_    ENDS
  67.  
  68. SCB_CUS_Ready_bit    equ    0200h
  69. SCB_RUS_Ready_bit    equ    0040h
  70. RUS_No_Resources    equ    0020h
  71. CUC_Start_Command    equ    0100h
  72. RUC_Start_Command    equ    0010h
  73. CX_bit            equ    8000h
  74. CNA_bit            equ    2000h
  75.  
  76.     ;************************************************
  77.     ;*    82586 Transmit Command Block        *
  78.     ;************************************************
  79.  
  80. TCB_    STRUC
  81.  
  82. TCB_Status    dw    0        ; C, B, and other status.
  83. TCB_Command    dw    0        ; EL, S, I, and CMD.
  84. TCB_next_TCB    dw    0        ; Pointer to next TCB (always FFFF).
  85. TCB_1st_TBD    dw    0        ; Address of active TBD, or FFFF.
  86.  
  87. TCB_    ENDS
  88.  
  89. TCB_Completion_Status        equ    BYTE PTR TCB_Status + 1
  90. TCB_Complete_bit        equ    80h
  91. TCB_Complete_and_No_Error_bits    equ    80h+20h
  92. TCB_No_Error_bit        equ    20h
  93. TCB_Hang_bit            equ    8
  94. TCB_EL_bit            equ    8000h
  95.  
  96. CB_Status    equ    WORD PTR 0
  97. CB_C_bit    equ    8000h
  98. CB_OK_bit    equ    2000h
  99.  
  100.     ;************************************************
  101.     ;*    82586 Transmit Buffer Descriptors    *
  102.     ;************************************************
  103.  
  104. TBD    STRUC
  105.  
  106. TBD_EOF_and_Length    dw    0    ; EOF bit and byte count.
  107. TBD_next_TBD        dw    0    ; Pointer to next TBD (always FFFF).
  108. TBD_Buffer        dw    0    ; 16 LSBs of the buffer address.
  109. TBD_Buffer_MSB        db    0    ; 4 MSBs of the buffer address.
  110. TBD_State        db    0    ; [Used as the buffer's state.]
  111. TBD_Link        dw    0    ; [Used to link TBDs on queues.]
  112. TBD_Index        db    0    ; [This TBD's TBD_Table index.]
  113.             db    0    ; [Unused.]
  114. TBD_ZCB_Address        dw    0,0    ; [Holds address of a Transmit_ZCB.]
  115.  
  116. TBD    ENDS
  117.  
  118. TBD_Bfr_Ptr    equ    TBD_ZCB_Address
  119. TBD_Bfr_Room_Left equ    TBD_ZCB_Address+2
  120.  
  121. Max_TBDs        EQU    4
  122.  
  123. TBD_EOF_bit    equ    80h
  124. TBD_Length_bits    equ    3FFFh
  125. Multicast_byte    equ    BYTE PTR 0
  126. Multicast_bit    equ    1
  127.  
  128. TBD_State_Free    equ    0    ; Not in use -- on "Free_TBD_Queue".
  129. TBD_State_User    equ    1    ; Assigned to user for filling with data.
  130. TBD_State_Wait    equ    2    ; Ready to transmit -- on "Waiting_TBD_Queue".
  131. TBD_State_Xmtg    equ    3    ; Being transmitted now.
  132.  
  133.     ;************************************************
  134.     ;*    82586 Receive Frame Descriptors        *
  135.     ;************************************************
  136.  
  137. RFD    STRUC
  138.  
  139. RFD_Status    dw    0    ; C, B, and other status bits of this RFD.
  140.         db    0    ; Unused.
  141. RFD_EOL        db    0    ; End-of-List status byte.
  142. RFD_next_RFD    dw    0    ; Link to next RFD.
  143. RFD_1st_RBD    dw    0    ; Pointer to the first RBD.
  144.  
  145. RFD    ENDS
  146.  
  147. RFD_Complete_bit        equ    8000h
  148. RFD_Complete_and_No_Error_bits    equ    8000h+2000h
  149. RFD_EOL_bit            equ    80h
  150.  
  151.  
  152.     ;************************************************
  153.     ;*    82586 Receive Buffer Descriptors    *
  154.     ;************************************************
  155.  
  156. RBD    STRUC
  157.  
  158. RBD_EOF_F_and_Length    dw    0    ; EOF & F bits and rec'vd byte count.
  159. RBD_next_RBD        dw    0    ; Pointer to next RBD.
  160. RBD_Buffer        dw    0    ; 16 LSBs of the buffer address.
  161. RBD_Buffer_MSB        db    0    ; 4 MSBs of the buffer address.
  162. RBD_State        db    0    ; [Used as the buffer's state.]
  163. RBD_EOL_and_Size    dw    0    ; EOL status and buffer size.
  164. RBD_Link        dw    0    ; [Used to link RBDs on queues.]
  165. RBD_Frame_Length    dw    0    ; [Total length of received frame.]
  166. RBD_Rcv_Hdwr_Status    dw    0    ; [Status from RFD.]
  167.  
  168. RBD    ENDS
  169.  
  170. RBD_EOF_and_F        equ    BYTE PTR RBD_EOF_F_and_Length + 1
  171. RBD_EOL            equ    BYTE PTR RBD_EOL_and_Size + 1
  172.  
  173. RBD_EOF_bit    equ    80h
  174. RBD_F_bit    equ    40h
  175. RBD_EOL_bit    equ    80h
  176. RBD_Size_bits    equ    3fffh
  177. RBD_Length_bits    equ    3fffh
  178.  
  179.     ;************************************************
  180.     ;*    82586 Configure Command Block        *
  181.     ;************************************************
  182.  
  183. CFG_    STRUC
  184.  
  185. CFG_Status        dw    0
  186. CFG_Command        dw    0
  187. CFG_next_CB        dw    0
  188. CFG_Byte_Count        db    0
  189. CFG_FIFO_Limit        db    0
  190. CFG_BF_and_SRDY_ARDY    db    0
  191. CFG_LPBK_PREAM_AL_and_LEN db    0
  192. CFG_BOF_ACR_and_PRIO    db    0
  193. CFG_Interframe_Spacing    db    0
  194. CFG_Slot_Time_Low    db    0
  195. CFG_Retries_and_Slot_Time db    0
  196. CFG_BTSTF_TONOCRS_etc    db    0
  197. CFG_CS_and_CD_things    db    0
  198. CFG_Min_Frame_Length    db    0
  199.             db    0
  200. CFG_    ENDS
  201.  
  202. Bit_Stuffing_bit        EQU    40h
  203. TONO_CRS_bit            EQU    08h
  204. BIT_STUFF_and_TONO_CRS_bits    EQU    48h
  205. Both_Loopback_bits        EQU    0C0h
  206. External_Loopback_bit        EQU    80h
  207. Internal_Loopback_bit        EQU    40h
  208. Save_Bad_Frames_bit        EQU    80h
  209. Alternative_Backoff_bit        EQU    80h
  210.  
  211.     ;************************************************
  212.     ;*  82586 Set Individual Address Command Block    *
  213.     ;************************************************
  214.  
  215. SET_IA_    STRUC
  216.  
  217. IA_Status        dw    0
  218. IA_Command        dw    0
  219. IA_next_CB        dw    0
  220. IA_Address        db    6 dup (0)
  221.  
  222. SET_IA_    ENDS
  223.  
  224.     ;************************************************
  225.     ;*    82586 Multicast Setup Command Block    *
  226.     ;************************************************
  227.  
  228. MCB_    STRUC
  229.         db    0
  230. MCB_Status    db    0        ; C, B, OK, and A status bits.
  231. MCB_Command    dw    0        ; EL, S, I, and CMD.
  232. MCB_next_CB    dw    0        ; Pointer to next Command Block.
  233. MCB_Count    dw    0        ; Count of Multicast Address bytes.
  234.  
  235. MCB_    ENDS
  236.  
  237. MCB_Addresses        equ    BYTE PTR MCB_Count + 2
  238. MCB_Complete_bit    equ    80h
  239.  
  240.  
  241.         ;************************************************
  242.         ;*        ZYPHER Command Blocks            *
  243.         ;************************************************
  244.  
  245.     ;********************************************************
  246.     ;*    Command Block Header -- Common to all Commands    *
  247.     ;********************************************************
  248.  
  249. ZCB_Header    STRUC
  250.  
  251. ZCB_Command        db    0
  252. ZCB_Status        db    0
  253. ZCB_Result        db    0
  254. ZCB_Report_Code        db    0
  255. ZCB_Options        dw    0
  256. ZCB_Post_Routine    dd    0
  257. ZCB_Link        dw    2 dup (0)
  258.  
  259. ZCB_Header    ENDS
  260.  
  261. ZCB_Post_Routine_offset    equ    WORD PTR ZCB_Post_Routine
  262. ZCB_Post_Routine_segment equ    WORD PTR ZCB_Post_Routine + 2
  263.  
  264.  
  265.     ;************************************
  266.     ;*    Transmit Command Block    *
  267.     ;************************************
  268.  
  269. Transmit_ZCB    STRUC
  270.             db    SIZE ZCB_Header dup (0)
  271. ZCB_Xmt_Data_Length    dw    0
  272. ZCB_Xmt_Data_Address    dd    0
  273. ZCB_Xmt_Hdwr_Status    dw    0
  274. ZCB_Xmt_Bfr_ID        db    0,0
  275. ZCB_Xmt_Bfr_Address    dw    0,0
  276.  
  277. Transmit_ZCB    ENDS
  278.  
  279.  
  280.  
  281.     ;************************************
  282.     ;*    Receive Command Block        *
  283.     ;************************************
  284.  
  285. Receive_ZCB    STRUC
  286.             db    SIZE ZCB_Header dup (0)
  287. ZCB_Rcv_Mode        db    0
  288. ZCB_Rcv_Status        db    0
  289. ZCB_Rcv_Buffer_Size    dw    0    ; Size of user's buffer.
  290. ZCB_Rcv_Buffer_Address    dd    0    ; Address of user's buffer.
  291. ZCB_Rcv_Data_Length    dw    0    ; Bytes copied to user's buffer.
  292. ZCB_Rcv_Frame_Count    dw    0    ; Count of as-yet-uncopied bytes left
  293.                     ;  in frame.
  294. ZCB_Rcv_Hdwr_Status    dw    0    ; Status reported by 82586.
  295. ZCB_Rcv_Frame_ID    dw    0    ; Frame ID for "incremental mode".
  296. ZCB_Rcv_Bfr_Ptr        dw    0,0    ; Address of next as-yet-uncopied byte
  297.                     ;  of frame in on-card receive buffer.
  298. ZCB_Rcv_Bfr_Count    dw    0    ; Count of as-yet-uncopied bytes in
  299.                     ;  current on-card receive buffer.
  300. ZCB_Rcv_Descriptor    dw    0,0    ; Address of 82586 RBD (Receive Buffer
  301.                     ;  Descriptor) for current on-card
  302.                     ;  receive buffer.
  303.  
  304. Receive_ZCB    ENDS
  305.  
  306. Rcv_Mode_Incremental    EQU    1
  307.  
  308.  
  309.     ;************************************
  310.     ;*    Initialize Command Block    *
  311.     ;************************************
  312.  
  313. Initialize_ZCB    STRUC
  314.             db    SIZE ZCB_Header dup (0)
  315. ZCB_Init_Modes        dw    0    ; Desired modes of operation.
  316. ZCB_Max_Xmt_Length    dw    0    ; Desired on-card xmit buffer size.
  317. ZCB_Num_Xmt_Buffers    dw    0    ;    "    number of on-card xmit bfrs.
  318. ZCB_Max_Rcv_Size    dw    0    ;    "    on-card recv buffer size.
  319. ZCB_Num_Rcv_Buffers    dw    0    ;    "    number of on-card recv bfrs.
  320. ZCB_Max_Mcast_Addresses    dw    0    ;    "  number of multicast addresses.
  321.             dw    3 dup (0)    ; [Reserved.] 
  322.             dw    2 dup (0)    ; [Reserved.] 
  323. ZCB_82586_CFG_Address    dd    0    ; Offset & Segment of 82586 CFG data.
  324. ZCB_Acq_Modes        dw    0    ; Acquired modes of operation.
  325. ZCB_Acq_Max_Xmt_Length    dw    0    ; Acquired on-card xmit buffer size.
  326. ZCB_Acq_Num_Xmt_Buffers    dw    0    ;    "    number of on-card xmit bfrs.
  327. ZCB_Acq_Max_Rcv_Size    dw    0    ;    "    on-card recv buffer size.
  328. ZCB_Acq_Num_Rcv_Buffers    dw    0    ;    "    number of on-card recv bfrs.
  329. ZCB_Acq_Max_Mcast_Addresses dw    0    ;    "    number of multicast addrs.
  330.             dw    3 dup (0)    ; [Reserved.] 
  331.  
  332. Initialize_ZCB    ENDS
  333.  
  334.     ;****************************************************
  335.     ;*    User-Supplied 82586 Configuration Data Block    *
  336.     ;****************************************************
  337.  
  338. ;  If the "User_Configured_82586" bit is set in the "ZCB_Init_Modes" field
  339. ;  of the "Initialize_ZCB", and the "ZCB_82586_CFG_Address" field is not
  340. ;  equal to (0, 0), the contents of the "ZCB_82586_CFG_Address" field will
  341. ;  be assumed to be the address of a block of 14 bytes with the format given
  342. ;  below.  If the "UCFG_Signature" word contains 429Ah (i.e., 82586 decimal,
  343. ;  truncated to 16 bits), and the "UCFG_Byte_Count" field contains 12, the
  344. ;  12 bytes of the block starting with "UCFG_Byte_Count" will be used for
  345. ;  the "command specific" part of the CONFIGURE commands given to the 82586,
  346. ;  in place of the 82586 configuration data built into the ROM.  The user-
  347. ;  specified configuration will override the broadband/baseband decision that
  348. ;  has been made by "Determine_Baseband_or_Broadband".
  349.  
  350. User_CFG    STRUC
  351.  
  352. UCFG_Signature        dw    0
  353. UCFG_Byte_Count        db    0
  354. UCFG_FIFO_Limit        db    0
  355. UCFG_BF_and_SRDY_ARDY    db    0
  356. UCFG_LPBK_PREAM_AL_and_LEN db    0
  357. UCFG_BOF_ACR_and_PRIO    db    0
  358. UCFG_Interframe_Spacing    db    0
  359. UCFG_Slot_Time_Low    db    0
  360. UCFG_Retries_and_Slot_Time db    0
  361. UCFG_BTSTF_TONOCRS_etc    db    0
  362. UCFG_CS_and_CD_things    db    0
  363. UCFG_Min_Frame_Length    db    0
  364.             db    0
  365. User_CFG    ENDS
  366.  
  367.  
  368.  
  369.     ;************************************
  370.     ;*    Status Command Block        *
  371.     ;************************************
  372.  
  373. Status_ZCB    STRUC
  374.             db    SIZE ZCB_Header dup (0)
  375. ZCB_Stat_State        dw    0
  376. ZCB_Stat_Modes        dw    0    ; Current modes of operation.
  377. ZCB_Stat_Max_Xmt_Length    dw    0    ; Current on-card xmit buffer size.
  378. ZCB_Stat_Num_Xmt_Buffers dw    0    ;    "    number of on-card xmit bfrs.
  379. ZCB_Stat_Max_Rcv_Size    dw    0    ;    "    on-card recv buffer size.
  380. ZCB_Stat_Num_Rcv_Buffers dw    0    ;    "    number of on-card recv bfrs.
  381. ZCB_Stat_Unique_ID    db    6 dup (0)
  382. ZCB_Stat_Total_Xmts    dw    2 dup (0)
  383. ZCB_Stat_Total_Rcvs    dw    2 dup (0)
  384. ZCB_Stat_CRC_Errors    dw    2 dup (0)
  385. ZCB_Stat_ALN_Errors    dw    2 dup (0)
  386. ZCB_Stat_RSC_Errors    dw    2 dup (0)
  387. ZCB_Stat_OVR_Errors    dw    2 dup (0)
  388.             dw    12 dup (0);    [Reserved.]
  389.  
  390. Status_ZCB    ENDS
  391.  
  392.     ;********************************************
  393.     ;*    Setup-Scheduling Command Block    *
  394.     ;********************************************
  395.  
  396. Scheduling_ZCB    STRUC
  397.             db    SIZE ZCB_Header dup (0)
  398. ZCB_Sched_Routine    dw    0,0
  399. ZCB_Sched_Options    dw    0
  400. ZCB_Sched_Interval    dw    0
  401.  
  402. Scheduling_ZCB    ENDS
  403.  
  404. Time_Elapsed        equ    1
  405. Frame_Arrived        equ    2
  406. Receive_Completed    equ    4
  407. Transmit_Completed    equ    8
  408. Explicit_Sched_Request    equ    100h
  409.  
  410. Sched_Options_bits    equ    Time_Elapsed+Frame_Arrived+Receive_Completed+Transmit_Completed+Explicit_Sched_Request
  411.  
  412.     ;********************************************
  413.     ;*   Set-Multicast-Address Command Block    *
  414.     ;********************************************
  415.  
  416. Multicast_ZCB    STRUC
  417.             db    SIZE ZCB_Header dup (0)
  418. ZCB_Multicast_Address    db    6 dup (0)
  419.  
  420. Multicast_ZCB    ENDS
  421.  
  422.     ;************************************************
  423.     ;*    ZYPHER Command Codes            *
  424.     ;************************************************
  425.  
  426. Initialize_Cmd        EQU    40h
  427. Transmit_Cmd        EQU    41h
  428. Receive_Cmd        EQU    42h
  429. Status_Cmd        EQU    43h
  430. Cancel_Receives_Cmd    EQU    44h
  431. Get_Xmt_Bfr_Cmd        EQU    45h
  432. Write_Xmt_Bfr_Cmd    EQU    46h
  433. Send_Xmt_Bfr_Cmd    EQU    47h
  434. Release_Xmt_Bfr_Cmd    EQU    48h
  435. Read_Frame_Data_Cmd    EQU    49h
  436. Next_Rcv_Bfr_Cmd    EQU    4Ah
  437. Flush_Frame_Cmd        EQU    4Bh
  438. Setup_Scheduling_Cmd    EQU    4Ch
  439. Schedule_Cmd        EQU    4Dh
  440. Enable_Multicast_Cmd    EQU    4Eh
  441. Disable_Multicast_Cmd    EQU    4Fh
  442. Disable_All_Multicasts_Cmd EQU    50h
  443.  
  444. Min_Command_Code    EQU    Initialize_Cmd
  445. Max_Command_Code    EQU    Disable_All_Multicasts_Cmd
  446.  
  447.  
  448.     ;************************************************
  449.     ;*    ZYPHER Result Codes            *
  450.     ;************************************************
  451.  
  452. Xmt_Length_Error    equ    10h    ; Data length too long or too short.
  453. Xmt_Address_Error    equ    11h    ; Data starts at odd address.
  454. Unknown_Command_Error    equ    12h    ; Undefined command code in ZCB.
  455. Unimplemented_yet_Error    equ    13h    ; As-yet-unimplemented command code.
  456. Xmt_Completion_Success    equ    14h    ; Transmission successfully completed.
  457. Xmt_Completion_Error    equ    15h    ; Transmission completed with error.
  458. Rcv_Completion_Success    equ    16h    ; Frame received successfully.
  459. Rcv_Frame_Truncated_Error equ    17h    ; Receive buffer was too small.
  460. Initialization_Complete    equ    18h    ; Initialization completed.
  461. Status_Complete        equ    19h    ; Status completed.
  462. Not_Yet_Initialized    equ    1Ah
  463. Already_Initialized    equ    1Bh
  464. Command_Cancelled    equ    1Ch
  465. Cancel_Complete        equ    1Dh
  466. Xmt_Bfr_Assigned    equ    1Eh    ; "Get_Xmt_Bfr_Cmd" completed.
  467. Xmt_Bfr_not_Assigned    equ    1Fh
  468. Xmt_Bfr_Released    equ    20h    ; "Release_Xmt_Bfr_Cmd" completed.
  469. Xmt_Bfr_Written        equ    21h    ; "Write_Xmt_Bfr_Cmd" completed.
  470. More_Data_Available    equ    22h
  471. No_More_Rcv_Bfrs    equ    23h
  472. Frame_ID_Invalid    equ    24h
  473. Flush_Complete        equ    25h
  474. Frame_Table_Overflow    equ    26h
  475. Scheduling_Started    equ    27h
  476. Scheduling_Cancelled    equ    28h
  477. Schedule_Done        equ    29h
  478. Multicast_Setup_Done    equ    2Ah
  479. Too_Many_Multicast_Addresses equ 2Bh
  480.  
  481.     ;************************************************
  482.     ;*        System State Bits        *
  483.     ;************************************************
  484.  
  485. Initialized            EQU    8000h
  486. Ready_to_Receive        EQU    1000h
  487. Interrupt_Entry_Installed    EQU    0800h
  488. Media_Test_Done            EQU    0002h
  489. Media_Determined        EQU    0001h
  490.  
  491.     ;************************************************
  492.     ;*        System Modes Bits        *
  493.     ;************************************************
  494.  
  495. Broadcasts_Disabled    EQU    0800h
  496. Promiscuous_Mode    EQU    0400h
  497. Accept_Bad_Frames    EQU    0200h
  498. Broadband_Mode        EQU    0100h
  499. User_Configured_82586    EQU    0080h
  500.  
  501.     ;************************************************
  502.     ;*    ZE-NIC Control and Status Register bits    *
  503.     ;************************************************
  504.  
  505. CSR_Reset            EQU    1
  506. CSR_Network_Loopback        EQU    2
  507. CSR_Timer_Enable        EQU    4
  508. CSR_82586_Enable        EQU    8
  509. CSR_Soft_Interrupt        EQU    20h
  510. CSR_Timer_Interrupt        EQU    40h
  511. CSR_82586_Interrupt        EQU    80h
  512. ;