source: soft/giet_vm/giet_drivers/pic_driver.h @ 298

Last change on this file since 298 was 298, checked in by alain, 10 years ago

Introducing pic driver and rdk driver

File size: 1.8 KB
Line 
1///////////////////////////////////////////////////////////////////////////////////
2// File     : pic_driver.h
3// Date     : 05/03/2014
4// Author   : alain greiner
5// Copyright (c) UPMC-LIP6
6///////////////////////////////////////////////////////////////////////////////////
7
8#ifndef _GIET_PIC_DRIVERS_H_
9#define _GIET_PIC_DRIVERS_H_
10
11///////////////////////////////////////////////////////////////////////////////////
12// PIC (vci_iopic) registers offsets
13///////////////////////////////////////////////////////////////////////////////////
14
15enum PIC_registers
16{
17    IOPIC_ADDRESS = 0,
18    IOPIC_EXTEND  = 1,
19    IOPIC_STATUS  = 2,
20    /**/
21    IOPIC_SPAN    = 4,
22};
23
24//////////////////////////////////////////////////////////////////////////////////
25// PIC access functions
26//////////////////////////////////////////////////////////////////////////////////
27
28extern void _pic_init( unsigned int channel,     // source PIC HWI channel
29                       unsigned int vaddr,       // dest XCU WTI address
30                       unsigned int extend );    // dest XCU cluster_xy
31
32extern unsigned int _pic_get_status( unsigned int channel ); 
33
34///////////////////////////////////////////////////////////////////////////////////
35// low-level access functions
36///////////////////////////////////////////////////////////////////////////////////
37
38extern unsigned int _pic_get_register( unsigned int channel,
39                                       unsigned int index );
40
41extern void _pic_set_register( unsigned int channel,
42                               unsigned int index,
43                               unsigned int value );
44
45#endif
46
47// Local Variables:
48// tab-width: 4
49// c-basic-offset: 4
50// c-file-offsets:((innamespace . 0)(inline-open . 0))
51// indent-tabs-mode: nil
52// End:
53// vim: filetype=c:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
54
Note: See TracBrowser for help on using the repository browser.