20,11 → 20,11 |
|
/** |
------------ |
CVS : $Id: mouse.c,v 1.1 2003-03-24 10:54:17 pj Exp $ |
CVS : $Id: mouse.c,v 1.2 2004-06-03 09:51:45 giacomo Exp $ |
|
File: $File$ |
Revision: $Revision: 1.1 $ |
Last update: $Date: 2003-03-24 10:54:17 $ |
Revision: $Revision: 1.2 $ |
Last update: $Date: 2004-06-03 09:51:45 $ |
------------ |
|
Author: Gerardo Lamastra |
102,7 → 102,6 |
#include <kernel/kern.h> |
//#include "exc.h" |
|
#include <drivers/scom.h> |
#include <drivers/mouse.h> |
|
/*if defined: then a trace of the initialization is performed */ |
412,7 → 411,6 |
int status=0; |
TASK_MODEL *m; |
SOFT_TASK_MODEL base_m; |
SERMOUSE_INFO sinfo; |
MOUSE_PARMS mparms=BASE_MOUSE; |
|
#ifdef __DEBUG_INIT__ |
492,21 → 490,6 |
case SUNMOUSE: |
case LOGIMOUSE: |
case MMMOUSE: |
if (parms->port==MOUSE_DEFAULT) parms->port=COM1; |
sinfo.type=parms->type; |
sinfo.port=parms->port; |
if (parms->tm == (TASK_MODEL *)MOUSE_DEFAULT) |
soft_task_def_period(base_m,12000); |
task_def_arg(*m,(void *)parms->port); |
mouse_pid=task_create("SerialMouse", |
sermouse_getserveraddr(&sinfo), |
m, NULL); |
|
if (mouse_pid==-1) return -3; |
sinfo.pid=mouse_pid; |
status=open_mouse((void*)&sinfo); |
//if (!status) |
// task_activate(mouse_pid); |
break; |
} |
|