Geert, the following patch allows selecting the correct register access macros depending on whether the EtherNAT or NetUSBee variant of the ISP1160 chip is used. With this patch applied on top of the previous two, it should be possible to test the NetUSBee USB port. Cheers, Michael index 198b4bb..c8f0612 100644 --- a/drivers/usb/host/isp116x.h +++ b/drivers/usb/host/isp116x.h @@ -367,16 +367,16 @@ struct isp116x_ep { #ifdef CONFIG_ATARI /* 16 bit data bus byte swapped in hardware */ -#define isp_readw __raw_readw -#define isp_writew __raw_writew -#define isp_raw_readw readw -#define isp_raw_writew writew +#define isp_readw(p) (__pa(p) < 1024 ? raw_rom_inw((p)) : __raw_readw((p))) +#define isp_writew(v,p) (__pa(p) < 1024 ? raw_rom_outw((v),(p)) : __raw_writew((v),(p))) +#define isp_raw_readw(p) (__pa(p) < 1024 ? rom_in_le16((p)) : readw((p))) +#define isp_raw_writew(v,p) (__pa(p) < 1024 ? rom_out_le16((p),(v)) : writew((v),(p))) #else /* sane hardware */ -#define isp_readw readw -#define isp_writew writew -#define isp_raw_readw __raw_readw -#define isp_raw_writew __raw_writew +#define isp_readw readw +#define isp_writew writew +#define isp_raw_readw __raw_readw +#define isp_raw_writew __raw_writew #endif static inline void isp116x_write_addr(struct isp116x *isp116x, unsigned reg) -- To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html