Changeset 204 for trunk/kernel/kern/chdev.h
- Timestamp:
- Jul 17, 2017, 8:42:59 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/chdev.h
r188 r204 48 48 * Therefore a given I/O operation involve generally three clusters: 49 49 * - the client cluster, containing the client thread, 50 * - the server cluster, containing the chdev and the clientthread,51 * - the I/O cluster containing the physical device.50 * - the server cluster, containing the chdev and the server thread, 51 * - the I/O cluster, containing the physical device. 52 52 *****************************************************************************************/ 53 53 … … 66 66 67 67 /****************************************************************************************** 68 * This define the generic prototypes for the t hreefunctions that must be defined68 * This define the generic prototypes for the two functions that must be defined 69 69 * by all drivers implementing a generic device: 70 * - "init" : device initialisation.71 70 * - "cmd" : start an I/O operation. 72 71 * - "isr" : complete an I/O operation. 73 * The "init" function is called by kernel_init() to initialise the hardware device. 74 * The "cmd" and "isr" are registered in the generic chdev descriptor by kernel_init(), 72 * The "cmd" and "isr" are registered in the generic chdev descriptor at kernel init, 75 73 * and are called to start and complete an I/O operation. 76 74 *****************************************************************************************/ … … 85 83 * provide the same set of operations and the same driver API. 86 84 * This enum must be consistent with the enum in files arch_info.h, and arch_class.py. 85 * 86 * WARNING : The ICU device exist in boot_info to specify the base address of the 87 * distributed LAPIC controler, but it does not exist as a chdev in the kernel, 88 * as it is hidden in the driver associated to the PIC device. 87 89 *****************************************************************************************/ 88 90 … … 99 101 DEV_FUNC_TIM = 8, 100 102 DEV_FUNC_TXT = 9, 101 DEV_FUNC_ICU = 10, 103 DEV_FUNC_ICU = 10, 102 104 DEV_FUNC_PIC = 11, 103 105
Note: See TracChangeset
for help on using the changeset viewer.