Loading py393/generated/x393.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,7 @@ #include <linux/io.h> #include <linux/io.h> #include "x393.h" #include "x393.h" static void __iomem mmio_ptr; static void __iomem* mmio_ptr; // init_mmio_ptr() should be called once before using any of the other defined functions // init_mmio_ptr() should be called once before using any of the other defined functions Loading py393/x393_export_c.py +1 −1 Original line number Original line Diff line number Diff line Loading @@ -149,7 +149,7 @@ class X393ExportC(object): # Includes section # Includes section txt = '\n#include <linux/io.h>\n' txt = '\n#include <linux/io.h>\n' txt += '#include "x393.h"\n\n' txt += '#include "x393.h"\n\n' txt += 'static void __iomem mmio_ptr;\n\n' txt += 'static void __iomem* mmio_ptr;\n\n' txt += '// init_mmio_ptr() should be called once before using any of the other defined functions\n\n' txt += '// init_mmio_ptr() should be called once before using any of the other defined functions\n\n' txt += 'int init_mmio_ptr(void) {mmio_ptr = ioremap(0x%08x, 0x%08x); if (!mmio_ptr) return -1; else return 0;}\n'%(self.MAXI0_BASE,self.MAXI0_RANGE) txt += 'int init_mmio_ptr(void) {mmio_ptr = ioremap(0x%08x, 0x%08x); if (!mmio_ptr) return -1; else return 0;}\n'%(self.MAXI0_BASE,self.MAXI0_RANGE) Loading Loading
py393/generated/x393.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -8,7 +8,7 @@ #include <linux/io.h> #include <linux/io.h> #include "x393.h" #include "x393.h" static void __iomem mmio_ptr; static void __iomem* mmio_ptr; // init_mmio_ptr() should be called once before using any of the other defined functions // init_mmio_ptr() should be called once before using any of the other defined functions Loading
py393/x393_export_c.py +1 −1 Original line number Original line Diff line number Diff line Loading @@ -149,7 +149,7 @@ class X393ExportC(object): # Includes section # Includes section txt = '\n#include <linux/io.h>\n' txt = '\n#include <linux/io.h>\n' txt += '#include "x393.h"\n\n' txt += '#include "x393.h"\n\n' txt += 'static void __iomem mmio_ptr;\n\n' txt += 'static void __iomem* mmio_ptr;\n\n' txt += '// init_mmio_ptr() should be called once before using any of the other defined functions\n\n' txt += '// init_mmio_ptr() should be called once before using any of the other defined functions\n\n' txt += 'int init_mmio_ptr(void) {mmio_ptr = ioremap(0x%08x, 0x%08x); if (!mmio_ptr) return -1; else return 0;}\n'%(self.MAXI0_BASE,self.MAXI0_RANGE) txt += 'int init_mmio_ptr(void) {mmio_ptr = ioremap(0x%08x, 0x%08x); if (!mmio_ptr) return -1; else return 0;}\n'%(self.MAXI0_BASE,self.MAXI0_RANGE) Loading