Mark all global variables static for mptable(1).
While there, remove basetableEntryTypes, which became unused in r71209.
This commit is contained in:
parent
4c46bfb6dc
commit
60bd06dafc
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=227224
@ -96,7 +96,7 @@ typedef struct BUSTYPENAME {
|
|||||||
char name[ 7 ];
|
char name[ 7 ];
|
||||||
} busTypeName;
|
} busTypeName;
|
||||||
|
|
||||||
static busTypeName busTypeTable[] =
|
static const busTypeName busTypeTable[] =
|
||||||
{
|
{
|
||||||
{ CBUS, "CBUS" },
|
{ CBUS, "CBUS" },
|
||||||
{ CBUSII, "CBUSII" },
|
{ CBUSII, "CBUSII" },
|
||||||
@ -119,7 +119,7 @@ static busTypeName busTypeTable[] =
|
|||||||
{ UNKNOWN_BUSTYPE, "---" }
|
{ UNKNOWN_BUSTYPE, "---" }
|
||||||
};
|
};
|
||||||
|
|
||||||
const char* whereStrings[] = {
|
static const char *whereStrings[] = {
|
||||||
"Extended BIOS Data Area",
|
"Extended BIOS Data Area",
|
||||||
"BIOS top of memory",
|
"BIOS top of memory",
|
||||||
"Default top of memory",
|
"Default top of memory",
|
||||||
@ -135,16 +135,7 @@ typedef struct TABLE_ENTRY {
|
|||||||
char name[ 32 ];
|
char name[ 32 ];
|
||||||
} tableEntry;
|
} tableEntry;
|
||||||
|
|
||||||
tableEntry basetableEntryTypes[] =
|
static const tableEntry extendedtableEntryTypes[] =
|
||||||
{
|
|
||||||
{ 0, 20, "Processor" },
|
|
||||||
{ 1, 8, "Bus" },
|
|
||||||
{ 2, 8, "I/O APIC" },
|
|
||||||
{ 3, 8, "I/O INT" },
|
|
||||||
{ 4, 8, "Local INT" }
|
|
||||||
};
|
|
||||||
|
|
||||||
tableEntry extendedtableEntryTypes[] =
|
|
||||||
{
|
{
|
||||||
{ 128, 20, "System Address Space" },
|
{ 128, 20, "System Address Space" },
|
||||||
{ 129, 8, "Bus Hierarchy" },
|
{ 129, 8, "Bus Hierarchy" },
|
||||||
@ -277,19 +268,19 @@ static void doDmesg( void );
|
|||||||
static void pnstr( char* s, int c );
|
static void pnstr( char* s, int c );
|
||||||
|
|
||||||
/* global data */
|
/* global data */
|
||||||
int pfd; /* physical /dev/mem fd */
|
static int pfd; /* physical /dev/mem fd */
|
||||||
|
|
||||||
int busses[ 16 ];
|
static int busses[16];
|
||||||
int apics[ 16 ];
|
static int apics[16];
|
||||||
|
|
||||||
int ncpu;
|
static int ncpu;
|
||||||
int nbus;
|
static int nbus;
|
||||||
int napic;
|
static int napic;
|
||||||
int nintr;
|
static int nintr;
|
||||||
|
|
||||||
int dmesg;
|
static int dmesg;
|
||||||
int grope;
|
static int grope;
|
||||||
int verbose;
|
static int verbose;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
usage( void )
|
usage( void )
|
||||||
@ -978,14 +969,14 @@ ioApicEntry( void )
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
const char* intTypes[] = {
|
static const char *intTypes[] = {
|
||||||
"INT", "NMI", "SMI", "ExtINT"
|
"INT", "NMI", "SMI", "ExtINT"
|
||||||
};
|
};
|
||||||
|
|
||||||
const char* polarityMode[] = {
|
static const char *polarityMode[] = {
|
||||||
"conforms", "active-hi", "reserved", "active-lo"
|
"conforms", "active-hi", "reserved", "active-lo"
|
||||||
};
|
};
|
||||||
const char* triggerMode[] = {
|
static const char *triggerMode[] = {
|
||||||
"conforms", "edge", "reserved", "level"
|
"conforms", "edge", "reserved", "level"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user