All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] Okay, I give up.
@ 1999-11-05  4:07 Alex deVries
  1999-11-06  7:27 ` Grant Grundler
  0 siblings, 1 reply; 3+ messages in thread
From: Alex deVries @ 1999-11-05  4:07 UTC (permalink / raw)
  To: parisc-linux


How do I extract an sversion and hversion out of ioscan -F output?

For instance:

pa:wsio:F:F:F:0:0:0:ext_bus:c720:8/12:1 49 0 132 0 0 137 128 7 0 0 0 91 62 0 2 :0:root.ccio.c720:c720:CLAIMED:INTERFACE:GSC add-on Fast/Wide SCSI Interface:0

There doesn't seem to be a consistant way to parse it.

- Alex
-- 
Alex deVries <adevries@thepuffingroup.com>
Vice President Engineering
The Puffin Group

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [parisc-linux] Okay, I give up.
  1999-11-05  4:07 [parisc-linux] Okay, I give up Alex deVries
@ 1999-11-06  7:27 ` Grant Grundler
  1999-11-06 19:04   ` Frank Rowand
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Grundler @ 1999-11-06  7:27 UTC (permalink / raw)
  To: parisc-linux

Alex deVries wrote:
> How do I extract an sversion and hversion out of ioscan -F output?
> 
> For instance:
> 
> pa:wsio:F:F:F:0:0:0:ext_bus:c720:8/12:1 49 0 132 0 0 137 128 7 0 0 0 91 62 0 
>   2 :0:root.ccio.c720:c720:CLAIMED:INTERFACE:GSC add-on Fast/Wide SCSI Interf
>   ace:0

1) Use ":" as a field seperator (that's probably obvious)

2) field 1 indicates the structure/contents of field 12.
   "pa" says field 12 is IODC data (16 bytes).
   "pci" says field 12 is PCI vendor/product (4 bytes).

3) IODC data format should be documented in IOACD or somewhere.
   PCI isn't. It's the PCI vendor/product ID from config space.

Short (but cryptic) answer is first three "nibbles" (4-bit quantities)
are HV model. Next nibble is HV rev.  SV rev is the high order nibble
of the 5th byte (iodc[4]). SV model the following 5 nibbles.

So printing the values in hex should make them easier to eye-ball
and correlate to either hardware.c entries or PCI output.


> There doesn't seem to be a consistant way to parse it.

The "pa" vs. "pci" probably makes it look inconsistent.

cheers,
grant

> 
> - Alex
> -- 
> Alex deVries <adevries@thepuffingroup.com>
> Vice President Engineering
> The Puffin Group
> 
> ---------------------------------------------------------------------------
> To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> `unsubscribe' as the subject.
> 

Grant Grundler
Unix Developement Lab
+1.408.447.7253

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [parisc-linux] Okay, I give up.
  1999-11-06  7:27 ` Grant Grundler
@ 1999-11-06 19:04   ` Frank Rowand
  0 siblings, 0 replies; 3+ messages in thread
From: Frank Rowand @ 1999-11-06 19:04 UTC (permalink / raw)
  To: parisc-linux

Grant Grundler wrote:
> 
> Alex deVries wrote:
> > How do I extract an sversion and hversion out of ioscan -F output?
> >
> > For instance:
> >
> > pa:wsio:F:F:F:0:0:0:ext_bus:c720:8/12:1 49 0 132 0 0 137 128 7 0 0 0 91 62 0
> >   2 :0:root.ccio.c720:c720:CLAIMED:INTERFACE:GSC add-on Fast/Wide SCSI Interf
> >   ace:0
> 
> 1) Use ":" as a field seperator (that's probably obvious)
> 
> 2) field 1 indicates the structure/contents of field 12.
>    "pa" says field 12 is IODC data (16 bytes).
>    "pci" says field 12 is PCI vendor/product (4 bytes).
> 
> 3) IODC data format should be documented in IOACD or somewhere.
>    PCI isn't. It's the PCI vendor/product ID from config space.


See "IODC Data Bytes" in the IODC chapter of the IOACD (it's the first section
after the introduction).


> Short (but cryptic) answer is first three "nibbles" (4-bit quantities)
> are HV model. Next nibble is HV rev.  SV rev is the high order nibble
> of the 5th byte (iodc[4]). SV model the following 5 nibbles.
> 
> So printing the values in hex should make them easier to eye-ball
> and correlate to either hardware.c entries or PCI output.
> 
> > There doesn't seem to be a consistant way to parse it.
> 
> The "pa" vs. "pci" probably makes it look inconsistent.
> 
> cheers,
> grant
> 
> >
> > - Alex
> > --
> > Alex deVries <adevries@thepuffingroup.com>
> > Vice President Engineering
> > The Puffin Group
> >
> > ---------------------------------------------------------------------------
> > To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> > `unsubscribe' as the subject.
> >
> 
> Grant Grundler
> Unix Developement Lab
> +1.408.447.7253
> 
> ---------------------------------------------------------------------------
> To unsubscribe: send e-mail to parisc-linux-request@thepuffingroup.com with
> `unsubscribe' as the subject.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-11-06 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-05  4:07 [parisc-linux] Okay, I give up Alex deVries
1999-11-06  7:27 ` Grant Grundler
1999-11-06 19:04   ` Frank Rowand

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.