parent
80428c4c9d
commit
a6935aa042
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Parallel-port device support
|
||||
* Parallel port device support
|
||||
*
|
||||
* Copyright 2001 Uwe Bonnes
|
||||
*
|
||||
|
@ -64,7 +64,7 @@ static int IO_pp_sort(const void *p1,const void *p2)
|
|||
/* IO_pp_init
|
||||
*
|
||||
* Read the ppdev entries from wine.conf, open the device and check
|
||||
* for nescessary IOCTRL
|
||||
* for necessary IOCTRL
|
||||
* Report verbose about possible errors
|
||||
*/
|
||||
char IO_pp_init(void)
|
||||
|
@ -117,7 +117,7 @@ char IO_pp_init(void)
|
|||
idx++;
|
||||
if(nports >4)
|
||||
{
|
||||
FIXME("Make the PPDeviceList larger then 5 elements\n");
|
||||
FIXME("Make the PPDeviceList larger than 5 elements\n");
|
||||
break;
|
||||
}
|
||||
TRACE("Device '%s' at virtual userbase '%s'\n", buffer,name);
|
||||
|
@ -131,7 +131,7 @@ char IO_pp_init(void)
|
|||
WARN("Configuration: No access to %s Cause: %s\n",buffer,strerror(lasterror));
|
||||
WARN("Rejecting configuration item\n");
|
||||
if (lasterror == ENODEV)
|
||||
FIXME("Is the ppdev module loaded?\n");
|
||||
ERR("Is the ppdev module loaded?\n");
|
||||
continue;
|
||||
}
|
||||
userbase = strtol(name,(char **)NULL, 16);
|
||||
|
@ -205,7 +205,7 @@ char IO_pp_init(void)
|
|||
|
||||
PPDeviceNum= nports;
|
||||
if (nports > 1)
|
||||
/* sort in accending order for userbase for faster access*/
|
||||
/* sort in ascending order for userbase for faster access */
|
||||
qsort (PPDeviceList,PPDeviceNum,sizeof(PPDeviceStruct),IO_pp_sort);
|
||||
|
||||
if (nports)
|
||||
|
@ -215,7 +215,7 @@ char IO_pp_init(void)
|
|||
PPDeviceList[idx].devicename, PPDeviceList[idx].userbase,
|
||||
PPDeviceList[idx].fd,PPDeviceList[idx].timeout);
|
||||
/* FIXME:
|
||||
register a timer callback perhaps every 30 second to release unused ports
|
||||
register a timer callback perhaps every 30 seconds to release unused ports
|
||||
Set lastaccess = 0 as indicator when port was released
|
||||
*/
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue