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

Subversion Repositories core_arm

[/] [core_arm/] [trunk/] [vhdl/] [peripherals/] [mem/] [c_model/] [mctrl.h] - Blame information for rev 4

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 tarookumic
#ifndef MEMCTRL_H
2
#define MEMCTRL_H
3
 
4
typedef struct _mctrl {
5
  char *rom_m;
6
  unsigned int rom_sz;
7
  char *sram_m;
8
  unsigned int sram_sz;
9
  char *sdram_m;
10
  unsigned int sdram_sz;
11
 
12
  unsigned int mcfg1;
13
  unsigned int mcfg2;
14
  unsigned int mcfg3;
15
} mctrl_struct;
16
 
17
 
18
/* in mctrl.c */
19
mctrl_struct *mctrl_create();
20
int mctrl_read(mctrl_struct *c,unsigned int addr,unsigned int *data);
21
int mctrl_write(mctrl_struct *c,unsigned int addr,unsigned int data);
22
int mctrl_pwrite(mctrl_struct *c,unsigned int addr,unsigned int data);
23
int mctrl_pread(mctrl_struct *c,unsigned int addr,unsigned int *data);
24
 
25
 
26
 
27
#endif
28
 

powered by: WebSVN 2.1.0

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