what's the meaning of reg address 0x900000003ff00000

1 view
Skip to first unread message

yajin zhou

unread,
Jun 10, 2009, 2:56:05 AM6/10/09
to loongson-dev, gd...@googlegroups.com
Hi all,

I have one question about the _pci_hwinit in pmon-gdium.

It is in Line 161 of Targets/Bonito2fdev/pci/pci_machdep.c.
 asm(".set mips3;dli $2,0x900000003ff00000;li $3,0x80000000;sd $3,0x60($2);sd $0,0xa0($2);dli $3,0xffffffff80000000;sd $3,0x80($2);.set mips0" :::"$2","$3");
These assembly instructions try to write 0x80000000 to reg address 0x900000003ff00060(its phys address is 0x3ff00060). Can anyone tell me what's the reg meaning of phyaddress 0x3ff00060? Where can I find the information. Thanks very much.


yajin

http://vm-kernel.org

Philippe Vachon

unread,
Jun 10, 2009, 7:36:44 AM6/10/09
to gd...@googlegroups.com, loongson-dev
Hi Yajin,

The registers at 3FF00000h through to 3FF00178h are the various address
window configuration registers.

In particular 0x3ff00060 is the base addresse for master 1's address
window 0.

Probably the best place to find this information is in the STLS2F01
user's manual... I've put a tarball of all the Gdium-specific manuals,
including the Loongson 2F manuals, at
http://lebesgue.cowpig.ca/~philippe/gdium/gdium-manuals.tar.bz2

HTH.

Cheers,
Phil
Reply all
Reply to author
Forward
0 new messages