diff options
author | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 1999-08-04 06:01:51 +0000 |
---|---|---|
committer | Ulf Carlsson <md1ulfc@mdstud.chalmers.se> | 1999-08-04 06:01:51 +0000 |
commit | 676a4a77d9dcb03e5489d072fe8e2961b0dee822 (patch) | |
tree | 9de899575bee6277e2b59d48ff92c68c51227f89 /include | |
parent | d27e47dc2bcf5c6a982fed1ef605ecbdf0f5cc7a (diff) |
Make it compile.
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-mips/newport.h | 20 | ||||
-rw-r--r-- | include/asm-mips/ng1hw.h | 8 |
2 files changed, 13 insertions, 15 deletions
diff --git a/include/asm-mips/newport.h b/include/asm-mips/newport.h index 2f59ee6c9..de25d10a9 100644 --- a/include/asm-mips/newport.h +++ b/include/asm-mips/newport.h @@ -1,4 +1,4 @@ -/* $Id: newport.h,v 1.3 1999/07/04 01:10:23 ulfc Exp $ +/* $Id$ * * newport.h: Defines and register layout for NEWPORT graphics * hardware. @@ -161,7 +161,7 @@ struct newport_rexregs { npireg_t xsave; /* copy of xstart integer value for BLOCk addressing MODE */ npireg_t xymove; /* x.y offset from xstart, ystart for relative operations */ npfreg_t bresd; - npfreg_t bress1;; + npfreg_t bress1; npireg_t bresoctinc1; volatile int bresrndinc2; npireg_t brese1; @@ -384,7 +384,7 @@ typedef struct { #define VC2_IREG_CONTROL 0x10 #define VC2_IREG_CONFIG 0x20 -extern inline void newport_vc2_set(struct newport_regs *regs, unsigned char vc2ireg, +extern __inline__ void newport_vc2_set(struct newport_regs *regs, unsigned char vc2ireg, unsigned short val) { regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W3 | @@ -392,7 +392,7 @@ extern inline void newport_vc2_set(struct newport_regs *regs, unsigned char vc2i regs->set.dcbdata0.byword = (vc2ireg << 24) | (val << 8); } -extern inline unsigned short newport_vc2_get(struct newport_regs *regs, +extern __inline__ unsigned short newport_vc2_get(struct newport_regs *regs, unsigned char vc2ireg) { regs->set.dcbmode = (NPORT_DMODE_AVC2 | VC2_REGADDR_INDEX | NPORT_DMODE_W1 | @@ -426,7 +426,7 @@ extern inline unsigned short newport_vc2_get(struct newport_regs *regs, #define NCMAP_REGADDR_RREG 0x00000060 #define NCMAP_PROTOCOL (0x00008000 | 0x00040000 | 0x00800000) -static inline void newport_cmap_setaddr(struct newport_regs *regs, +static __inline__ void newport_cmap_setaddr(struct newport_regs *regs, unsigned short addr) { regs->set.dcbmode = (NPORT_DMODE_ACMALL | NCMAP_PROTOCOL | @@ -437,7 +437,7 @@ static inline void newport_cmap_setaddr(struct newport_regs *regs, NCMAP_REGADDR_PBUF | NPORT_DMODE_W3); } -static inline void newport_cmap_setrgb(struct newport_regs *regs, +static __inline__ void newport_cmap_setrgb(struct newport_regs *regs, unsigned char red, unsigned char green, unsigned char blue) @@ -450,7 +450,7 @@ static inline void newport_cmap_setrgb(struct newport_regs *regs, /* Miscellaneous NEWPORT routines. */ #define BUSY_TIMEOUT 100000 -static inline int newport_wait(void) +static __inline__ int newport_wait(void) { int i = 0; @@ -462,7 +462,7 @@ static inline int newport_wait(void) return 0; } -static inline int newport_bfwait(void) +static __inline__ int newport_bfwait(void) { int i = 0; @@ -559,7 +559,7 @@ int newport_ioctl (int card, int cmd, unsigned long arg); #define WAYSLOW_DCB_XMAP9_PROTOCOL DCB_CYCLES (12, 12, 0) #define R_DCB_XMAP9_PROTOCOL DCB_CYCLES (2, 1, 3) -static inline void +static __inline__ void xmap9FIFOWait (struct newport_regs *rex) { rex->set.dcbmode = DCB_XMAP0 | XM9_CRS_FIFO_AVAIL | @@ -570,7 +570,7 @@ xmap9FIFOWait (struct newport_regs *rex) ; } -static inline void +static __inline__ void xmap9SetModeReg (struct newport_regs *rex, unsigned int modereg, unsigned int data24, int cfreq) { if (cfreq > 119) diff --git a/include/asm-mips/ng1hw.h b/include/asm-mips/ng1hw.h index f034b6443..5a7c7efb6 100644 --- a/include/asm-mips/ng1hw.h +++ b/include/asm-mips/ng1hw.h @@ -1,4 +1,4 @@ -/* $Id: ng1hw.h,v 1.2 1999/07/04 01:10:23 ulfc Exp $ +/* $Id: ng1hw.h,v 1.3 1999/07/24 17:34:14 ulfc Exp $ * * ng1hw.h: Tweaks the newport.h structures and definations to be compatible * with IRIX. Quite ugly, but it works. @@ -13,13 +13,11 @@ #include <asm/newport.h> #define rex3regs newport_rexregs -#define rex3chip newport_regs #define configregs newport_cregs #define float_long npfreg_t -typedef struct rex3regs Rex3regs; -typedef struct rex3chip Rex3chip; -typedef struct configregs Configregs; +typedef struct newport_rexregs Rex3regs; +typedef struct newport_cregs Configregs; typedef union np_dcb DCB_reg; |