• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #ifndef DDK750_HELP_H__
2 #define DDK750_HELP_H__
3 #include "ddk750_chip.h"
4 #ifndef USE_INTERNAL_REGISTER_ACCESS
5 
6 #include <linux/ioport.h>
7 #include <linux/io.h>
8 #include <linux/uaccess.h>
9 
10 /* software control endianness */
11 #define PEEK32(addr) readl(addr + mmio750)
12 #define POKE32(addr, data) writel(data, addr + mmio750)
13 
14 extern void __iomem *mmio750;
15 extern char revId750;
16 extern unsigned short devId750;
17 #else
18 /* implement if you want use it*/
19 #endif
20 
21 #endif
22