📄 ppcmal.s
字号:
#-----------------------------------------------------------------------------+## This source code has been made available to you by IBM on an AS-IS# basis. Anyone receiving this source is licensed under IBM# copyrights to use it in any way he or she deems fit, including# copying it, modifying it, compiling it, and redistributing it either# with or without modifications. No license under IBM patents or# patent applications is to be implied by the copyright license.## Any user of this software should understand that IBM cannot provide# technical support for this software and will not be responsible for# any consequences resulting from the use of this software.## Any person who transfers this source code or any derivative work# must include the IBM copyright notice, this paragraph, and the# preceding two paragraphs in the transferred software.## COPYRIGHT I B M CORPORATION 1995# LICENSED MATERIAL - PROGRAM PROPERTY OF I B M#-----------------------------------------------------------------------------#-------------------------------------------------------------------------------## File Name: ppcmal.s## Function: 405GP MAL register access functions.##-------------------------------------------------------------------------------# MAL Registers.set MAL_DCR_BASE, 0x180.set malmcr, (MAL_DCR_BASE+0x00) # MAL Config reg .set malesr, (MAL_DCR_BASE+0x01) # Error Status reg (Read/Clear) .set malier, (MAL_DCR_BASE+0x02) # Interrupt enable reg .set maldbr, (MAL_DCR_BASE+0x03) # Mal Debug reg (Read only) .set maltxcasr, (MAL_DCR_BASE+0x04) # TX Channel active reg (set) .set maltxcarr, (MAL_DCR_BASE+0x05) # TX Channel active reg (Reset) .set maltxeobisr, (MAL_DCR_BASE+0x06) # TX End of buffer int status reg .set maltxdeir, (MAL_DCR_BASE+0x07) # TX Descr. Error Int reg .set malrxcasr, (MAL_DCR_BASE+0x10) # RX Channel active reg (set) .set malrxcarr, (MAL_DCR_BASE+0x11) # RX Channel active reg (Reset) .set malrxeobisr, (MAL_DCR_BASE+0x12) # RX End of buffer int status reg .set malrxdeir, (MAL_DCR_BASE+0x13) # RX Descr. Error Int reg .set maltxctp0r, (MAL_DCR_BASE+0x20) # TX 0 Channel table pointer reg .set maltxctp1r, (MAL_DCR_BASE+0x21) # TX 1 Channel table pointer reg .set malrxctp0r, (MAL_DCR_BASE+0x40) # RX 0 Channel table pointer reg .set malrcbs0, (MAL_DCR_BASE+0x60) # RX 0 Channel buffer size reg #-------------------------------------------------------------------------------# Function: ppcMtmalcr# Description: Move to MALMCR register# Input: r3 - new value of MALMCR.# Output: none#------------------------------------------------------------------------------- .text .align 2 .globl ppcMtmalcrppcMtmalcr: mtdcr malmcr,r3 nop nop nop blr .type ppcMtmalcr,@function .size ppcMtmalcr,.-ppcMtmalcr#-------------------------------------------------------------------------------# Function: ppcMfmalcr# Description: Move from MALMCR register# Input: none# Output: r3 - value of MALMCR.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmalcrppcMfmalcr: mfdcr r3, malmcr blr .type ppcMfmalcr,@function .size ppcMfmalcr,.-ppcMfmalcr#-------------------------------------------------------------------------------# Function: ppcMfmalesr# Description: Move from MALESR register# Input: none# Output: r3 - value of MALESR.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmalesrppcMfmalesr: mfdcr r3,malesr nop nop nop blr .type ppcMfmalesr,@function .size ppcMfmalesr,.-ppcMfmalesr#-------------------------------------------------------------------------------# Function: ppcMtmalesr# Description: Move to MALESR register# Input: r3 - new value of MALESR.# Output: none#------------------------------------------------------------------------------- .text .align 2 .globl ppcMtmalesrppcMtmalesr: mtdcr malesr,r3 nop nop nop blr .type ppcMtmalesr,@function .size ppcMtmalesr,.-ppcMtmalesr#-------------------------------------------------------------------------------# Function: ppcMfmalier# Description: Move from MALIER register# Input: none# Output: r3 - value of MALIER.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmalierppcMfmalier: mfdcr r3,malier nop nop nop blr .type ppcMfmalier,@function .size ppcMfmalier,.-ppcMfmalier#-------------------------------------------------------------------------------# Function: ppcMtmalier# Description: Move to MALIER register# Input: r3 - new value of MALIER.# Output: none#------------------------------------------------------------------------------- .text .align 2 .globl ppcMtmalierppcMtmalier: mtdcr malier,r3 nop nop nop blr .type ppcMtmalier,@function .size ppcMtmalier,.-ppcMtmalier#-------------------------------------------------------------------------------# Function: ppcMfmaldbr# Description: Move from MALDBR register# Input: none# Output: r3 - value of MALDBR.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmaldbrppcMfmaldbr: mfdcr r3,maldbr nop nop nop blr .type ppcMfmaldbr,@function .size ppcMfmaldbr,.-ppcMfmaldbr#-------------------------------------------------------------------------------# Function: ppcMfmaltxcasr# Description: Move from MALTXCASR register# Input: none# Output: r3 - value of MALTXCASR.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmaltxcasrppcMfmaltxcasr: mfdcr r3,maltxcasr nop nop nop blr .type ppcMfmaltxcasr,@function .size ppcMfmaltxcasr,.-ppcMfmaltxcasr#-------------------------------------------------------------------------------# Function: ppcMtmaltxcasr# Description: Move to MALTXCASR register# Input: r3 - new value of MALTXCASR.# Output: none#------------------------------------------------------------------------------- .text .align 2 .globl ppcMtmaltxcasrppcMtmaltxcasr: mtdcr maltxcasr,r3 nop nop nop blr .type ppcMtmaltxcasr,@function .size ppcMtmaltxcasr,.-ppcMtmaltxcasr#-------------------------------------------------------------------------------# Function: ppcMfmaltxcarr# Description: Move from MALTXCARR register# Input: none# Output: r3 - value of MALTXCARR.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmaltxcarrppcMfmaltxcarr: mfdcr r3,maltxcarr nop nop nop blr .type ppcMfmaltxcarr,@function .size ppcMfmaltxcarr,.-ppcMfmaltxcarr#-------------------------------------------------------------------------------# Function: ppcMtmaltxcarr# Description: Move to MALTXCARR register# Input: r3 - new value of MALTXCARR.# Output: none#------------------------------------------------------------------------------- .text .align 2 .globl ppcMtmaltxcarrppcMtmaltxcarr: mtdcr maltxcarr,r3 nop nop nop blr .type ppcMtmaltxcarr,@function .size ppcMtmaltxcarr,.-ppcMtmaltxcarr#-------------------------------------------------------------------------------# Function: ppcMfmaltxeobisr# Description: Move from MALTXEOBISR register# Input: none# Output: r3 - value of MALTXEOBISR.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmaltxeobisrppcMfmaltxeobisr: mfdcr r3,maltxeobisr nop nop nop blr .type ppcMfmaltxeobisr,@function .size ppcMfmaltxeobisr,.-ppcMfmaltxeobisr#-------------------------------------------------------------------------------# Function: ppcMtmaltxeobisr# Description: Move to MALTXEOBISR register# Input: r3 - new value of MALTXEOBISR register# Output: none#------------------------------------------------------------------------------- .text .align 2 .globl ppcMtmaltxeobisrppcMtmaltxeobisr: mtdcr maltxeobisr,r3 nop nop nop blr .type ppcMtmaltxeobisr,@function .size ppcMtmaltxeobisr,.-ppcMtmaltxeobisr#-------------------------------------------------------------------------------# Function: ppcMfmaltxdeir # Description: Move from MALTXDEIR register# Input: none# Output: r3 - value of MALTXDEIR.#------------------------------------------------------------------------------- .text .align 2 .globl ppcMfmaltxdeir ppcMfmaltxdeir: mfdcr r3,maltxdeir nop nop nop blr .type ppcMfmaltxdeir,@function .size ppcMfmaltxdeir,.-ppcMfmaltxdeir#-------------------------------------------------------------------------------# Function: ppcMtmaltxdeir# Description: Move to MALTXDEIR register# Input: r3 - new value of MALTXDEIR.# Output: none#-------------------------------------------------------------------------------
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -