Changes between Version 5 and Version 6 of pic_driver


Ignore:
Timestamp:
Dec 9, 2016, 3:47:20 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pic_driver

    v5 v6  
    1515The addressable registers map is defined [source:soft/giet_vm/giet_drivers/pic_driver.h here].
    1616
    17 
     17== __Low level access functions__ ==
    1818
    1919 === void '''_pic_set_register'''( unsigned int channel,   unsigned int index,   unsigned int value ) ===
    20 This low level function set a new value in register (channel / index).
     20This function set a new value in register identified by (channel / index).
    2121
    2222 === unsigned int '''_pic_get_register'''( unsigned int channel,   unsigned int index ) ===
    23 This low level function returns the value of register (channel / index).
     23This function returns the value of register identified by (channel / index).
     24
     25== __access functions__ ==
    2426
    2527 === void '''_pic_init'''( unsigned int channel,  unsigned int vaddr,  unsigned int extend ) ===
    26 This function initializes and activates a given channel (i.e. a given external IRQ) in the PIC component. It writes an XCU mailbox physical address in  the IOPIC_ADDRESS and IOPIC_EXTEND registers, and writes a non-zero value in IOPIC_MASK register.
     28This function initializes and activates a given channel (i.e. a given external IRQ) in the PIC component. It writes an XCU mailbox physical address in  the IOPIC_ADDRESS and IOPIC_EXTEND registers, and enables the channel.
    2729 * channel : source PIC HWI channel
    2830 * vaddr :  address of the destination XCU register
    2931 * extend :  cluster_xy for the destination XCU
    3032
     33 === void '''_pic_enable'''( unsigned int channel) ===
     34This function enables a given channel (i.e a given external IRQ). The associated WTI maibox address is not modified.
     35 * channel : source PIC HWI channel
     36
     37 === void '''_pic_disable'''( unsigned int channel) ===
     38This function disables a given channel (i.e a given external IRQ). The associated WTI maibox address is not modified.
     39 * channel : source PIC HWI channel
     40
    3141 === unsigned int '''_pic_get_status'''( unsigned int channel ) ===
    3242This function returns the status of a given HWI channel.