agp_kstat.c revision ae115bc77f6fcde83175c75b4206dc2e50747966
/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* The values of type agp_arc_type_t are used as indices into arc_name
* So if agp_arc_type_t's values are changed in the future, the content
* of arc_name must be changed accordingly.
*/
static const char *arc_name[] = {
"IGD_810",
"IGD_830",
"INTEL_AGP",
"AMD64_AGP",
"AMD64_NONAGP",
"UNKNOWN"
};
static char *agpkstat_name[] = {
"&arc_type",
"master_dev_id",
"master_dev_version",
"master_dev_status",
"$prealloc_size",
"target_dev_id",
"target_dev_version",
"target_dev_status",
"$aper_base",
"$aper_size",
"&agp_enabled",
"agp_mode_set",
"$aper_used",
};
static void
{
}
static int
{
int tmp;
if (flag != KSTAT_READ)
return (EACCES);
return (0);
}
int
{
int instance;
char *np;
int type;
char **aknp;
return (NULL);
switch (*np) {
case '$':
np += 1;
break;
case '&':
np += 1;
break;
default:
break;
}
}
return (0);
}
void
{
}