-unsigned int p32x_sh2_read8(unsigned int a);
-unsigned int p32x_sh2_read16(unsigned int a);
-unsigned int p32x_sh2_read32(unsigned int a);
-void p32x_sh2_write8(unsigned int a, unsigned int d);
-void p32x_sh2_write16(unsigned int a, unsigned int d);
-void p32x_sh2_write32(unsigned int a, unsigned int d);
-
-#define RB p32x_sh2_read8
-#define RW p32x_sh2_read16
-#define RL p32x_sh2_read32
-#define WB p32x_sh2_write8
-#define WW p32x_sh2_write16
-#define WL p32x_sh2_write32
+unsigned int p32x_sh2_read8(unsigned int a, int id);
+unsigned int p32x_sh2_read16(unsigned int a, int id);
+unsigned int p32x_sh2_read32(unsigned int a, int id);
+void p32x_sh2_write8(unsigned int a, unsigned int d, int id);
+void p32x_sh2_write16(unsigned int a, unsigned int d, int id);
+void p32x_sh2_write32(unsigned int a, unsigned int d, int id);
+
+#define RB(a) p32x_sh2_read8(a,sh2->is_slave)
+#define RW(a) p32x_sh2_read16(a,sh2->is_slave)
+#define RL(a) p32x_sh2_read32(a,sh2->is_slave)
+#define WB(a,d) p32x_sh2_write8(a,d,sh2->is_slave)
+#define WW(a,d) p32x_sh2_write16(a,d,sh2->is_slave)
+#define WL(a,d) p32x_sh2_write32(a,d,sh2->is_slave)