lancelot.asm (1738B)
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 ; 9 ; This is the default program for the Lancelot (SDK95690R48S). 10 ; 11 ; To start it, use the following commands from BCM: 12 ; 13 ; 0:led load lancelot.hex 14 ; 0:led start 15 ; 16 ; On Lancelot, unit 0 is the 5670 and is connected to 16 LEDs. 17 ; Units 1 through 4 are 5690s and have no LEDs or LED program. 18 ; 5670 ports 1, 2, 7, and 8 go to the 5690s, and have no LEDs. 19 ; 20 ; Lancelot has 4 columns of 4 LEDs each in the rear, as shown below: 21 ; 22 ; E3 E4 E5 E6 23 ; R3 R4 R5 R6 24 ; T3 T4 T5 T6 25 ; L3 L4 L5 L6 26 ; 27 ; There is one bit per LED with the following colors: 28 ; ZERO Green 29 ; ONE Black 30 ; 31 ; Due to board layout, the bits are shifted out in the following order: 32 ; E5, R5, T5, L5, E6, R6, T6, L6, E3, R3, T3, L3, E4, R4, T4, L4 33 ; 34 ; Current implementation: 35 ; E3 reflects port 3 higig link enable 36 ; R3 reflects port 3 higig receive activity 37 ; T3 reflects port 3 higig transmit activity 38 ; L3 reflects port 3 higig link up 39 ; 40 41 port 5 42 call put 43 port 6 44 call put 45 port 3 46 call put 47 port 4 48 call put 49 50 send 16 51 52 put: 53 pushst LINKEN 54 tinv 55 pack 56 pushst RX 57 tinv 58 pack 59 pushst TX 60 tinv 61 pack 62 pushst LINKUP 63 tinv 64 pack 65 ret 66 67 ; 68 ; Symbolic names for the bits of the port status fields 69 ; 70 71 RX equ 0x0 ; received packet 72 TX equ 0x1 ; transmitted packet 73 COLL equ 0x2 ; collision indicator 74 SPEED_C equ 0x3 ; 100 Mbps 75 SPEED_M equ 0x4 ; 1000 Mbps 76 DUPLEX equ 0x5 ; half/full duplex 77 FLOW equ 0x6 ; flow control capable 78 LINKUP equ 0x7 ; link down/up status 79 LINKEN equ 0x8 ; link disabled/enabled status 80 ZERO equ 0xE ; always 0 81 ONE equ 0xF ; always 1