ts-7000
[Top] [All Lists]

[ts-7000] how to get virtual address

To:
Subject: [ts-7000] how to get virtual address
From: "chaisc97" <>
Date: Mon, 20 Aug 2007 18:25:12 -0000
how can i get the virtual address of ts7200,

i use the following source,
error_io=check_mem_region(SMCBCR3,8);
if(error_io<0)
{
         return error_io;
}
request_mem_region(SMCBCR3,8,"smcbcr");
Address=(unsigned char *)ioremap(SMCBCR3,8);
printk("address=%x v_address=%x\n",SMCBCR3,Address);
writew(bankcfg,Address);
if(check_mem_region(DAC_offset,DAC_Size))
{
    printk("DAC already in use\n");
    return -EBUSY;
}
if (!request_mem_region(DAC_offset, DAC_Size, DAC_name))
{   printk("request_mem_region 0x30000080L error!\n");
    return -EBUSY;
}
     AT91_DAC_ADDR  = (unsigned char*)ioremap(DAC_offset,DAC_Size);
     printk("AT_91=%x vAT_91=%x\n",DAC_offset,AT91_DAC_ADDR);

******************************************
we get the following result
address=8008000c v_address=c604000c
AT_91=30000080 vAT_91=c6040080
Unhandled fault: external abort on non-linefetch (0x81a) at 0xc6040080
pgd = c5074000



who can tell me what's wrong with my code



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU