About variable "IOPortBase"

Michael Lorenz macallan at netbsd.org
Wed Mar 26 20:11:59 PDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello,

On Mar 26, 2008, at 22:56, belcon zhao wrote:

> Just find that Xorg compiled xf86EnableIO() of hw/xfree86/os- 
> support/linux/lnx_video.c. IOPortBase wasn't initialized in that  
> file. That's why IOPortBase is 0. So, it should be compiling  
> mistake. Did I do extra work while compile Xorg with mips?

I don't know about linux but what you need is:
- - figure out at which physical address your PCI host bridge puts IO  
space
- - mmap() it, on linux you'd probably use /dev/mem for that
- - set IOPortBase accordingly

Xorg probably doesn't know about your particular hardware and you  
didn't give any details either. As far as I can tell the problem  
isn't MIPS, it's accessing IO space on your machine. On MIPS that  
would be memory-mapped somewhere. I can't tell you where, you need   
to figure that out on your own or tell us what exactly you're dealing  
with.

have fun
Michael

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQEVAwUBR+sQgMpnzkX8Yg2nAQIhbggAkjwL3FgJLM1arnjWOkdzC7+uVJS9zDiQ
vFPdr9mcMqryXT+t2h6arg7jzcHDZqgwg2h++ew1/Az1dSKQYxlaZ8ZqPaNL4XD0
lEZ4hRU+m2LnK4CjYWmJlcooX6hUmB2qd7tA6t4zo8J4lUr4gcdp2FSJ/Qxe8yT3
8rWE2/z45WkkogOpznyPBxB0bOghYnwHLwb6Ltq0pPHdCtpfQIThx+LfEQealfwH
hkDbtyYfRMJt1Ru5Cpm9PNNl0ZRts34i3VBbxtPdhzAMBibfCbmEzerjGjzlq1Ke
0fhWNH3cHCAQ3R2gxlyXt2api+cNrpKjTdC9nZO5GkIleV0nCUScdQ==
=RqnM
-----END PGP SIGNATURE-----



More information about the xorg mailing list