3 * ________ _________ ____ / __ \/ ___/
4 * / ___/ _ \/ ___/ __ \/ __ \/ / / /\__ \
5 * / / / __/ /__/ /_/ / / / / /_/ /___/ /
6 * /_/ \___/\___/\____/_/ /_/\____//____/
8 * ======================================================================
10 * title: Architecture specific code
13 * author: Christoph RĂ¼thing, University of Paderborn
14 * description: Functions needed for ReconOS which are architecure
15 * specific and are implemented here.
17 * ======================================================================
20 #ifndef RECONOS_ARCH_H
21 #define RECONOS_ARCH_H
28 /* == OSIF related functions ============================================ */
30 extern int reconos_osif_open(int num
);
31 extern uint32_t reconos_osif_read(int fd
);
32 extern void reconos_osif_write(int fd
, uint32_t data
);
33 extern void reconos_osif_close(int fd
);
36 /* == Proc control related functions ==================================== */
38 extern int reconos_proc_control_open();
39 extern int reconos_proc_control_get_num_hwts(int fd
);
40 extern int reconos_proc_control_get_tlb_hits(int fd
);
41 extern int reconos_proc_control_get_tlb_misses(int fd
);
42 extern uint32_t reconos_proc_control_get_fault_addr(int fd
);
43 extern void reconos_proc_control_clear_page_fault(int fd
);
44 extern void reconos_proc_control_set_pgd(int fd
);
45 extern void reconos_proc_control_sys_reset(int fd
);
46 extern void reconos_proc_control_hwt_reset(int fd
, int num
, int reset
);
47 extern void reconos_proc_control_cache_flush(int fd
);
48 extern void reconos_proc_control_close(int fd
);
51 /* == Reconfiguration related functions ================================= */
53 extern int load_partial_bitstream(uint32_t *bitstream
, unsigned int bitstream_length
);
56 /* == Initialization function =========================================== */
58 extern void reconos_drv_init();
60 #endif /* RECONOS_ARCH_H */