OpenCores
URL https://opencores.org/ocsvn/funbase_ip_library/funbase_ip_library/trunk

Subversion Repositories funbase_ip_library

[/] [funbase_ip_library/] [trunk/] [TUT/] [ip.hwp.communication/] [hibi_pe_dma/] [1.0/] [tb/] [system/] [scr_cpu0/] [support.h] - Blame information for rev 145

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 145 lanttu
/*
2
 *
3
 * Author            : Lasse Lehtonen
4
 * Last modification : 29.03.2011
5
 *
6
 * HPD support functions for handling initialization, sending, receiving and
7
 *  ISR stuff (needs that funky hpd_isr_fifo)
8
 *
9
 */
10
 
11
/* NB
12
 *
13
 *  Remember to modify below
14
 *     #define HIBI_PE_DMA_BASE
15
 *     #define HIBI_PE_DMA_IRQ_INTERRUPT_CONTROLLER_ID
16
 *     #define HIBI_PE_DMA_IRQ
17
 *
18
 */
19
 
20
#ifndef SUPPORT_H
21
#define SUPPORT_H
22
 
23
#include "hpd_isr_fifo.h"
24
#include "system.h"
25
#include "hpd_registers_conf.h"
26
#include "hpd_macros.h"
27
 
28
 
29
#define HIBI_PE_DMA_BASE (0x80000000 | HIBI_PE_DMA_0_BASE)
30
#define HIBI_PE_DMA_IRQ_INTERRUPT_CONTROLLER_ID HIBI_PE_DMA_0_IRQ_INTERRUPT_CONTROLLER_ID
31
#define HIBI_PE_DMA_IRQ HIBI_PE_DMA_0_IRQ
32
 
33
 
34
/*            where to read      how much    target address */
35
void hpd_send(int data_src_addr, int words, int hibi_addr);
36
 
37
/*               which channel  where to store,    amount   address to match*/
38
void hpd_init_rx(int rx_channel, int rx_addr, int rx_words, int hibi_addr);
39
 
40
/* Returns the position of the first occurrence of '1' from LSB (rigth)*/
41
int onehot2int(int num);
42
 
43
/* ISR handler*/
44
void hpd_isr(void* context);
45
 
46
/* Init interrupt service */
47
void hpd_isr_init(Hpd_isr_fifo* hpd_isr_fifo);
48
 
49
 
50
#endif
51
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.