|
/* BEGIN fx_dptbl.c */
#include <sys/proc.h>
#include <sys/priocntl.h>
#include <sys/class.h>
#include <sys/disp.h>
#include <sys/fx.h>
#include <sys/fxpriocntl.h>
/*
* This is the loadable module wrapper.
*/
#include <sys/modctl.h>
extern struct mod_ops mod_miscops;
/*
* Module linkage information for the kernel.
*/
static struct modlmisc modlmisc = {
&mod_miscops, "Fixed priority dispatch table"
};
static struct modlinkage modlinkage = {
MODREV_1, &modlmisc, 0
};
_init()
{
return (mod_install(&modlinkage));
}
_info(modinfop)
struct modinfo *modinfop;
{
return (mod_info(&modlinkage, modinfop));
}
#define FXGPUP0 0 /* Global priority for FX user priority 0 */
fxdpent_t config_fx_dptbl[] = {
/* glbpri qntm */
FXGPUP0+0, 20,
FXGPUP0+1, 20,
FXGPUP0+2, 20,
FXGPUP0+3, 20,
FXGPUP0+4, 20,
FXGPUP0+5, 20,
FXGPUP0+6, 20,
FXGPUP0+7, 20,
FXGPUP0+8, 20,
FXGPUP0+9, 20,
FXGPUP0+10, 16,
FXGPUP0+11, 16,
FXGPUP0+12, 16,
FXGPUP0+13, 16,
FXGPUP0+14, 16,
FXGPUP0+15, 16,
FXGPUP0+16, 16,
FXGPUP0+17, 16,
FXGPUP0+18, 16,
FXGPUP0+19, 16,
FXGPUP0+20, 12,
FXGPUP0+21, 12,
FXGPUP0+22, 12,
FXGPUP0+23, 12,
FXGPUP0+24, 12,
FXGPUP0+25, 12,
FXGPUP0+26, 12,
FXGPUP0+27, 12,
FXGPUP0+28, 12,
FXGPUP0+29, 12,
FXGPUP0+30, 8,
FXGPUP0+31, 8,
FXGPUP0+32, 8,
FXGPUP0+33, 8,
FXGPUP0+34, 8,
FXGPUP0+35, 8,
FXGPUP0+36, 8,
FXGPUP0+37, 8,
FXGPUP0+38, 8,
FXGPUP0+39, 8,
FXGPUP0+40, 4,
FXGPUP0+41, 4,
FXGPUP0+42, 4,
FXGPUP0+43, 4,
FXGPUP0+44, 4,
FXGPUP0+45, 4,
FXGPUP0+46, 4,
FXGPUP0+47, 4,
FXGPUP0+48, 4,
FXGPUP0+49, 4,
FXGPUP0+50, 4,
FXGPUP0+51, 4,
FXGPUP0+52, 4,
FXGPUP0+53, 4,
FXGPUP0+54, 4,
FXGPUP0+55, 4,
FXGPUP0+56, 4,
FXGPUP0+57, 4,
FXGPUP0+58, 4,
FXGPUP0+59, 2,
FXGPUP0+60 2,
};
pri_t config_fx_maxumdpri =
sizeof (config_fx_dptbl) / sizeof (fxdpent_t) - 1;
/*
* Return the address of config_fx_dptbl
*/
fxdpent_t *
fx_getdptbl()
{
return (config_fx_dptbl);
}
/*
* Return the address of fx_maxumdpri
*/
pri_t
fx_getmaxumdpri()
{
/*
* the config_fx_dptbl table.
*/
return (config_fx_maxumdpri);
}
|