* Newbie to port-IO programming on Alpha @ 1999-03-14 3:36 Brendan Miller 1999-03-14 9:15 ` B. James Phillippe 1999-03-14 9:53 ` Bart Warmerdam 0 siblings, 2 replies; 20+ messages in thread From: Brendan Miller @ 1999-03-14 3:36 UTC (permalink / raw) To: axp-list Okay, actually, I'm just trying to compile cqcam (QuickCam software) on the Alpha, and I get: undefined reference to `inb(unsigned long)' I've written device drivers on other platforms, and I recall that Linux allows port-IO from user level, but where is inb and outb on the Alpha? Which library? Brendan ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-14 3:36 Newbie to port-IO programming on Alpha Brendan Miller @ 1999-03-14 9:15 ` B. James Phillippe 1999-03-14 12:50 ` Martin Ostermann 1999-03-14 9:53 ` Bart Warmerdam 1 sibling, 1 reply; 20+ messages in thread From: B. James Phillippe @ 1999-03-14 9:15 UTC (permalink / raw) To: Brendan Miller; +Cc: RedHat AXP list On Sat, 13 Mar 1999, Brendan Miller wrote: > undefined reference to `inb(unsigned long)' > > I've written device drivers on other platforms, and I recall that > Linux allows port-IO from user level, but where is inb and outb on > the Alpha? Which library? IO functions are defined in <asm/io.h>. cheers, -bp -- B. James Phillippe . bryan@terran.org Software Engineer, WGT Inc. . http://www.terran.org/~bryan ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-14 9:15 ` B. James Phillippe @ 1999-03-14 12:50 ` Martin Ostermann 1999-03-14 22:42 ` B. James Phillippe 0 siblings, 1 reply; 20+ messages in thread From: Martin Ostermann @ 1999-03-14 12:50 UTC (permalink / raw) To: B. James Phillippe; +Cc: Brendan Miller, RedHat AXP list On Sun, 14 Mar 1999 01:15:00 -0800 (PST), "B. James Phillippe" <bryan@terran.org> said: > IO functions are defined in <asm/io.h>. Well, those define the kernel io functions. They will only work on the architecture on which you compile your stuff, if they compile at all. Rather use the glibc include file, maybe <sys/io.h>? Try a 'find /usr/include -name io.h -print' to find them, Or a 'grep outb /usr/include/{*,*/*}' HTH, Martin -- Martin Ostermann | mailto:ost+sig0@comnets.rwth-aachen.de Communication Networks | http://www.comnets.rwth-aachen.de/~ost Aachen University of Technology | phone: ++49/241/807917 Germany | fax: ++49/241/8890378 ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-14 12:50 ` Martin Ostermann @ 1999-03-14 22:42 ` B. James Phillippe 1999-03-15 5:11 ` QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) Brendan Miller 1999-03-15 9:35 ` Newbie to port-IO programming on Alpha Martin Ostermann 0 siblings, 2 replies; 20+ messages in thread From: B. James Phillippe @ 1999-03-14 22:42 UTC (permalink / raw) To: Martin Ostermann; +Cc: Brendan Miller, RedHat AXP list On 14 Mar 1999, Martin Ostermann wrote: > On Sun, 14 Mar 1999 01:15:00 -0800 (PST), "B. James Phillippe" <bryan@terran.org> said: > > IO functions are defined in <asm/io.h>. > > Well, those define the kernel io functions. They will only work on the > architecture on which you compile your stuff, if they compile at all. The kernel IO functions are the only IO functions, unless you write your own architecture-dependent version for every CPU you plan to support in your code. There are no IO definitions in the standard library, and it doesn't make sense for there to be any; IO is inherently architecture-dependent. And what do you mean "if they compile at all"? > Rather use the glibc include file, maybe <sys/io.h>? Try a > 'find /usr/include -name io.h -print' to find them, Or a > 'grep outb /usr/include/{*,*/*}' All <sys/io.h> does is #include <asm/io.h>; there is no such thing as a non architecture-dependant IO definition. If you only care about compiling on systems after glibc, <sys/io.h> is the header to use. But there is no <sys/io.h> for libc5, so YMMV. -bp -- B. James Phillippe . bryan@terran.org Software Engineer, WGT Inc. . http://www.terran.org/~bryan ^ permalink raw reply [flat|nested] 20+ messages in thread
* QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) 1999-03-14 22:42 ` B. James Phillippe @ 1999-03-15 5:11 ` Brendan Miller 1999-03-15 13:44 ` Christopher C Chimelis ` (2 more replies) 1999-03-15 9:35 ` Newbie to port-IO programming on Alpha Martin Ostermann 1 sibling, 3 replies; 20+ messages in thread From: Brendan Miller @ 1999-03-15 5:11 UTC (permalink / raw) To: B. James Phillippe, Martin Ostermann; +Cc: RedHat AXP list Thanks for the tips about inb/outb on Alpha. You were right about it not making sense for a architecture-independent inb/outb. I guess I should have thought it out a little more. Anyway, let me back the truck up a bit, and ask my real question. I got one of those Connectix QuickCams that interfaces to the parallel port, and wondered if it would work on the Alpha. I tried compiling one of the packages that supports it under Linux (cqcam), and it is (apparently) *very* x86. From what I can tell (I haven't spent too much time examining the code), it uses port IO (from user space) to access the camera and "do it's thing". I was gonna try to get this working under Alpha when I met these inb/outb problems. So, before I launch into a code review and make someone else's project "Alpha-clean", maybe it would be better to ask first, "Has anyone used a QuickCam on their Alpha?" Brendan Miller ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) 1999-03-15 5:11 ` QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) Brendan Miller @ 1999-03-15 13:44 ` Christopher C Chimelis 1999-03-16 18:07 ` Philip Blundell [not found] ` <E10MfXZ-0008AV-00@kings-cross.london.uk.eu.org> 2 siblings, 0 replies; 20+ messages in thread From: Christopher C Chimelis @ 1999-03-15 13:44 UTC (permalink / raw) To: Brendan Miller; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list On Sun, 14 Mar 1999, Brendan Miller wrote: > So, before I launch into a code review and make someone else's project > "Alpha-clean", maybe it would be better to ask first, "Has anyone used > a QuickCam on their Alpha?" Check with Paul Slootman (paul@wau.mis.ah.nl). He worked on the Debian package of the QuickCam stuff and has it working pretty well from what I hear. If you want to check out the Debian patches directly, pick up the diff on any Debian mirror and it might help you get started. C ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) 1999-03-15 5:11 ` QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) Brendan Miller 1999-03-15 13:44 ` Christopher C Chimelis @ 1999-03-16 18:07 ` Philip Blundell [not found] ` <E10MfXZ-0008AV-00@kings-cross.london.uk.eu.org> 2 siblings, 0 replies; 20+ messages in thread From: Philip Blundell @ 1999-03-16 18:07 UTC (permalink / raw) To: axp-list >Anyway, let me back the truck up a bit, and ask my real question. I >got one of those Connectix QuickCams that interfaces to the parallel >port, and wondered if it would work on the Alpha. I tried compiling >one of the packages that supports it under Linux (cqcam), and it is >(apparently) *very* x86. Build a kernel with video4linux and the appropriate Quickcam driver enabled and you should then be able to use the video4linux capture programs with it. You need a 2.2 kernel for this. p. ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <E10MfXZ-0008AV-00@kings-cross.london.uk.eu.org>]
* Re: QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) [not found] ` <E10MfXZ-0008AV-00@kings-cross.london.uk.eu.org> @ 1999-03-29 6:37 ` Brendan Miller [not found] ` <E10RZUl-0007TN-00@fountain.nexus.co.uk> 0 siblings, 1 reply; 20+ messages in thread From: Brendan Miller @ 1999-03-29 6:37 UTC (permalink / raw) To: Philip Blundell; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list On Mon, Mar 15, 1999 at 10:08:52PM +0000, Philip Blundell wrote: > >Anyway, let me back the truck up a bit, and ask my real question. I > >got one of those Connectix QuickCams that interfaces to the parallel > >port, and wondered if it would work on the Alpha. I tried compiling > >one of the packages that supports it under Linux (cqcam), and it is > >(apparently) *very* x86. > > Build a kernel with video4linux and the appropriate Quickcam driver enabled > and you should then be able to use the video4linux capture programs with it. > You need a 2.2 kernel for this. > Okay, several weeks later, and still no go. I have kernel 2.2.3, and I have videodev and c-qcam modules. 'insmod videodev' works just fine, but 'insmod c-qcam' generates a "c-qcam.o: init_module: Device or resource busy" message. Also, it seems I need a /dev/video0 with major 81 (?), so I created /dev/video0 with 81, 0, but that didn't help matters either. Consequently, w3cam (the *ONLY* video4linux cam-capture program I can seem to find) didn't do a whole lot. I'm guessing it's 'cause I can't get the c-qcam module to load. I read all of Documentation/video4linux, all the videodev and c-qcam code, and nothing popped out as to what I need to do. I also read a bunch of Video4Linux stuff on the web, mainly talking about the version 2 API (which looks cool and has a lot more features), but nothing to really explain what I need to do to get my camera working. Has anyone done this? Or can anyone give me a pointer or two? It shouldn't be this hard. Brendan Miller ^ permalink raw reply [flat|nested] 20+ messages in thread
[parent not found: <E10RZUl-0007TN-00@fountain.nexus.co.uk>]
* Re: QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) [not found] ` <E10RZUl-0007TN-00@fountain.nexus.co.uk> @ 1999-03-29 16:50 ` Brendan Miller 1999-03-29 17:10 ` Phil Blundell 0 siblings, 1 reply; 20+ messages in thread From: Brendan Miller @ 1999-03-29 16:50 UTC (permalink / raw) To: philb; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list On Mon, Mar 29, 1999 at 11:42:15AM +0100, philb@gnu.org wrote: > >I have kernel 2.2.3, and I have videodev and c-qcam modules. 'insmod > >videodev' works just fine, but 'insmod c-qcam' generates a "c-qcam.o: > >init_module: Device or resource busy" message. > > That means it couldn't find the camera for some reason. > > >Has anyone done this? Or can anyone give me a pointer or two? It > >shouldn't be this hard. > > If you turn on the IEEE1284 autoprobe does it find the camera then? > How do you do that? I never heard of the "IEEE 1284 autoprobe". Is this a kernel feature or some other software I don't have? Brendan ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) 1999-03-29 16:50 ` Brendan Miller @ 1999-03-29 17:10 ` Phil Blundell 1999-03-30 3:11 ` Brendan Miller 0 siblings, 1 reply; 20+ messages in thread From: Phil Blundell @ 1999-03-29 17:10 UTC (permalink / raw) To: Brendan Miller; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list >How do you do that? I never heard of the "IEEE 1284 autoprobe". Is >this a kernel feature or some other software I don't have? Kernel feature. Look under plug and play in make config. p. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) 1999-03-29 17:10 ` Phil Blundell @ 1999-03-30 3:11 ` Brendan Miller 1999-03-30 8:58 ` Phil Blundell 0 siblings, 1 reply; 20+ messages in thread From: Brendan Miller @ 1999-03-30 3:11 UTC (permalink / raw) To: Phil Blundell; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list On Mon, Mar 29, 1999 at 06:10:35PM +0100, Phil Blundell wrote: > >How do you do that? I never heard of the "IEEE 1284 autoprobe". Is > >this a kernel feature or some other software I don't have? > > Kernel feature. Look under plug and play in make config. > Alright, here goes: # insmod videodev # insmod parport_probe # insmod c-qcam I still get ./c-qcam.o: init_module: Device or resource busy In /var/log/messages, it shows: Mar 29 19:08:54 molybdenum kernel: Linux video capture interface: v1.00 Mar 29 19:09:00 molybdenum kernel: parport0: Multimedia device, Connectix Color QuickCam 2.0 Mar 29 19:09:08 molybdenum kernel: Connectix Colour Quickcam driver v0.02 In /proc/devices, it shows: Character devices: 1 mem 2 pty 3 ttyp 4 ttyS 5 cua 7 vcs 10 misc 14 sound 29 fb 81 video_capture 128 ptm 136 pts Block devices: 2 fd 8 sd 11 sr So, it looks like the parport_probe sees the camera, and character device 81 is registered as "video_capture", but why won't the c-qcam module load? Brendan ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) 1999-03-30 3:11 ` Brendan Miller @ 1999-03-30 8:58 ` Phil Blundell 1999-04-06 5:19 ` QuickCam supported on Alpha?2 Brendan Miller 0 siblings, 1 reply; 20+ messages in thread From: Phil Blundell @ 1999-03-30 8:58 UTC (permalink / raw) To: Brendan Miller; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list >So, it looks like the parport_probe sees the camera, and character device 81 >is registered as "video_capture", but why won't the c-qcam module load? Try going into the source and fudging qc_detect() so it always returns success. The code that's in there at the moment is attempting to avoid false positives that would upset people's printers, but it does seem to fail to spot cameras that really are there some of the time. What's really needed is the ability to say `insmod c-qcam parport=..' and have it try a little harder to find a camera where you told it to look. Alternatively if the IEEE1284 probe was done, it could believe the information returned from that. I'll see if I can implement one or both of these sometime today. p. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: QuickCam supported on Alpha?2 1999-03-30 8:58 ` Phil Blundell @ 1999-04-06 5:19 ` Brendan Miller 1999-04-06 9:03 ` Phil Blundell 0 siblings, 1 reply; 20+ messages in thread From: Brendan Miller @ 1999-04-06 5:19 UTC (permalink / raw) To: Phil Blundell; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list On Tue, Mar 30, 1999 at 09:58:28AM +0100, Phil Blundell wrote: > >So, it looks like the parport_probe sees the camera, and character device 81 > >is registered as "video_capture", but why won't the c-qcam module load? > > Try going into the source and fudging qc_detect() so it always returns > success. This worked. The module now loads properly. I haven't been able to get the QuickCam to return any data (a picture), though. The only program I have that is "Video4Linux" aware is rasch's w3cam thing. It looks slick, but with all the cgi involved, it's hard to debug my camera interface. Is there anything else I can use to see if the whole Video4Linux qcam modules are working? Brendan Miller ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: QuickCam supported on Alpha?2 1999-04-06 5:19 ` QuickCam supported on Alpha?2 Brendan Miller @ 1999-04-06 9:03 ` Phil Blundell 0 siblings, 0 replies; 20+ messages in thread From: Phil Blundell @ 1999-04-06 9:03 UTC (permalink / raw) To: Brendan Miller; +Cc: B. James Phillippe, Martin Ostermann, RedHat AXP list >This worked. The module now loads properly. Great. >Is there anything else I can use to see if the whole Video4Linux qcam >modules are working? I think either gnomovision or xawtv should work. p. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-14 22:42 ` B. James Phillippe 1999-03-15 5:11 ` QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) Brendan Miller @ 1999-03-15 9:35 ` Martin Ostermann 1999-03-15 17:18 ` B. James Phillippe 1 sibling, 1 reply; 20+ messages in thread From: Martin Ostermann @ 1999-03-15 9:35 UTC (permalink / raw) To: B. James Phillippe; +Cc: axp-list On Sun, 14 Mar 1999 14:42:31 -0800 (PST), "B. James Phillippe" <bryan@terran.org> said: > The kernel IO functions are the only IO functions, unless you write your > own architecture-dependent version for every CPU you plan to support in > your code. Well, that was already done some years ago. I helped to wipe some bugs out of it... Anyway, the CPU isn't the problem, but the glue logic, which is different on about any Alpha system type. After all, that's the reason we speak of different system types at all. > There are no IO definitions in the standard library, and it This is wrong, there are IO functions in (g)libc for Linux/Alpha. The Xservers (XFree) use them, for example. Clock as well. I don't know about glibc on other systems, including Linux/x86, though. Your right, if you mean that i/o is not defined in Posix, and you cannot expect that you problem will work on any Unix system. But I what I was talking about was to ensure that it will work on any Linux/Alpha system! > doesn't make sense for there to be any; IO is inherently > architecture-dependent. Yes, IO is architecture dependent, this is exactly the reason you don't wont to compile for just one type. This is a good reason to have it in the library. Note again, we're talking about the Alpha system type, not any issues between different CPU architectures. Glibc on Linux/Alpha looks upon first use at /proc/cpuinfo, or /etc/systype to determine the type of the system, and than uses a specific function for the type it determines. Well, it would also make sense if would be possible to install a HW specific version of the library, but most people believe it's not worth the trouble, so it wasn't done that way. > And what do you mean "if they compile at all"? Just what I said. There are '#ifdef KERNEL' constructs in those files. Architecture dependend files get included too, and not every architecture was tested to compile outside the kernel. Maybe they all do compile knowadays, but that would be luck, IMHO. I don't have access to my Alpha right know, thus I cannot point to the exact location of those definitions in (g)libc, but I guess you'll find them if you look hard enough. Martin -- Martin Ostermann | mailto:ost+sig0@comnets.rwth-aachen.de Communication Networks | http://www.comnets.rwth-aachen.de/~ost Aachen University of Technology | phone: ++49/241/807917 Germany | fax: ++49/241/8890378 ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-15 9:35 ` Newbie to port-IO programming on Alpha Martin Ostermann @ 1999-03-15 17:18 ` B. James Phillippe 1999-03-16 13:21 ` Maciej W. Rozycki 1999-03-16 18:07 ` Philip Blundell 0 siblings, 2 replies; 20+ messages in thread From: B. James Phillippe @ 1999-03-15 17:18 UTC (permalink / raw) To: Martin Ostermann; +Cc: RedHat AXP list On 15 Mar 1999, Martin Ostermann wrote: > On Sun, 14 Mar 1999 14:42:31 -0800 (PST), "B. James Phillippe" <bryan@terran.org> said: > > The kernel IO functions are the only IO functions, unless you write your > > own architecture-dependent version for every CPU you plan to support in > > your code. ... > Anyway, the CPU isn't the problem, but the glue logic, which is > different on about any Alpha system type. After all, that's the reason You're right. I thought you were talking about IO in general, and not just between Alpha systems. My mistake. > > There are no IO definitions in the standard library, and it > > This is wrong, there are IO functions in (g)libc for Linux/Alpha. The ... > Glibc on Linux/Alpha looks upon first use at /proc/cpuinfo, or > /etc/systype to determine the type of the system, and than uses a ..Ack... this sounds bogus. Seems like there must be a better way (not using the macro or inline version, and having the IO functions call into the kernel where they would always DTRT for that platform/system type). > > And what do you mean "if they compile at all"? > > Just what I said. There are '#ifdef KERNEL' constructs in those The point I made was the <sys/io.h> includes <asm/io.h> right away. I don't see how then the glibc header file is platform-independant then. > I don't have access to my Alpha right know, thus I cannot point to the > exact location of those definitions in (g)libc, but I guess you'll > find them if you look hard enough. I've looked, before and after receiving your email. I could not find them anywhere in glibc. When I compile a one-line program that includes <sys/io.h> and returns inb, nm shows the symbol unresolved (though the program compiles and executes normally). All that I can see in <sys/io.h> is that ioperm and iopl are declared as extern. This doesn't even make sense for Alpha, so I assume if those functions are defined in the glibc that they're noops geared only to aid in porting(?) cheers, -bp -- B. James Phillippe . bryan@terran.org Software Engineer, WGT Inc. . http://www.terran.org/~bryan ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-15 17:18 ` B. James Phillippe @ 1999-03-16 13:21 ` Maciej W. Rozycki 1999-03-16 17:25 ` B. James Phillippe 1999-03-16 18:07 ` Philip Blundell 1 sibling, 1 reply; 20+ messages in thread From: Maciej W. Rozycki @ 1999-03-16 13:21 UTC (permalink / raw) To: RedHat AXP list On Mon, 15 Mar 1999, B. James Phillippe wrote: > program compiles and executes normally). All that I can see in <sys/io.h> > is that ioperm and iopl are declared as extern. This doesn't even make > sense for Alpha, so I assume if those functions are defined in the glibc > that they're noops geared only to aid in porting(?) Ioperm() and iopl() use mprotect() to permit or deny access to I/O port ranges. These functions as well as libc's _in[bwl]() and _out[bwl]() make use of /dev/mem mmap()ed in a way depending on contents read from /proc/cpuinfo or /etc/alpha_systype (in this order of preference). From applications' point of view all these functions perform in exactly the same way as their ia32 counterparts which make use of CPU features. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-16 13:21 ` Maciej W. Rozycki @ 1999-03-16 17:25 ` B. James Phillippe 0 siblings, 0 replies; 20+ messages in thread From: B. James Phillippe @ 1999-03-16 17:25 UTC (permalink / raw) To: RedHat AXP list On Tue, 16 Mar 1999, Maciej W. Rozycki wrote: > Ioperm() and iopl() use mprotect() to permit or deny access to I/O port > ranges. These functions as well as libc's _in[bwl]() and _out[bwl]() > make use of /dev/mem mmap()ed in a way depending on contents read from > /proc/cpuinfo or /etc/alpha_systype (in this order of preference). > > From applications' point of view all these functions perform in exactly > the same way as their ia32 counterparts which make use of CPU features. Illuminating. I just tried it and it works, as you and Martin said it would. I guess I need to read up on glibc. ;) -bp -- B. James Phillippe . bryan@terran.org Software Engineer, WGT Inc. . http://www.terran.org/~bryan ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-15 17:18 ` B. James Phillippe 1999-03-16 13:21 ` Maciej W. Rozycki @ 1999-03-16 18:07 ` Philip Blundell 1 sibling, 0 replies; 20+ messages in thread From: Philip Blundell @ 1999-03-16 18:07 UTC (permalink / raw) To: axp-list >I've looked, before and after receiving your email. I could not find them >anywhere in glibc. When I compile a one-line program that includes ><sys/io.h> and returns inb, nm shows the symbol unresolved (though the >program compiles and executes normally). All that I can see in <sys/io.h> >is that ioperm and iopl are declared as extern. This doesn't even make >sense for Alpha, so I assume if those functions are defined in the glibc >that they're noops geared only to aid in porting(?) No. On the Alpha ioperm() is a magic function which remaps an area of I/O space into the visible area for the calling process. Functions like inb and outb then operate on this remapped area. They aren't actually inlined for user programs the way they can be in the kernel. Take a look at sysdeps/unix/sysv/linux/alpha/ioperm.c in the glibc source code. p. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: Newbie to port-IO programming on Alpha 1999-03-14 3:36 Newbie to port-IO programming on Alpha Brendan Miller 1999-03-14 9:15 ` B. James Phillippe @ 1999-03-14 9:53 ` Bart Warmerdam 1 sibling, 0 replies; 20+ messages in thread From: Bart Warmerdam @ 1999-03-14 9:53 UTC (permalink / raw) To: Brendan Miller, axp-list On Sat, Mar 13, 1999 at 07:36:37PM -0800, Brendan Miller wrote: > > Okay, actually, I'm just trying to compile cqcam (QuickCam software) > on the Alpha, and I get: > > undefined reference to `inb(unsigned long)' > How about including <asm/io.h>?? HTH, B. -- B. Warmerdam GNU/Debian Linux bartw@xs4all.nl, bartw@debian.org (Keyid: 10A0FDD1) ---------------- ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~1999-04-06 9:30 UTC | newest]
Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-03-14 3:36 Newbie to port-IO programming on Alpha Brendan Miller
1999-03-14 9:15 ` B. James Phillippe
1999-03-14 12:50 ` Martin Ostermann
1999-03-14 22:42 ` B. James Phillippe
1999-03-15 5:11 ` QuickCam supported on Alpha? (was: Newbie to port-IO programming on Alpha) Brendan Miller
1999-03-15 13:44 ` Christopher C Chimelis
1999-03-16 18:07 ` Philip Blundell
[not found] ` <E10MfXZ-0008AV-00@kings-cross.london.uk.eu.org>
1999-03-29 6:37 ` Brendan Miller
[not found] ` <E10RZUl-0007TN-00@fountain.nexus.co.uk>
1999-03-29 16:50 ` Brendan Miller
1999-03-29 17:10 ` Phil Blundell
1999-03-30 3:11 ` Brendan Miller
1999-03-30 8:58 ` Phil Blundell
1999-04-06 5:19 ` QuickCam supported on Alpha?2 Brendan Miller
1999-04-06 9:03 ` Phil Blundell
1999-03-15 9:35 ` Newbie to port-IO programming on Alpha Martin Ostermann
1999-03-15 17:18 ` B. James Phillippe
1999-03-16 13:21 ` Maciej W. Rozycki
1999-03-16 17:25 ` B. James Phillippe
1999-03-16 18:07 ` Philip Blundell
1999-03-14 9:53 ` Bart Warmerdam
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox