Ignore:
Timestamp:
Sep 29, 2014, 12:02:13 PM (10 years ago)
Author:
alain
Message:

Introducing support for the PIC_MASK register in pic_driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/pic_driver.c

    r320 r413  
    55// Copyright (c) UPMC-LIP6
    66///////////////////////////////////////////////////////////////////////////////////
    7 // The pic_driver.c and pic_drivers.h files are part ot the GIET-VM kernel.
    8 // This driver supports the SocLib vci_iopic component.
    9 //
    10 // The SEG_PIC_BASE address must be defined in hard_config.h file.
    11 ///////////////////////////////////////////////////////////////////////////////////
    127// Implementation note:
    13 //
    148// All physical accesses to device registers are done by the two
    159// _pic_get_register(), _pic_set_register() low-level functions,
     
    2519
    2620/////////////////////////////////////////////////////////////////////////////////
    27 // This low level function returns the value of register (channel / index)
    28 /////////////////////////////////////////////////////////////////////////////////
    2921unsigned int _pic_get_register( unsigned int channel,
    3022                                unsigned int index )
     
    3426}
    3527
    36 /////////////////////////////////////////////////////////////////////////////////
    37 // This low level function set a new value in register (channel / index) 
    3828/////////////////////////////////////////////////////////////////////////////////
    3929void _pic_set_register( unsigned int channel,
     
    4535}
    4636
    47 /////////////////////////////////////////////////////////////////////////////////
    48 // This function initializes the XICU target physical address (vaddr + extend)
    49 // corresponding to a given HWI channel.
     37
    5038/////////////////////////////////////////////////////////////////////////////////
    5139void _pic_init( unsigned int channel,      // source PIC HWI channel
     
    5543    _pic_set_register( channel, IOPIC_ADDRESS, vaddr );
    5644    _pic_set_register( channel, IOPIC_EXTEND, extend );
     45    _pic_set_register( channel, IOPIC_MASK, 1 );
    5746}
    5847
    59 /////////////////////////////////////////////////////////////////////////////////
    60 // This function returns the status of a given HWI channel.
    6148/////////////////////////////////////////////////////////////////////////////////
    6249unsigned int _pic_get_status( unsigned int channel )
Note: See TracChangeset for help on using the changeset viewer.