. dyron
unread,Nov 7, 2012, 6:44:30 AM11/7/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to linux...@googlegroups.com, linux-kernel
hi, all:
在网上查了些资料, 得知 io_p2v 里的0xa0000000, 是由VIO_BASE - PIO_START得出的,
但是如果自己设计芯片地址的话, 这个PIO_START可以从手册中得知, 但是VIO_BASE是如何算出来的呢?
#define VIO_BASE 0xe8000000 /* virtual start of IO space */
#define PIO_START 0x48000000 /* physical start of IO space */
#define io_p2v(x) ((x) | 0xa0000000)