X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/a2eb4407e9772cf1057e7ea093250d5d38245c1d..831ccb1f14f7472962fc2d185f32e18105209bd7:/lincan/src/nsi_canpci.c diff --git a/lincan/src/nsi_canpci.c b/lincan/src/nsi_canpci.c index 9fbed11..97ce2b4 100644 --- a/lincan/src/nsi_canpci.c +++ b/lincan/src/nsi_canpci.c @@ -23,10 +23,10 @@ extern int mo15mask; #include #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)) - #define ioread32 readl - #define iowrite32 writel - #define ioread8 readb - #define iowrite8 writeb + #define ioread32 can_readl + #define iowrite32 can_writel + #define ioread8 can_readb + #define iowrite8 can_writeb #else #endif @@ -517,7 +517,7 @@ int nsi_canpci_program_irq(struct candevice_t *candev) * on the CAN chip. You should only have to edit this function if your hardware * uses some specific write process. */ -void nsi_canpci_write_register(unsigned data, unsigned long address) +void nsi_canpci_write_register(unsigned data, can_ioptr_t address) { iowrite8((u8)data,(void*)address); } @@ -526,7 +526,7 @@ void nsi_canpci_write_register(unsigned data, unsigned long address) * on the CAN chip. You should only have to edit this function if your hardware * uses some specific read process. */ -unsigned nsi_canpci_read_register(unsigned long address) +unsigned nsi_canpci_read_register(can_ioptr_t address) { return ioread8((void*)address); }