sparc -> __sparc__

sun3 -> __sun3__
This commit is contained in:
chs 2000-04-10 02:16:15 +00:00
parent 464da48333
commit 8ad280f815
3 changed files with 11 additions and 11 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_ie_vme.c,v 1.8 2000/03/13 23:52:37 soren Exp $ */
/* $NetBSD: if_ie_vme.c,v 1.9 2000/04/10 02:16:15 chs Exp $ */
/*-
* Copyright (c) 1995 Charles D. Cranor
@ -492,7 +492,7 @@ ie_vme_attach(parent, self, aux)
void *aux;
{
u_int8_t myaddr[ETHER_ADDR_LEN];
#ifdef sparc
#ifdef __sparc__
extern void myetheraddr(u_char *); /* should be elsewhere */
#endif
struct ie_vme_softc *vsc = (void *) self;
@ -593,7 +593,7 @@ ie_vme_attach(parent, self, aux)
printf("\n%s:", self->dv_xname);
#ifdef sparc
#ifdef __sparc__
myetheraddr(myaddr);
#endif
i82586_attach(sc, "multibus/vme", myaddr, media, NMEDIA, media[0]);

View File

@ -1,4 +1,4 @@
/* $NetBSD: xd.c,v 1.19 2000/03/23 07:01:46 thorpej Exp $ */
/* $NetBSD: xd.c,v 1.20 2000/04/10 02:16:15 chs Exp $ */
/*
*
@ -249,7 +249,7 @@ cdev_decl(xd);
void xdc_md_setup __P((void));
int XDC_DELAY;
#if defined(sparc)
#if defined(__sparc__)
#include <sparc/sparc/vaddrs.h>
#include <sparc/sparc/cpuvar.h>
void xdc_md_setup()
@ -259,7 +259,7 @@ void xdc_md_setup()
else
XDC_DELAY = XDC_DELAY_SPARC;
}
#elif defined(sun3)
#elif defined(__sun3__)
void xdc_md_setup()
{
XDC_DELAY = XDC_DELAY_SUN3;
@ -2091,7 +2091,7 @@ xdc_error(xdcsc, iorq, iopb, rqno, comm)
int errno = iorq->errno;
int erract = errno & XD_ERA_MASK;
int oldmode, advance;
#ifdef sparc
#ifdef __sparc__
int i;
#endif
@ -2111,7 +2111,7 @@ xdc_error(xdcsc, iorq, iopb, rqno, comm)
(iorq->mode & XD_MODE_B144) == 0) {
advance = iorq->sectcnt - iopb->sectcnt;
XDC_ADVANCE(iorq, advance);
#ifdef sparc
#ifdef __sparc__
if ((i = isbad(&iorq->xd->dkb, iorq->blockno / iorq->xd->sectpercyl,
(iorq->blockno / iorq->xd->nsect) % iorq->xd->nhead,
iorq->blockno % iorq->xd->nsect)) != -1) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: xy.c,v 1.17 2000/03/23 07:01:47 thorpej Exp $ */
/* $NetBSD: xy.c,v 1.18 2000/04/10 02:16:16 chs Exp $ */
/*
*
@ -1982,7 +1982,7 @@ xyc_error(xycsc, iorq, iopb, comm)
int errno = iorq->errno;
int erract = xyc_entoact(errno);
int oldmode, advance;
#ifdef sparc
#ifdef __sparc__
int i;
#endif
@ -2000,7 +2000,7 @@ xyc_error(xycsc, iorq, iopb, comm)
(iorq->mode & XY_MODE_B144) == 0) {
advance = iorq->sectcnt - iopb->scnt;
XYC_ADVANCE(iorq, advance);
#ifdef sparc
#ifdef __sparc__
if ((i = isbad(&iorq->xy->dkb, iorq->blockno / iorq->xy->sectpercyl,
(iorq->blockno / iorq->xy->nsect) % iorq->xy->nhead,
iorq->blockno % iorq->xy->nsect)) != -1) {