aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/rio/rio.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/rio/rio.h')
-rw-r--r--drivers/char/rio/rio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/rio/rio.h b/drivers/char/rio/rio.h
index 7f45e1ab5332..2d466ffe112d 100644
--- a/drivers/char/rio/rio.h
+++ b/drivers/char/rio/rio.h
@@ -186,8 +186,8 @@ static char *_rio_h_sccs_ = "@(#)rio.h 1.3";
186** RIO_OBJ takes hostp->Caddr and a UNIX pointer to an object and 186** RIO_OBJ takes hostp->Caddr and a UNIX pointer to an object and
187** returns the offset into the DP RAM area. 187** returns the offset into the DP RAM area.
188*/ 188*/
189#define RIO_PTR(C,O) (((caddr_t)(C))+(0xFFFF&(O))) 189#define RIO_PTR(C,O) (((unsigned char *)(C))+(0xFFFF&(O)))
190#define RIO_OFF(C,O) ((int)(O)-(int)(C)) 190#define RIO_OFF(C,O) ((long)(O)-(long)(C))
191 191
192/* 192/*
193** How to convert from various different device number formats: 193** How to convert from various different device number formats: