Changeset 413 for soft/giet_vm/giet_drivers/pic_driver.c
- Timestamp:
- Sep 29, 2014, 12:02:13 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_drivers/pic_driver.c
r320 r413 5 5 // Copyright (c) UPMC-LIP6 6 6 /////////////////////////////////////////////////////////////////////////////////// 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 ///////////////////////////////////////////////////////////////////////////////////12 7 // Implementation note: 13 //14 8 // All physical accesses to device registers are done by the two 15 9 // _pic_get_register(), _pic_set_register() low-level functions, … … 25 19 26 20 ///////////////////////////////////////////////////////////////////////////////// 27 // This low level function returns the value of register (channel / index)28 /////////////////////////////////////////////////////////////////////////////////29 21 unsigned int _pic_get_register( unsigned int channel, 30 22 unsigned int index ) … … 34 26 } 35 27 36 /////////////////////////////////////////////////////////////////////////////////37 // This low level function set a new value in register (channel / index)38 28 ///////////////////////////////////////////////////////////////////////////////// 39 29 void _pic_set_register( unsigned int channel, … … 45 35 } 46 36 47 ///////////////////////////////////////////////////////////////////////////////// 48 // This function initializes the XICU target physical address (vaddr + extend) 49 // corresponding to a given HWI channel. 37 50 38 ///////////////////////////////////////////////////////////////////////////////// 51 39 void _pic_init( unsigned int channel, // source PIC HWI channel … … 55 43 _pic_set_register( channel, IOPIC_ADDRESS, vaddr ); 56 44 _pic_set_register( channel, IOPIC_EXTEND, extend ); 45 _pic_set_register( channel, IOPIC_MASK, 1 ); 57 46 } 58 47 59 /////////////////////////////////////////////////////////////////////////////////60 // This function returns the status of a given HWI channel.61 48 ///////////////////////////////////////////////////////////////////////////////// 62 49 unsigned int _pic_get_status( unsigned int channel )
Note: See TracChangeset
for help on using the changeset viewer.