Changes between Version 5 and Version 6 of pic_driver
- Timestamp:
- Dec 9, 2016, 3:47:20 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
pic_driver
v5 v6 15 15 The addressable registers map is defined [source:soft/giet_vm/giet_drivers/pic_driver.h here]. 16 16 17 17 == __Low level access functions__ == 18 18 19 19 === 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).20 This function set a new value in register identified by (channel / index). 21 21 22 22 === unsigned int '''_pic_get_register'''( unsigned int channel, unsigned int index ) === 23 This low level function returns the value of register (channel / index). 23 This function returns the value of register identified by (channel / index). 24 25 == __access functions__ == 24 26 25 27 === 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.28 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 enables the channel. 27 29 * channel : source PIC HWI channel 28 30 * vaddr : address of the destination XCU register 29 31 * extend : cluster_xy for the destination XCU 30 32 33 === void '''_pic_enable'''( unsigned int channel) === 34 This 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) === 38 This 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 31 41 === unsigned int '''_pic_get_status'''( unsigned int channel ) === 32 42 This function returns the status of a given HWI channel.