Ignore:
Timestamp:
Jan 29, 2018, 6:08:07 PM (4 years ago)
Author:
alain
Message:

blip

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/chdev.h

    r407 r428  
    2828#include <hal_types.h>
    2929#include <xlist.h>
    30 #include <metafs.h>
    3130#include <remote_spinlock.h>
    3231#include <dev_iob.h>
     
    3534#include <dev_pic.h>
    3635#include <dev_fbf.h>
     36#include <dev_txt.h>
    3737
    3838/******************************************************************************************
     
    115115 * One kernel thread, in charge of handling the commands registered in the waiting queue
    116116 * of client threads is associated to each chdev descriptor (not for ICU, PIC, IOB).
    117  * For each device type ***, the specific extensions are defined in the "dev_***.h" file.
     117 * For each device type ***, the specific extension is defined in the "dev_***.h" file.
    118118 *****************************************************************************************/
    119119
     
    136136    uint32_t             irq_id;      /*! associated IRQ index in local ICU              */
    137137
    138     metafs_t             node;        /*! Metafs node associated with this device        */
    139 
    140138        remote_spinlock_t    wait_lock;   /*! lock protecting exclusive access to queue      */
    141139    xlist_entry_t        wait_root;   /*! root of waiting threads queue                  */
     
    148146        pic_extend_t     pic;         /*! PIC specific extension                         */
    149147        fbf_extend_t     fbf;         /*! FBF specific extension                         */
     148        txt_extend_t     txt;         /*! TXT specific extension                         */
    150149    }
    151150    ext;
     
    239238
    240239/******************************************************************************************
     240 * This function returns an extended pointer on the chdev associated to a pseudo file
     241 * descriptor (type INODE_TYPE_DEV) identified by the <file_xp> argument.
     242 * It can be called by a thread running in any cluster.
     243 * It enters kernel panic if the inode has not the expected type.
     244 ******************************************************************************************
     245 * @ file_xp   : extended pointer on the pseudo file descriptor.
     246 * @ return an extended pointer on chdev.
     247 *****************************************************************************************/
     248xptr_t chdev_from_file( xptr_t file_xp );
     249
     250/******************************************************************************************
    241251 * This function displays the local copy of the external chdevs directory.
    242252 * (global variable replicated in all clusters)
     
    244254void chdev_dir_display();
    245255
    246 
    247 
    248256#endif  /* _CHDEV_H_ */
Note: See TracChangeset for help on using the changeset viewer.