; --------------------------------------------------------------------------------
; @Title: Peripheral File for LTX972 connected to PPC405GP
; @Description: -
; @Author: -
; @Copyright: (C) 1989-2014 Lauterbach GmbH, licensed for use with TRACE32(R) only 
; --------------------------------------------------------------------------------
; $Id: ltx972.per 7062 2014-05-06 14:17:31Z kjmal $

;LTX972 connected to PPC405GP

config 16. 8.
width 10. 

base d:0xef60085c

sgroup "Standard Registers"
 set 0 %l 0x1000
 getx 0 %l 0
 writeback
 constx 2 %w 0x2000
 setx 0 %l 0
 line.long 0x0 "CONTROL,Control Register (0)" 
  bitfld.long 0x0 31. "RES ,Reset" "no,yes"
  bitfld.long 0x0 30. " LOOP ,Loopback" "no,yes"
  bitfld.long 0x0 29. " SPEED ,Speed" "10,100"
  bitfld.long 0x0 28. " AN ,Auto Negotiation" "no,yes"
  bitfld.long 0x0 27. " POW ,Enable Power Down" "no,yes"
  bitfld.long 0x0 26. " ISO ,Isolate" "no,yes"
  bitfld.long 0x0 25. " RAN ,Restart Auto-Negotioation" "no,yes"
  bitfld.long 0x0 24. " DUP ,Duplex Mode" "half,full"
  textline "                   "
  bitfld.long 0x0 23. "CT  ,Colision Test" "no,yes"
  bitfld.long 0x0 22. "  SPEED ,Speed" "10,100"
sgroup
 set 0 %l 0x1001
 getx 0 %l 0
 writeback
 constx 2 %w 0x2001
 setx 0 %l 0
 line.long 0x0 "STATUS,Status Register (1)"
  bitfld.long 0x0 31. "T4 ,100BaseT4" "no,yes"
  bitfld.long 0x0 30. "  100FDX ,100BaseX Full Duplex" "no,yes"
  bitfld.long 0x0 29. "  100HDX ,100BaseX Half Duplex" "no,yes"
  bitfld.long 0x0 30. "  10FDX ,10BaseT Full Duplex" "no,yes"
  bitfld.long 0x0 29. "  10HDX ,10BaseT Half Duplex" "no,yes"
  bitfld.long 0x0 28. "  T2FDX ,100BaseT2 Full Duplex" "no,yes"
  bitfld.long 0x0 27. "  T2HDX ,100BaseT2 Half Duplex" "no,yes"
 textline "                   "
  bitfld.long 0x0 24. "XS ,Extended Status" "no,yes"
  bitfld.long 0x0 22. "  MFPS ,MF Preamble Suppress" "no,yes"
  bitfld.long 0x0 21. "  ANC ,Auto-Negotiation Complete" "no,yes"
  bitfld.long 0x0 20. "  RF ,Remote Fault" "no,yes"
  bitfld.long 0x0 19. "  ANA ,Auto-Negotiation Ability" "no,yes"
  bitfld.long 0x0 18. "  STAT ,Link Status" "down,up"
  bitfld.long 0x0 17. "  JD ,Jabber Detect" "no,yes"
sgroup
 set 0 %l 0x1002
 getx 0 %l 0
 writeback
 constx 2 %w 0x2002
 setx 0 %l 0
 line.long 0x0 "PHYID1,PHY Identification Register 1 (2)" 
sgroup
 set 0 %l 0x1003
 getx 0 %l 0
 writeback
 constx 2 %w 0x2003
 setx 0 %l 0
 line.long 0x0 "PHYID2,PHY Identification Register 2 (3)" 
sgroup
 set 0 %l 0x1004
 getx 0 %l 0
 writeback
 constx 2 %w 0x2004
 setx 0 %l 0
 line.long 0x0 "AUTOADV,Autonegotiation Advertisement Register (4)" 
sgroup
 set 0 %l 0x1005
 getx 0 %l 0
 writeback
 constx 2 %w 0x2005
 setx 0 %l 0
 line.long 0x0 "AUTOABI,Autonegotiation Link Partner Ability Register (5)" 
sgroup
 set 0 %l 0x1006
 getx 0 %l 0
 writeback
 constx 2 %w 0x2006
 setx 0 %l 0
 line.long 0x0 "AUTOEXP,Autonegotiation Expansion Register (6)" 
sgroup
 set 0 %l 0x1007
 getx 0 %l 0
 writeback
 constx 2 %w 0x2007
 setx 0 %l 0
 line.long 0x0 "AUTONTX,Autonegotiation Next Page Transmit Register (7)" 
sgroup
 set 0 %l 0x1008
 getx 0 %l 0
 writeback
 constx 2 %w 0x2008
 setx 0 %l 0
 line.long 0x0 "AUTONRX,Autonegotiation Next Page Receive Register (8)" 
sgroup
 set 0 %l 0x100f
 getx 0 %l 0
 writeback
 constx 2 %w 0x200f
 setx 0 %l 0
 line.long 0x0 "CSTATUS,Chip Status Register (14)"
sgroup
 set 0 %l 0x1010
 getx 0 %l 0
 writeback
 constx 2 %w 0x2010
 setx 0 %l 0
 line.long 0x0 "PCONFIG,Port Configuration Register (16)" 
  bitfld.long 0x0 30. "FLP ,Force Link Pass" "no,yes"
  bitfld.long 0x0 29. "  TXD ,TX Disable" "no,yes"
  bitfld.long 0x0 28. "  SBP ,Scrambler Bypass" "no,yes"
  bitfld.long 0x0 26. "  JAB ,Jabber" "no,yes"
  bitfld.long 0x0 25. "  SQE ,SQE" "no,yes"
  bitfld.long 0x0 24. "  TPLOOP ,TP Loopback" "no,yes"
  bitfld.long 0x0 23. "  CRS ,CRS Select" "no,yes"
  bitfld.long 0x0 21. "  PRE_EN ," "no,yes"
sgroup
 set 0 %l 0x1011
 getx 0 %l 0
 writeback
 constx 2 %w 0x2011
 setx 0 %l 0
 line.long 0x0 "CSTATUS2,Chip Status Register (17)"
  bitfld.long 0x0 30. "MODE ,Mode" "10,100"
  bitfld.long 0x0 29. "  TXS ,TX Status" "0,1"
  bitfld.long 0x0 28. "  RXS ,RX Status" "0,1"
  bitfld.long 0x0 27. "  COLS ,COL Status" "0,1"
  bitfld.long 0x0 26. "  LINK ,LINK Status" "down,up"
  bitfld.long 0x0 25. "  DUP ,Duplex Mode" "half,full"
  bitfld.long 0x0 24. "  AN ,Auto-Negotiation" "no,yes"
 textline "                   "
  bitfld.long 0x0 23. "ANC ,Auto-Negotiation Complete" "no,yes"
  bitfld.long 0x0 21. "  POL ,Polarity" "no,yes"
  bitfld.long 0x0 21. "  PAUSE ,Pause" "no,yes"
  bitfld.long 0x0 18. "  ERROR ,Error" "no,yes"
sgroup
 set 0 %l 0x1012
 getx 0 %l 0
 writeback
 constx 2 %w 0x2012
 setx 0 %l 0
 line.long 0x0 "INTENA,Interrupt Enable Register (18)" 
sgroup
 set 0 %l 0x1013
 getx 0 %l 0
 writeback
 constx 2 %w 0x2013
 setx 0 %l 0
 line.long 0x0 "INTSTAT,Interrupt Status Register (19)" 
sgroup
 set 0 %l 0x1014
 getx 0 %l 0
 writeback
 constx 2 %w 0x2014
 setx 0 %l 0
 line.long 0x0 "LEDCONFIG,LED Configuration Register (20)" 
sgroup
 set 0 %l 0x101e
 getx 0 %l 0
 writeback
 constx 2 %w 0x201e
 setx 0 %l 0
 line.long 0x0 "TXCTRL,Transmit Control Register (30)" 








