EmbLogic's Blog

Parallel Port DD (Compatibility mode ).

#use the parallel port in the compatibility mode which is work in the forward direction and in this i use the read operation which is seems to be the reverse operation but its not the reverse operation because we reterive the data in the single PC wihch is in the form of the buffer....
RCS file: devopen.c,v
Working file: devopen.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
mapp the devopen function with file_operation..
----------------------------
revision 1.1
date: 2014/06/23 10:13:11;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: devwrite.c,v
Working file: devwrite.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;	selected revisions: 2
description:
use copy_from_user which is used to receive the data from the application layer to kernel layer...
then use outb to send the information from kernel layer to parallel port...
----------------------------
revision 1.2
date: 2014/06/23 10:37:08;  author: root;  state: Exp;  lines: +1 -1
*** empty log message ***
----------------------------
revision 1.1
date: 2014/06/23 09:54:34;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: fileopr.h,v
Working file: fileopr.h
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
file operation call which is used in init only...
this is not include in the header because if i include this is header then suffer a problem of multiple declaration...
----------------------------
revision 1.1
date: 2014/06/23 09:54:34;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: init.c,v
Working file: init.c
head: 1.2
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 2;	selected revisions: 2
description:
call the module_init and module_exit for initilization and cleanup respectively..
alloc_chrdev_region, cdev_init, check_region,release_region, request_region, and cdev_add
in module_exit function call release_region, unregister_chrdev_region....
----------------------------
revision 1.2
date: 2014/06/23 09:54:16;  author: root;  state: Exp;  lines: +9 -1
include the file operation file in this
----------------------------
revision 1.1
date: 2014/06/23 05:08:09;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: devread.c,v
Working file: devread.c
head: 1.1
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 1;	selected revisions: 1
description:
mapp the read in kernel layer with the application...
----------------------------
revision 1.1
date: 2014/06/23 09:54:34;  author: root;  state: Exp;
Initial revision
=============================================================================

RCS file: header.h,v
Working file: header.h
head: 1.3
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 3;	selected revisions: 3
description:
include all the header file need for this project like init, module, fs, cdev, slab and ioport for the parallel port...
define some macros like DEVNAME as device name MAJORNO MINORNO QSET_SIZE QUANTUM_SIZE
define the struct ScullDev and ScullQset....
define the struct of file_operation for the mapping...
----------------------------
revision 1.3
date: 2014/06/23 10:12:33;  author: root;  state: Exp;  lines: +2 -0
give the prototype for the devopen
----------------------------
revision 1.2
date: 2014/06/23 09:53:30;  author: root;  state: Exp;  lines: +17 -3
remove the file_operation from this...
include the header file for the outb and copy_from_user
----------------------------
revision 1.1
date: 2014/06/23 05:08:09;  author: root;  state: Exp;
Initial revision
=============================================================================

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>