RCS file: header.h,v
Working file: header.h
head: 1.6
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 6; selected revisions: 6
description:
----------------------------
revision 1.6
date: 2015/04/28 15:54:10; author: root; state: Exp; lines: +16 -0
define the macro of user defined parameter such as QUANTUM_SIZE, DATA_SIZE, QSET_SIZE, DEVICE_SIZE.set the default values.
----------------------------
revision 1.5
date: 2015/04/26 15:51:54; author: root; state: Exp; lines: +1 -0
removed the struct of cdev.
----------------------------
revision 1.4
date: 2015/04/26 14:41:40; author: root; state: Exp; lines: +1 -1
introduced the stucture for mapping
stuct Qset, struct dev where our devices node information is stored.
in struct dev struct cdev is declared internally.
also declared the extern struct dev *sdev pointer for mapping
,
----------------------------
revision 1.3
date: 2015/04/26 13:28:55; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.2
date: 2015/04/26 13:18:47; author: root; state: Exp; lines: +3 -0
*** empty log message ***
----------------------------
revision 1.1
date: 2015/04/26 13:12:11; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: declaration.h,v
Working file: declaration.h
head: 1.7
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
----------------------------
revision 1.7
date: 2015/04/28 15:56:37; author: root; state: Exp; lines: +2 -6
declared the extern variable of Macros.
----------------------------
revision 1.6
date: 2015/04/28 12:55:36; author: root; state: Exp; lines: +1 -0
declared the extern ndev in this.
----------------------------
revision 1.5
date: 2015/04/26 17:35:00; author: root; state: Exp; lines: +1 -0
introduced extern file operations variable.
----------------------------
revision 1.4
date: 2015/04/26 15:52:20; author: root; state: Exp; lines: +2 -2
include the linux/cdev.h in header.h
----------------------------
revision 1.3
date: 2015/04/26 14:45:32; author: root; state: Exp; lines: +19 -0
*** empty log message ***
----------------------------
revision 1.2
date: 2015/04/26 13:18:47; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.1
date: 2015/04/26 13:12:11; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: new_initialization.c,v
Working file: new_initialization.c
head: 1.13
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 13; selected revisions: 13
description:
----------------------------
revision 1.13
date: 2015/04/28 16:20:11; author: root; state: Exp; lines: +3 -1
same as previous version, just checking.
----------------------------
revision 1.12
date: 2015/04/28 15:33:55; author: root; state: Exp; lines: +37 -8
declared the init_dev_parameter() in which initialise the MACRO quantum_size,qset_size,data_size,device_size.
after that, call first in initial_func() so that it will be initalized again.
Now, access these parameters through struct dev variable which should be initialised b/w cdev_init() and cdev_add().
----------------------------
revision 1.11
date: 2015/04/28 13:04:27; author: root; state: Exp; lines: +2 -1
add the macro MINOR(ndev) to retrive the minor no.
----------------------------
revision 1.10
date: 2015/04/28 13:00:29; author: root; state: Exp; lines: +1 -1
change the arugment of MKDEV(). 2nd argument will be loop index because we gave the minor no.
----------------------------
revision 1.9
date: 2015/04/28 12:51:10; author: root; state: Exp; lines: +26 -18
register the devices 20 in loop.
declared MKDEV in loop to conmbine the major and minor value into single one.
change the cdev and add the 20 devices.
----------------------------
revision 1.8
date: 2015/04/26 17:23:35; author: root; state: Exp; lines: +16 -2
initialize cdev_init and pass the 1st arguement which is address of cdev which is pointed by object of struct dev.
2nd arguement is address of file_operations.
after cdev_init also initialized owner field and file_operations *ops field which is actually defined in cdev.h.
after initialization of cdev_init, we need to make the connection by using cdev_add().
In cdev_add(),mentioned the address pointed by dev to cdev, 2nd arguement is dev and 3rd one is no. of devices we added which is nod.
successfully cdev_add() is done, the driver initilization is complete.
----------------------------
revision 1.7
date: 2015/04/26 16:11:06; author: root; state: Exp; lines: +4 -3
add the if statement in kmalloc error checking.
----------------------------
revision 1.6
date: 2015/04/26 15:51:07; author: root; state: Exp; lines: +2 -1
correct the mistake done is kmalloc of FLAG.
----------------------------
revision 1.5
date: 2015/04/26 14:40:00; author: root; state: Exp; lines: +8 -0
declared kmalloc and provide space into the kernel.
after that memset flushed the memory.
----------------------------
revision 1.4
date: 2015/04/26 13:30:58; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.3
date: 2015/04/26 13:28:53; author: root; state: Exp; lines: +3 -1
*** empty log message ***
----------------------------
revision 1.2
date: 2015/04/26 13:18:42; author: root; state: Exp; lines: +1 -0
*** empty log message ***
----------------------------
revision 1.1
date: 2015/04/26 13:12:11; author: root; state: Exp;
Initial revision
=============================================================================
RCS file: new_clean.c,v
Working file: new_clean.c
head: 1.7
branch:
locks: strict
access list:
symbolic names:
keyword substitution: kv
total revisions: 7; selected revisions: 7
description:
----------------------------
revision 1.7
date: 2015/04/28 12:54:55; author: root; state: Exp; lines: +5 -1
cdev_del is in loop to delete the connection.