Changeset 422 for trunk/kernel
- Timestamp:
- Jan 29, 2018, 5:48:47 PM (7 years ago)
- Location:
- trunk/kernel/devices
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/devices/dev_fbf.c
r408 r422 27 27 #include <thread.h> 28 28 #include <printk.h> 29 #include <string.h> 29 30 #include <chdev.h> 30 31 #include <dev_fbf.h> -
trunk/kernel/devices/dev_iob.c
r346 r422 28 28 #include <chdev.h> 29 29 #include <printk.h> 30 #include <string.h> 30 31 #include <hal_drivers.h> 31 32 #include <dev_iob.h> -
trunk/kernel/devices/dev_pic.c
r407 r422 26 26 #include <chdev.h> 27 27 #include <printk.h> 28 #include <string.h> 28 29 #include <thread.h> 29 30 #include <hal_drivers.h> -
trunk/kernel/devices/dev_txt.c
r408 r422 62 62 else snprintf( txt->name , 16 , "txt%d_tx" , channel ); 63 63 64 // set TXT chdev extension 65 txt->ext.txt.owner_xp = XPTR_NULL; 66 xlist_root_init( XPTR( local_cxy, &txt->ext.txt.root ) ); 67 remote_spinlock_init( XPTR( local_cxy , &txt->ext.txt.lock ) ); 68 64 69 // call driver init function 65 70 hal_drivers_txt_init(txt, impl); 66 71 67 // no server thread and no IRQ routing for TXT0 and IMPL_TXT_RS2 (multiplexed68 // in software, not hardware)72 // no server thread and no IRQ routing for TXT0 73 // no server thread for IMPL_TXT_RS2 (multiplexed in software, not hardware) 69 74 if( channel != 0 && impl != IMPL_TXT_RS2 ) 70 75 { -
trunk/kernel/devices/dev_txt.h
r407 r422 27 27 #include <kernel_config.h> 28 28 #include <hal_types.h> 29 #include <xlist.h> 30 #include <remote_spinlock.h> 29 31 30 32 /**** Forward declarations ****/ … … 47 49 * waiting strategy for the calling thread. 48 50 *****************************************************************************************/ 51 52 /****************************************************************************************** 53 * This defines the (implementation independant) extension for the generic TXT device. 54 *****************************************************************************************/ 55 56 typedef struct txt_extend_s 57 { 58 xptr_t owner_xp; /*! ext. pointer on current process owner (reference) */ 59 xlist_entry_t root; /*! root of list of processes attached to same TXT */ 60 remote_spinlock_t lock; /*! lock protecting this list */ 61 } 62 txt_extend_t; 49 63 50 64 /******************************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.