Re: This is where I'm going with fwcontrol

Sean Bruno <[email protected]>
Newsgroups gmane.os.freebsd.devel.firewire
Message-ID <[email protected]>
Dieter wrote:
> More nit picking  :-)
>
> Should
>
>   
>> Message ID  Root ID  R T Gap Count
>>    00(2 bits)  (5 bits)    1 1    (6 bits)
>>     
>  
> be
>
> Message ID   Root ID    R  T   Gap Count
> 00(2 bits)   (6 bits)   1  1   (6 bits)
>
> send_phy_config() ANDs root_node with 0x3f, and the
> "Physical ID" field in the controller register is
> 6 bits.
>   
Well, according to the 1394 documentation, no.  The root ID is 
definitely 5 bits.

The gap count is also 5 bits, I must have mis-counted.  So, really it 
should be:

Message ID   Root ID    R  T   Gap Count
00(2 bits)   (5 bits)   1  1   (5 bits)


This means that the Root ID and the Gap Count cannot exceed 0x3f(63).  
So, the masking
of the values instead of generating and error seems wrong to me.  I'm 
going to put in error checking
to make sure the values comply with the specification and document the 
correct values in the man page
and the comments of the code.

-- 
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199
MSN: [email protected]
Google:  [email protected]
Yahoo:  [email protected]

_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-firewire
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.