On Tue, Jun 19, 2001 at 04:51:50PM +0200, Ronnie Arosa wrote:
> I would like to read and write ECR register from user-space. I've tried
> to add two new ioctl operations to ppdev.c
> case PPWECONTROL:
> if (copy_from_user (®, (unsigned char *) arg, sizeof (reg)))
> return -EFAULT;
> parport_write_ecr (port, reg);
> return 0;
> case PPRECONTROL:
> reg = parport_read_ecr (port);
> if (copy_to_user ((unsigned char *) arg, ®, sizeof (reg)))
> return -EFAULT;
> return 0;
Why do you want to do that? What are you going to do if there isn't
an ECR, or if there is an ECR that behaves differently than you
expect?
Tim.
*/
-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --
This archive was generated by hypermail 2b29 : Tue Jun 19 2001 - 11:35:24 EDT