EtherDevice 1.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
; Copyright 2015 Castle Technology Ltd
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
; You may obtain a copy of the License at
;
;     http://www.apache.org/licenses/LICENSE-2.0
;
; Unless required by applicable law or agreed to in writing, software
; distributed under the License is distributed on an "AS IS" BASIS,
; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
; See the License for the specific language governing permissions and
; limitations under the License.
;

        [       :LNOT: :DEF: __HAL_ENETDevice_HDR__
        GBLL    __HAL_ENETDevice_HDR__
; Define a HAL device to let the HAL pass addresses to modules
        GET     Hdr:HALDevice
John Ballance's avatar
John Ballance committed
20
                                ^       0
21 22 23 24 25 26 27 28 29 30 31
HALDevice_ENET                  #       HALDeviceSize
; Additional device fields
HALDevice_ENET_Phy_Device       #       4       ; Phy IRQ number
HALDevice_ENET_Phy_IRQ_En       #       4       ; IRQ enable/disable
HALDevice_ENET_Phy_IRQ_Test     #       4       ; phy irqbit test
HALDevice_ENET_Phy_IRQ_Clear    #       4       ; phy irqbit clear
; the next 2 are exported explicitly to permit quick test of phy interrupt
HALDevice_ENET_Phy_IRQTAddr     #       4       ; phy irq test address
HALDevice_ENET_Phy_IRQTMask     #       4       ; phy irq test active bit mask
HALDevice_ENETSpecificField     #       4
HALDevice_ENETClock             #       4
32
HALDevice_ENET_PhyPwrRst        #       4       ; Phy power and reset control
33 34 35 36 37
HALDevice_ENET_Size             *       :INDEX: @

        ] ; __HAL_ENETDevice_HDR__

        END