Problems with a GPIB PCMCIA card

Hello.

I am trying to get a GPIB PCMCIA to work properly on a laptop that has
QNX4 installed on it. I have used the “pin cis” command to generate a
pcmcia.cards file:

[device]
manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0xffff, irq any, io 0x0-0x2f (width=16)
config = 0x02, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x220-0x22f (width=16)
config = 0x03, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x320-0x32f (width=16)
config = 0x04, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x2a0-0x2af (width=16)
config = 0x05, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x2a0-0x2af (width=16)
config = 0x06, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x320-0x32f (width=16)
config = 0x07, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x220-0x22f (width=16)
config = 0x08, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x320-0x32f (width=16)
config = 0x09, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0a, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x320-0x32f (width=16)
config = 0x0b, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0c, 0xffff, irq any, io 0x2c0-0x2df (width=16), io
0x320-0x32f (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

When I slay Pcmcia.generic and start it back up with this configuration
file ( using pcmciatrap start ), I get the following message:

Pcmcia.generic: syntax error in /etc/config/pcmcia.cards

When I do a pin, I get the following status information:

Sock Win Type Flags PID Base Size IRQ Base
Size DMA
1 Empty ----MF---------- None
2 0 Memory C—M----------W None - -

The card is in socket 2, but hasn’t been given any base addresss, etc.
So, I was wondering if anyone would help me in terms of why this config
file doesn’t work. As I said before, I did the following to generate
the pcmcia.cards file: pin cis > /etc/config/pcmcia.cards 2>&1

Thanks alot.

Rodney Lott

Previously, Rodney Lott wrote in qdn.public.qnx4:

Hello.

I am trying to get a GPIB PCMCIA to work properly on a laptop that has
QNX4 installed on it. I have used the “pin cis” command to generate a
pcmcia.cards file:

[device]
manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0xffff, irq any, io 0x0-0x2f (width=16)
^^^^^^

Try patching all these 0xffff’s to 0x1201 and see if that fixes it.
The CIS in this adapter is reporting an incorrect device type.

config = 0x02, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x220-0x22f (width=16)
config = 0x03, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x320-0x32f (width=16)
config = 0x04, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x2a0-0x2af (width=16)
config = 0x05, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x2a0-0x2af (width=16)
config = 0x06, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x320-0x32f (width=16)
config = 0x07, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x220-0x22f (width=16)
config = 0x08, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x320-0x32f (width=16)
config = 0x09, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0a, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x320-0x32f (width=16)
config = 0x0b, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0c, 0xffff, irq any, io 0x2c0-0x2df (width=16), io
0x320-0x32f (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

When I slay Pcmcia.generic and start it back up with this configuration
file ( using pcmciatrap start ), I get the following message:

Pcmcia.generic: syntax error in /etc/config/pcmcia.cards

When I do a pin, I get the following status information:

Sock Win Type Flags PID Base Size IRQ Base
Size DMA
1 Empty ----MF---------- None
2 0 Memory C—M----------W None - -

The card is in socket 2, but hasn’t been given any base addresss, etc.
So, I was wondering if anyone would help me in terms of why this config
file doesn’t work. As I said before, I did the following to generate
the pcmcia.cards file: pin cis > /etc/config/pcmcia.cards 2>&1

Thanks alot.

Rodney Lott

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Can anyone from QNX help out here?

Thanks

Rodney Lott wrote:

Hello.

I am trying to get a GPIB PCMCIA to work properly on a laptop that has
QNX4 installed on it. I have used the “pin cis” command to generate a
pcmcia.cards file:

[device]
manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0xffff, irq any, io 0x0-0x2f (width=16)
config = 0x02, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x220-0x22f (width=16)
config = 0x03, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x320-0x32f (width=16)
config = 0x04, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x2a0-0x2af (width=16)
config = 0x05, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x2a0-0x2af (width=16)
config = 0x06, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x320-0x32f (width=16)
config = 0x07, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x220-0x22f (width=16)
config = 0x08, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x320-0x32f (width=16)
config = 0x09, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0a, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x320-0x32f (width=16)
config = 0x0b, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0c, 0xffff, irq any, io 0x2c0-0x2df (width=16), io
0x320-0x32f (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

When I slay Pcmcia.generic and start it back up with this configuration
file ( using pcmciatrap start ), I get the following message:

Pcmcia.generic: syntax error in /etc/config/pcmcia.cards

When I do a pin, I get the following status information:

Sock Win Type Flags PID Base Size IRQ Base
Size DMA
1 Empty ----MF---------- None
2 0 Memory C—M----------W None - -

The card is in socket 2, but hasn’t been given any base addresss, etc.
So, I was wondering if anyone would help me in terms of why this config
file doesn’t work. As I said before, I did the following to generate
the pcmcia.cards file: pin cis > /etc/config/pcmcia.cards 2>&1

Thanks alot.

Rodney Lott

Hugh Brown is a QNX staffer :wink:

“Lawrence R. Sweet” <larry@fuelcell.kosone.com> wrote in message
news:3A242981.99FDF276@fuelcell.kosone.com

Can anyone from QNX help out here?

Thanks

Rodney Lott wrote:

Hello.

I am trying to get a GPIB PCMCIA to work properly on a laptop that has
QNX4 installed on it. I have used the “pin cis” command to generate a
pcmcia.cards file:

[device]
manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0xffff, irq any, io 0x0-0x2f (width=16)
config = 0x02, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x220-0x22f (width=16)
config = 0x03, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x320-0x32f (width=16)
config = 0x04, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x2a0-0x2af (width=16)
config = 0x05, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x2a0-0x2af (width=16)
config = 0x06, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x320-0x32f (width=16)
config = 0x07, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x220-0x22f (width=16)
config = 0x08, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x320-0x32f (width=16)
config = 0x09, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0a, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x320-0x32f (width=16)
config = 0x0b, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0c, 0xffff, irq any, io 0x2c0-0x2df (width=16), io
0x320-0x32f (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

When I slay Pcmcia.generic and start it back up with this configuration
file ( using pcmciatrap start ), I get the following message:

Pcmcia.generic: syntax error in /etc/config/pcmcia.cards

When I do a pin, I get the following status information:

Sock Win Type Flags PID Base Size IRQ Base
Size DMA
1 Empty ----MF---------- None
2 0 Memory C—M----------W None - -

The card is in socket 2, but hasn’t been given any base addresss, etc.
So, I was wondering if anyone would help me in terms of why this config
file doesn’t work. As I said before, I did the following to generate
the pcmcia.cards file: pin cis > /etc/config/pcmcia.cards 2>&1

Thanks alot.

Rodney Lott

Previously, Lawrence R. Sweet wrote in qdn.public.qnx4:

Can anyone from QNX help out here?

Thanks

Rodney Lott wrote:

I am from QNX! Did you do what I asked you to do?

Hugh.

Hello.

I am trying to get a GPIB PCMCIA to work properly on a laptop that has
QNX4 installed on it. I have used the “pin cis” command to generate a
pcmcia.cards file:

[device]
manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0xffff, irq any, io 0x0-0x2f (width=16)
config = 0x02, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x220-0x22f (width=16)
config = 0x03, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x320-0x32f (width=16)
config = 0x04, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x2a0-0x2af (width=16)
config = 0x05, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x2a0-0x2af (width=16)
config = 0x06, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x320-0x32f (width=16)
config = 0x07, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x220-0x22f (width=16)
config = 0x08, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x320-0x32f (width=16)
config = 0x09, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0a, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x320-0x32f (width=16)
config = 0x0b, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0c, 0xffff, irq any, io 0x2c0-0x2df (width=16), io
0x320-0x32f (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

When I slay Pcmcia.generic and start it back up with this configuration
file ( using pcmciatrap start ), I get the following message:

Pcmcia.generic: syntax error in /etc/config/pcmcia.cards

When I do a pin, I get the following status information:

Sock Win Type Flags PID Base Size IRQ Base
Size DMA
1 Empty ----MF---------- None
2 0 Memory C—M----------W None - -

The card is in socket 2, but hasn’t been given any base addresss, etc.
So, I was wondering if anyone would help me in terms of why this config
file doesn’t work. As I said before, I did the following to generate
the pcmcia.cards file: pin cis > /etc/config/pcmcia.cards 2>&1

Thanks alot.

Rodney Lott

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Thanks for replying, Hugh. I just got to this message now (it’s been a
busy day).

I editted the pcmcia.cards file, as you indicated, and added the 0x1201
to the device type
field for the config lines. When I restarted Pcmcia.generic again, I
still got the same
error.

I am curious: where did the value 0x1201 come from? I looked at the
table in the helpviewer and
I didn’t see that value in the type definition table ( though I
wouldn’t expect something
specific like a GPIB in the table, anyways)? Is this value arbitrary,
in terms of being unique or
is this something specific to the PCMCIA standards?

Thanks.

Rodney

Hugh Brown wrote:

Previously, Rodney Lott wrote in qdn.public.qnx4:
Hello.

I am trying to get a GPIB PCMCIA to work properly on a laptop that has
QNX4 installed on it. I have used the “pin cis” command to generate a
pcmcia.cards file:

[device]
manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0xffff, irq any, io 0x0-0x2f (width=16)
^^^^^^
Try patching all these 0xffff’s to 0x1201 and see if that fixes it.
The CIS in this adapter is reporting an incorrect device type.

config = 0x02, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x220-0x22f (width=16)
config = 0x03, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x320-0x32f (width=16)
config = 0x04, 0xffff, irq any, io 0x300-0x31f (width=16), io
0x2a0-0x2af (width=16)
config = 0x05, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x2a0-0x2af (width=16)
config = 0x06, 0xffff, irq any, io 0x100-0x11f (width=16), io
0x320-0x32f (width=16)
config = 0x07, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x220-0x22f (width=16)
config = 0x08, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x320-0x32f (width=16)
config = 0x09, 0xffff, irq any, io 0x280-0x29f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0a, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x320-0x32f (width=16)
config = 0x0b, 0xffff, irq any, io 0x200-0x21f (width=16), io
0x2a0-0x2af (width=16)
config = 0x0c, 0xffff, irq any, io 0x2c0-0x2df (width=16), io
0x320-0x32f (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

When I slay Pcmcia.generic and start it back up with this configuration
file ( using pcmciatrap start ), I get the following message:

Pcmcia.generic: syntax error in /etc/config/pcmcia.cards

When I do a pin, I get the following status information:

Sock Win Type Flags PID Base Size IRQ Base
Size DMA
1 Empty ----MF---------- None
2 0 Memory C—M----------W None - -

The card is in socket 2, but hasn’t been given any base addresss, etc.
So, I was wondering if anyone would help me in terms of why this config
file doesn’t work. As I said before, I did the following to generate
the pcmcia.cards file: pin cis > /etc/config/pcmcia.cards 2>&1

Thanks alot.

Rodney Lott

\

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: > hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Previously, Rodney Lott wrote in qdn.public.qnx4:

Thanks for replying, Hugh. I just got to this message now (it’s been a
busy day).

I editted the pcmcia.cards file, as you indicated, and added the 0x1201
to the device type
field for the config lines. When I restarted Pcmcia.generic again, I
still got the same
error.

OK, you will have to remove all the duplicate entries in the pcmcia.cards
entry for this device. For some reason the device repeats a lot of its
configuration entries. See my changes below.

I am curious: where did the value 0x1201 come from? I looked at the
table in the helpviewer and
I didn’t see that value in the type definition table ( though I
wouldn’t expect something
specific like a GPIB in the table, anyways)? Is this value arbitrary,
in terms of being unique or
is this something specific to the PCMCIA standards?

No, this value is what we have defined in our header files for GPIB
devices. The PCMCIA spec. does not give a value for GPIB devices, so we
defined our own.

Thanks.

Rodney

Hugh Brown wrote:

Previously, Rodney Lott wrote in qdn.public.qnx4:
Hello.

I am trying to get a GPIB PCMCIA to work properly on a laptop that has
QNX4 installed on it. I have used the “pin cis” command to generate a
pcmcia.cards file:

^^^^^^
Try patching all these 0xffff’s to 0x1201 and see if that fixes it.
The CIS in this adapter is reporting an incorrect device type.

[device]

manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0x1201, irq any, io 0x0-0x2f (width=16)
config = 0x02, 0x1201, irq any, io 0x300-0x31f (width=16), io 0x220-0x22f (width=16)
config = 0x03, 0x1201, irq any, io 0x320-0x32f (width=16)
config = 0x04, 0x1201, irq any, io 0x2a0-0x2af (width=16)
config = 0x05, 0x1201, irq any, io 0x100-0x11f (width=16)
config = 0x07, 0x1201, irq any, io 0x280-0x29f (width=16)
config = 0x0a, 0x1201, irq any, io 0x200-0x21f (width=16)
config = 0x0c, 0x1201, irq any, io 0x2c0-0x2df (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts

When I slay Pcmcia.generic and start it back up with this configuration
file ( using pcmciatrap start ), I get the following message:

Pcmcia.generic: syntax error in /etc/config/pcmcia.cards

When I do a pin, I get the following status information:

Sock Win Type Flags PID Base Size IRQ Base
Size DMA
1 Empty ----MF---------- None
2 0 Memory C—M----------W None - -

The card is in socket 2, but hasn’t been given any base addresss, etc.
So, I was wondering if anyone would help me in terms of why this config
file doesn’t work. As I said before, I did the following to generate
the pcmcia.cards file: pin cis > /etc/config/pcmcia.cards 2>&1

Thanks alot.

Rodney Lott

Hugh Brown (613) 591-0931 ext. 209 (voice)
QNX Software Systems Ltd. (613) 591-3579 (fax)
175 Terence Matthews Cres. email: hsbrown@qnx.com
Kanata, Ontario, Canada.
K2M 1W8

Hugh:

That worked well. I can see the card as GPIB when I do a “pin”.

Thanks alot.

Rodney

Hugh Brown wrote:

Previously, Rodney Lott wrote in qdn.public.qnx4:
Thanks for replying, Hugh. I just got to this message now (it’s been a
busy day).

I editted the pcmcia.cards file, as you indicated, and added the 0x1201
to the device type
field for the config lines. When I restarted Pcmcia.generic again, I
still got the same
error.


OK, you will have to remove all the duplicate entries in the pcmcia.cards
entry for this device. For some reason the device repeats a lot of its
configuration entries. See my changes below.

I am curious: where did the value 0x1201 come from? I looked at the
table in the helpviewer and
I didn’t see that value in the type definition table ( though I
wouldn’t expect something
specific like a GPIB in the table, anyways)? Is this value arbitrary,
in terms of being unique or
is this something specific to the PCMCIA standards?


snip
[device]
manufacturer = “National Instruments”
product = “PCMCIA-GPIB+”
regbase = 0x200
config = 0x01, 0x1201, irq any, io 0x0-0x2f (width=16)
config = 0x02, 0x1201, irq any, io 0x300-0x31f (width=16), io 0x220-0x22f (width=16)
config = 0x03, 0x1201, irq any, io 0x320-0x32f (width=16)
config = 0x04, 0x1201, irq any, io 0x2a0-0x2af (width=16)
config = 0x05, 0x1201, irq any, io 0x100-0x11f (width=16)
config = 0x07, 0x1201, irq any, io 0x280-0x29f (width=16)
config = 0x0a, 0x1201, irq any, io 0x200-0x21f (width=16)
config = 0x0c, 0x1201, irq any, io 0x2c0-0x2df (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts