Hello,
In pcsc-lite-1.0.0B/etc/reader.conf we have:
# CHANNELID:
# 0x0103F8 - /dev/ttyS0 (COM1)
# 0x0102F8 - /dev/ttyS1 (COM2)
# 0x0103E8 - /dev/ttyS2 (COM3)
# 0x0102E8 - /dev/ttyS3 (COM4)
But in ifd-devkit-1.0.0/ifdhandler.c we have:
/* Channel - Channel ID. This is denoted by the following:
0x000001 - /dev/pcsc/1
0x000002 - /dev/pcsc/2
0x000003 - /dev/pcsc/3
USB readers may choose to ignore this parameter and query
the bus for the particular reader.
*/
/* This function is required to open a communications channel to the
port listed by Channel. For example, the first serial reader on
COM1 would link to /dev/pcsc/1 which would be a sym link to
/dev/ttyS0 on some machines This is used to help with intermachine
independance.
*/
I was wandering what is the ``normal'' value for CHANNELID.
The use of /dev/pcsc/1 is very nice since the driver can be machine
independant and will not have #ifdef in the source code.
There is no problem if 0x0103F8 also refer to /dev/pcsc/1 for backward
compatibility.
Does anybody use /dev/pcsc/n in its own driver? I am planning to do so
in my own driver but maybe this scheme is deprecated and should not be
used anymore.
Any comment (David or driver maintainers)?
--
Ludovic Rousseau [EMAIL PROTECTED]
-- Normaliser Unix c'est comme pasteuriser le Camembert, L.R. --
***************************************************************
Unix Smart Card Developers - M.U.S.C.L.E.
(Movement for the Use of Smart Cards in a Linux Environment)
http://www.linuxnet.com/
To unsubscribe send an email to [EMAIL PROTECTED] with
unsubscribe sclinux
***************************************************************