static const char rcsid[] = "$Id$ ";

#define _KERNEL

#include <sys/modctl.h>
#include <sys/ddi.h>
#include <sys/sunddi.h>

#undef _KERNEL

#include <sys/promif.h>

struct uchowna {
  char *fname;
  int uid;
  int gid;
};

#if 0
static int uchown_syscall(register struct uchowna *uap, rval_t *rvp);

static struct sysent uchownsysent = {
  3, /* Number of arguments */
  0, /* Flags */
  uchown_syscall
};

static struct modlsys uchownmodlsys = {
  &mod_syscallops,
  "ledc syscall",
  &uchownsysent
};
#endif

static struct modlmisc ledmisc = {
  &mod_miscops,
  "led misc thing"
};

static struct modlinkage led_modlinkage = {
  MODREV_1,
  /*  (void *) &uchownmodlsys, */
  &ledmisc,
  NULL
};

int _fini()
{
  prom_interpret("led-on", 0, 0, 0, 0, 0);
  return mod_remove(&led_modlinkage);
}

int _info(struct modinfo *modp)
{
  return mod_info(&led_modlinkage, modp);
}

int _init()
{
  prom_interpret("led-off", 0, 0, 0, 0, 0);
  return mod_install(&led_modlinkage);
}

#if 0
static int uchown_syscall(register struct uchowna *uap, rval_t *rvp)
{
  prom_interpret("led-off", 0, 0, 0, 0, 0);
}
#endif
