Changeset 422 for trunk


Ignore:
Timestamp:
Jan 29, 2018, 5:48:47 PM (4 years ago)
Author:
alain
Message:

cosmetic

Location:
trunk/kernel/devices
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_fbf.c

    r408 r422  
    2727#include <thread.h>
    2828#include <printk.h>
     29#include <string.h>
    2930#include <chdev.h>
    3031#include <dev_fbf.h>
  • trunk/kernel/devices/dev_iob.c

    r346 r422  
    2828#include <chdev.h>
    2929#include <printk.h>
     30#include <string.h>
    3031#include <hal_drivers.h>
    3132#include <dev_iob.h>
  • trunk/kernel/devices/dev_pic.c

    r407 r422  
    2626#include <chdev.h>
    2727#include <printk.h>
     28#include <string.h>
    2829#include <thread.h>
    2930#include <hal_drivers.h>
  • trunk/kernel/devices/dev_txt.c

    r408 r422  
    6262    else        snprintf( txt->name , 16 , "txt%d_tx" , channel );
    6363
     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   
    6469    // call driver init function
    6570    hal_drivers_txt_init(txt, impl);
    6671
    67     // no server thread and no IRQ routing for TXT0 and IMPL_TXT_RS2 (multiplexed
    68     // 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)
    6974    if( channel != 0 && impl != IMPL_TXT_RS2 )
    7075    {
  • trunk/kernel/devices/dev_txt.h

    r407 r422  
    2727#include <kernel_config.h>
    2828#include <hal_types.h>
     29#include <xlist.h>
     30#include <remote_spinlock.h>
    2931
    3032/****  Forward declarations  ****/
     
    4749 *   waiting strategy for the calling thread.
    4850 *****************************************************************************************/
     51
     52/******************************************************************************************
     53 * This defines the (implementation independant) extension for the generic TXT device.
     54 *****************************************************************************************/
     55
     56typedef 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}
     62txt_extend_t;
    4963
    5064/******************************************************************************************
Note: See TracChangeset for help on using the changeset viewer.