* Open Sourced Glide on Linux PPC
@ 1999-12-07 23:33 Jens Ch. Restemeier
1999-12-08 19:54 ` Link, was Re: Open Sourced Glide on Linux PPD Jens Ch. Restemeier
1999-12-10 20:48 ` Open Sourced Glide on Linux PPC Geert Uytterhoeven
0 siblings, 2 replies; 3+ messages in thread
From: Jens Ch. Restemeier @ 1999-12-07 23:33 UTC (permalink / raw)
To: linuxppc-dev@lists.linuxppc.org
Hi,
maybe you already know that Glide is Open Sourced, so I gave it a shot
compiling it on Linux/PPC, before disassembling my PC to get out the
VooDoo 1 and move it into the PMac.
There are some obvious problems, like -m486 compiler switches, or an
undefined P6FENCE macro. But now I'm stuck: in fxlinux.c are references
to inb() & Co. , and they expand to something using isa_io_base, which
is undefined on my machine. Even funnier because I don't have ISA slots
at all (PMac).
I'm using a 2.2.3 kernel, and it's quite possible that I messed up some
headers while building other stuff.
Questions:
- Has anybody had any success compiling Glide/Linux/PPC/VooDoo1 ?
- Is this isa_io_base thingy changed in newer kernels, or did I just mix
up my configuration ? I don't really like downloading kernels/patches
through my slow connections, so I'd like to be sure...
Thanks,
Jens
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Link, was Re: Open Sourced Glide on Linux PPD
1999-12-07 23:33 Open Sourced Glide on Linux PPC Jens Ch. Restemeier
@ 1999-12-08 19:54 ` Jens Ch. Restemeier
1999-12-10 20:48 ` Open Sourced Glide on Linux PPC Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Jens Ch. Restemeier @ 1999-12-08 19:54 UTC (permalink / raw)
To: linuxppc-dev@lists.linuxppc.org
Okay, anybody looking for the link:
http://linux.3dfx.com
Has PDF files with the register docs, examples, and the glide sourcecode.
For the lazy people (like me), a direct link to the relevant page:
http://linux.3dfx.com/open_source/glide_kit.htm
Idea: maybe we should drop the pci-interface, and just port the
/dev/3dfx driver and interface. I got the 3dfx driver to compile some
time ago, but that was with an older kernal. But if I remeber correctly
it detected the Glide card already.
Jens
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Open Sourced Glide on Linux PPC
1999-12-07 23:33 Open Sourced Glide on Linux PPC Jens Ch. Restemeier
1999-12-08 19:54 ` Link, was Re: Open Sourced Glide on Linux PPD Jens Ch. Restemeier
@ 1999-12-10 20:48 ` Geert Uytterhoeven
1 sibling, 0 replies; 3+ messages in thread
From: Geert Uytterhoeven @ 1999-12-10 20:48 UTC (permalink / raw)
To: Jens Ch. Restemeier; +Cc: linuxppc-dev@lists.linuxppc.org
On Tue, 7 Dec 1999, Jens Ch. Restemeier wrote:
> maybe you already know that Glide is Open Sourced, so I gave it a shot
> compiling it on Linux/PPC, before disassembling my PC to get out the
> VooDoo 1 and move it into the PMac.
>
> There are some obvious problems, like -m486 compiler switches, or an
> undefined P6FENCE macro. But now I'm stuck: in fxlinux.c are references
> to inb() & Co. , and they expand to something using isa_io_base, which
> is undefined on my machine. Even funnier because I don't have ISA slots
> at all (PMac).
> I'm using a 2.2.3 kernel, and it's quite possible that I messed up some
> headers while building other stuff.
>
> Questions:
> - Has anybody had any success compiling Glide/Linux/PPC/VooDoo1 ?
> - Is this isa_io_base thingy changed in newer kernels, or did I just mix
> up my configuration ? I don't really like downloading kernels/patches
> through my slow connections, so I'd like to be sure...
`ISA I/O space' is the same as `PCI I/O space'. Before you can access it on PPC
using inb() and friends, you have to mmap() it, like
unsigned long isa_io_base;
int io_fd;
if ((io_fd = open("/dev/mem", O_RDWR)) == -1) {
perror("open /dev/mem");
exit(1);
}
isa_io_base = mmap(0, 0x10000, PROT_WRITE|PROT_EXEC|PROT_READ, MAP_SHARED,
io_fd, MB_ISA_IO_BASE);
if ((long)isa_io_base == -1) {
perror("mmaping io space");
exit(1);
}
The bad thing is that MB_ISA_IO_BASE depends on the machine type. Look at
linux/include/asm-ppc/io.h for the different values for different machines.
On Pmac, isa_io_base seems to be set up in arch/ppc/kernel/pmac_pci.c.
And if the original code contains iopl() calls, you have to protect them inside
#ifdef __i386__/#endif pairs.
Good luck!
Gr{oetje,eeting}s,
--
Geert Uytterhoeven -- Linux/{m68k~Amiga,PPC~CHRP} -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1999-12-10 20:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-07 23:33 Open Sourced Glide on Linux PPC Jens Ch. Restemeier
1999-12-08 19:54 ` Link, was Re: Open Sourced Glide on Linux PPD Jens Ch. Restemeier
1999-12-10 20:48 ` Open Sourced Glide on Linux PPC Geert Uytterhoeven
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).