Changeset 23 for trunk/kernel/kern/chdev.h
- Timestamp:
- Jun 18, 2017, 10:06:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/chdev.h
r16 r23 41 41 * This file defines the kernel representation of a generic (i.e. implementation 42 42 * independant) Channel Device descriptor (in brief "chdev"). 43 * ALMOS-MKH supports multi-channels peripherals, and defines one separated descriptor44 * for each channel (and for each RX/TX direction for the NIC device).43 * ALMOS-MKH supports multi-channels peripherals, and defines one separated chdev 44 * descriptor for each channel (and for each RX/TX direction for the NIC device). 45 45 * Each chdev contains a waiting queue, registering the "client threads" requests, 46 46 * and an associated "server thread", handling these requests. … … 107 107 /****************************************************************************************** 108 108 * This structure defines a chdev descriptor. 109 * There is one chdev descriptor per channel.109 * For multi-channels device, there is one chdev descriptor per channel. 110 110 * This structure is NOT replicated, and can be located in any cluster. 111 111 * One kernel thread, in charge of handling the commands registered in the waiting queue … … 120 120 uint32_t channel; /*! channel index */ 121 121 bool_t is_rx; /*! relevant for NIC peripheral channels only */ 122 xptr_t base; /*! extended pointer on channel segment */ 122 xptr_t base; /*! extended pointer on channel segment paddr */ 123 char name[16]; /*! name (required by DEVFS) */ 123 124 124 125 dev_cmd_t * cmd; /*! local pointer on driver command function */
Note: See TracChangeset
for help on using the changeset viewer.