Exemple #1
0
static int
sunkbd_enable(keyboard_t *kbd)
{

	KBD_ACTIVATE(kbd);
	return (0);
}
Exemple #2
0
/*
 * Enable the access to the device; until this function is called,
 * the client cannot read from the keyboard.
 */
static int
ukbd_enable(keyboard_t *kbd)
{
	crit_enter();
	KBD_ACTIVATE(kbd);
	crit_exit();
	return 0;
}
Exemple #3
0
/*
 * Enable the access to the device; until this function is called,
 * the client cannot read from the keyboard.
 */
static int
kmi_enable(keyboard_t *kbd)
{

	KMI_LOCK();
	KBD_ACTIVATE(kbd);
	KMI_UNLOCK();

	return (0);
}
Exemple #4
0
/* 
 * Enable the access to the device; until this function is called,
 * the client cannot read from the keyboard.
 */
static int
pckbd_enable(keyboard_t *kbd)
{
	int s;

	s = spltty();
	KBD_ACTIVATE(kbd);
	splx(s);
	return 0;
}
Exemple #5
0
/*
 * Enable the access to the device; until this function is called,
 * the client cannot read from the keyboard.
 */
static int
ckb_enable(keyboard_t *kbd)
{

	CKB_LOCK();
	KBD_ACTIVATE(kbd);
	CKB_UNLOCK();

	return (0);
}