mptable.c (97d92980a96a50750844f420cc225ddf918f0699) | mptable.c (386fd02622794b80ae1e379c3bf5c17a2aa19d51) |
---|---|
1/* 2 * Copyright (c) 1996, by Steve Passe 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1010 unchanged lines hidden (view full) --- 1019static void 1020sasEntry( void ) 1021{ 1022 SasEntry entry; 1023 1024 /* read it into local memory */ 1025 readEntry( &entry, sizeof( entry ) ); 1026 | 1/* 2 * Copyright (c) 1996, by Steve Passe 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 1010 unchanged lines hidden (view full) --- 1019static void 1020sasEntry( void ) 1021{ 1022 SasEntry entry; 1023 1024 /* read it into local memory */ 1025 readEntry( &entry, sizeof( entry ) ); 1026 |
1027 printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name ); | 1027 printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name ); |
1028 printf( " bus ID: %d", entry.busID ); 1029 printf( " address type: " ); 1030 switch ( entry.addressType ) { 1031 case 0: 1032 printf( "I/O address\n" ); 1033 break; 1034 case 1: 1035 printf( "memory address\n" ); --- 14 unchanged lines hidden (view full) --- 1050static void 1051bhdEntry( void ) 1052{ 1053 BhdEntry entry; 1054 1055 /* read it into local memory */ 1056 readEntry( &entry, sizeof( entry ) ); 1057 | 1028 printf( " bus ID: %d", entry.busID ); 1029 printf( " address type: " ); 1030 switch ( entry.addressType ) { 1031 case 0: 1032 printf( "I/O address\n" ); 1033 break; 1034 case 1: 1035 printf( "memory address\n" ); --- 14 unchanged lines hidden (view full) --- 1050static void 1051bhdEntry( void ) 1052{ 1053 BhdEntry entry; 1054 1055 /* read it into local memory */ 1056 readEntry( &entry, sizeof( entry ) ); 1057 |
1058 printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name ); | 1058 printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name ); |
1059 printf( " bus ID: %d", entry.busID ); 1060 printf( " bus info: 0x%02x", entry.busInfo ); | 1059 printf( " bus ID: %d", entry.busID ); 1060 printf( " bus info: 0x%02x", entry.busInfo ); |
1061 printf( " parent bus ID: %d", entry.busParent ); | 1061 printf( " parent bus ID: %d\n", entry.busParent ); |
1062} 1063 1064 1065static void 1066cbasmEntry( void ) 1067{ 1068 CbasmEntry entry; 1069 1070 /* read it into local memory */ 1071 readEntry( &entry, sizeof( entry ) ); 1072 | 1062} 1063 1064 1065static void 1066cbasmEntry( void ) 1067{ 1068 CbasmEntry entry; 1069 1070 /* read it into local memory */ 1071 readEntry( &entry, sizeof( entry ) ); 1072 |
1073 printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name ); | 1073 printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name ); |
1074 printf( " bus ID: %d", entry.busID ); 1075 printf( " address modifier: %s\n", (entry.addressMod & 0x01) ? 1076 "subtract" : "add" ); | 1074 printf( " bus ID: %d", entry.busID ); 1075 printf( " address modifier: %s\n", (entry.addressMod & 0x01) ? 1076 "subtract" : "add" ); |
1077 printf( " predefined range: 0x%08x", entry.predefinedRange ); | 1077 printf( " predefined range: 0x%08x\n", entry.predefinedRange ); |
1078} 1079 1080 1081/* 1082 * do a dmesg output 1083 */ 1084static void 1085doDmesg( void ) --- 45 unchanged lines hidden --- | 1078} 1079 1080 1081/* 1082 * do a dmesg output 1083 */ 1084static void 1085doDmesg( void ) --- 45 unchanged lines hidden --- |