Remove 3 off by 128 errors.
This commit is contained in:
parent
e666f57c3e
commit
386fd02622
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=64291
@ -1024,7 +1024,7 @@ sasEntry( void )
|
|||||||
/* read it into local memory */
|
/* read it into local memory */
|
||||||
readEntry( &entry, sizeof( entry ) );
|
readEntry( &entry, sizeof( entry ) );
|
||||||
|
|
||||||
printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name );
|
printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name );
|
||||||
printf( " bus ID: %d", entry.busID );
|
printf( " bus ID: %d", entry.busID );
|
||||||
printf( " address type: " );
|
printf( " address type: " );
|
||||||
switch ( entry.addressType ) {
|
switch ( entry.addressType ) {
|
||||||
@ -1055,10 +1055,10 @@ bhdEntry( void )
|
|||||||
/* read it into local memory */
|
/* read it into local memory */
|
||||||
readEntry( &entry, sizeof( entry ) );
|
readEntry( &entry, sizeof( entry ) );
|
||||||
|
|
||||||
printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name );
|
printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name );
|
||||||
printf( " bus ID: %d", entry.busID );
|
printf( " bus ID: %d", entry.busID );
|
||||||
printf( " bus info: 0x%02x", entry.busInfo );
|
printf( " bus info: 0x%02x", entry.busInfo );
|
||||||
printf( " parent bus ID: %d", entry.busParent );
|
printf( " parent bus ID: %d\n", entry.busParent );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1070,11 +1070,11 @@ cbasmEntry( void )
|
|||||||
/* read it into local memory */
|
/* read it into local memory */
|
||||||
readEntry( &entry, sizeof( entry ) );
|
readEntry( &entry, sizeof( entry ) );
|
||||||
|
|
||||||
printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name );
|
printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name );
|
||||||
printf( " bus ID: %d", entry.busID );
|
printf( " bus ID: %d", entry.busID );
|
||||||
printf( " address modifier: %s\n", (entry.addressMod & 0x01) ?
|
printf( " address modifier: %s\n", (entry.addressMod & 0x01) ?
|
||||||
"subtract" : "add" );
|
"subtract" : "add" );
|
||||||
printf( " predefined range: 0x%08x", entry.predefinedRange );
|
printf( " predefined range: 0x%08x\n", entry.predefinedRange );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user