* linking problems with I/O port operations
@ 1999-01-29 5:00 Jacob Gladish
1999-01-29 5:00 ` Marshall G. Gates
0 siblings, 1 reply; 4+ messages in thread
From: Jacob Gladish @ 1999-01-29 5:00 UTC (permalink / raw)
I got some code the is supposed to be able to transer MP3's up and down
from the diamond rio. and it built fine on a linux/intel box, but when I
try to build it on my alpha, I get undefined references to
_inb(unsigned long) ...and
_outb(unsigned char, unsigned long)
I have
1.) been using the __KERNEL__ macro
2.) turning on -O3 optimizations and -finline-functions
I'm using gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
and kernel 2.1.122 on an alpha station 200.
I have very little experience with device driver level code. Does anyone
have any idea what is going
on here.
Thanks,
Jake.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linking problems with I/O port operations
1999-01-29 5:00 linking problems with I/O port operations Jacob Gladish
@ 1999-01-29 5:00 ` Marshall G. Gates
1999-02-02 5:00 ` Jacob Gladish
0 siblings, 1 reply; 4+ messages in thread
From: Marshall G. Gates @ 1999-01-29 5:00 UTC (permalink / raw)
Jacob Gladish wrote in message <36B24C42.EBB3DF77@psc.edu>...
>I got some code the is supposed to be able to transer MP3's up and down
>from the diamond rio. and it built fine on a linux/intel box, but when I
>try to build it on my alpha, I get undefined references to
>
>_inb(unsigned long) ...and
>_outb(unsigned char, unsigned long)
>
These two function calls map to the Intel Instruction of similar name.
_inb returns a byte read from a specified Intel I/O port
_outb writes a byte to a specified I/O port.
Since these calls are native to the Intel platform, I would suggest that you
look at rewriting the code that uses them in an alpha approved way. I wish
I could help more
Marshall
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: linking problems with I/O port operations
1999-01-29 5:00 ` Marshall G. Gates
@ 1999-02-02 5:00 ` Jacob Gladish
1999-02-08 5:00 ` Marshall G. Gates
0 siblings, 1 reply; 4+ messages in thread
From: Jacob Gladish @ 1999-02-02 5:00 UTC (permalink / raw)
M
> >_inb(unsigned long) ...and
> >_outb(unsigned char, unsigned long)
> >
> These two function calls map to the Intel Instruction of similar name.
>
> _inb returns a byte read from a specified Intel I/O port
> _outb writes a byte to a specified I/O port.
>
> Since these calls are native to the Intel platform, I would suggest that you
> look at rewriting the code that uses them in an alpha approved way. I wish
> I could help more
>
these calls are available on the alpha using sys/io.h instead of
asm/io.h,
and if anyone has a diamond rio mp3 player, there's now code available
to do the basics on your alpha/linux machine at
http://www.world.co.uk/sba/rio.htm
alpha patch provided by stephan reinauer, i tried man.
jake
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-02-08 5:00 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-01-29 5:00 linking problems with I/O port operations Jacob Gladish
1999-01-29 5:00 ` Marshall G. Gates
1999-02-02 5:00 ` Jacob Gladish
1999-02-08 5:00 ` Marshall G. Gates
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox