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

Subversion Repositories mips_enhanced

[/] [mips_enhanced/] [trunk/] [grlib-gpl-1.0.19-b3188/] [software/] [leon3/] [hpi_functions.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 dimamali
#ifndef HPI_FUNCTIONS_H
2
#define HPI_FUNCTIONS_H
3
 
4
 
5
// do nothing for num loops
6
inline void kill_time(int num);
7
 
8
// low level read word via HPI
9
USHORT inw( PUSHORT b );
10
 
11
// low level write word via HPI
12
VOID outw(USHORT  a, PUSHORT b);
13
 
14
 
15
// write a data word to a CY-internal address
16
void lcd_hpi_write_word(unsigned short chip_addr,
17
                        unsigned short value);
18
 
19
 
20
// read a data word from a CY-internal address
21
unsigned short lcd_hpi_read_word(unsigned short chip_addr);
22
 
23
 
24
// write a given number of words contained in the buffer data
25
// starting from chip_addr (CY-internal addresses)
26
void lcd_hpi_write_words(unsigned short chip_addr,
27
                         unsigned short *data,
28
                         int num_words);
29
 
30
 
31
// read a given number of words starting from chip_addr
32
// (CY-internal addresses) into a data buffer
33
void lcd_hpi_read_words(unsigned short chip_addr,
34
                        unsigned short *data,
35
                        int num_words);
36
 
37
 
38
// write value to HPI mailbox register
39
void lcd_hpi_write_mailbox(unsigned short value);
40
 
41
 
42
// read value from HPI mailbox register
43
unsigned short lcd_hpi_read_mailbox();
44
 
45
 
46
// read value from HPI status register
47
unsigned short lcd_hpi_read_status();
48
 
49
 
50
#endif

powered by: WebSVN 2.1.0

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