]> Pileus Git - ~andy/linux/blobdiff - drivers/char/rio/rio.h
[PATCH] trivial annotations in rio
[~andy/linux] / drivers / char / rio / rio.h
index b4c91871ba2813f39177fcc7053865976dd0439f..1bf36223a4e86e6216c7c9e81e59139fc33b0a20 100644 (file)
 **     RIO_OBJ takes hostp->Caddr and a UNIX pointer to an object and
 **     returns the offset into the DP RAM area.
 */
-#define        RIO_PTR(C,O) (((unsigned char *)(C))+(0xFFFF&(O)))
-#define        RIO_OFF(C,O) ((long)(O)-(long)(C))
+#define        RIO_PTR(C,O) (((unsigned char __iomem *)(C))+(0xFFFF&(O)))
+#define        RIO_OFF(C,O) ((unsigned char __iomem *)(O)-(unsigned char __iomem *)(C))
 
 /*
 **     How to convert from various different device number formats: