knigget.asm (1575B)
1 ; 2 ; 3 ; 4 ; This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 5 ; 6 ; Copyright 2007-2019 Broadcom Inc. All rights reserved. 7 ; 8 ; This is the default program for the Black Knight. 9 ; To start it, use the following commands from BCM, 10 ; where unit 0 is the 5670: 11 ; 12 ; 0:led load knigget.hex 13 ; 0:led auto on 14 ; 0:led start 15 ; 16 ; The Black Knight has 2 columns of 4 LEDs each on the rear: 17 ; 18 ; E1 E2 19 ; L1 L2 20 ; T1 T2 21 ; R1 R2 22 ; 23 ; There is one bit per LED with the following colors: 24 ; 25 ; ZERO Green 26 ; ONE Black 27 ; 28 ; The bits are shifted out in the following order: 29 ; E1, L1, T1, R1, E2, L2, T2, R2 30 ; 31 ; Current implementation: 32 ; 33 ; E1 reflects port 1 higig link enable 34 ; L1 reflects port 1 higig link up 35 ; T1 reflects port 1 higig transmit activity 36 ; R1 reflects port 1 higig receive activity 37 ; 38 39 port 3 ; 5670 port 3 (right) 40 pushst LINKEN 41 tinv 42 pack 43 pushst LINKUP 44 tinv 45 pack 46 pushst TX 47 tinv 48 pack 49 pushst RX 50 tinv 51 pack 52 53 port 6 ; 5670 port 6 (left) 54 pushst LINKEN 55 tinv 56 pack 57 pushst LINKUP 58 tinv 59 pack 60 pushst TX 61 tinv 62 pack 63 pushst RX 64 tinv 65 pack 66 67 send 8 68 69 ; 70 ; Symbolic names for the bits of the port status fields 71 ; 72 73 RX equ 0x0 ; received packet 74 TX equ 0x1 ; transmitted packet 75 COLL equ 0x2 ; collision indicator 76 SPEED_C equ 0x3 ; 100 Mbps 77 SPEED_M equ 0x4 ; 1000 Mbps 78 DUPLEX equ 0x5 ; half/full duplex 79 FLOW equ 0x6 ; flow control capable 80 LINKUP equ 0x7 ; link down/up status 81 LINKEN equ 0x8 ; link disabled/enabled status 82 ZERO equ 0xE ; always 0 83 ONE equ 0xF ; always 1