i386_get_ioperm syntax....
David Schultz
das at FreeBSD.ORG
Sat Apr 3 11:49:03 PST 2004
On Sat, Apr 03, 2004, Eric De la Cruz Lugo wrote:
> callbacks.cc: In member function `int CPost::DeviceControl(int, int)':
> callbacks.cc:160: error: invalid conversion from `int' to `unsigned int*'
> callbacks.cc:160: error: invalid conversion from `int' to `int*'
> callbacks.cc:163: error: invalid conversion from `int' to `unsigned int*'
[...]
> the relevant lines are :
>
> else if(flags==5){
> return i386_get_ioperm(0x3F8, 6, 1);
> }
> else if(flags==6){
> return i386_get_ioperm(0x3F8, 6, 0);
> }
I'm not sure why this was addressed specifically to me, but your
problem is that the second and third parameters to
i386_get_ioperm() are supposed to be *pointers* to integers. Note
that i386_get_ioperm() is supposed to tell *you* what the port
permission bits are, not the other way around. I suggest you take
a look at the manual page more carefully.
Also, I don't have anything to do with i386_get_ioperm(), and
standards@ is not the appropriate list for this kind of inquiry.
Please try questions@ next time.
--David
More information about the freebsd-standards
mailing list