- Nuke some more #ifdef sun related sections.

This commit is contained in:
Andrew R. Reiter 2002-04-19 21:38:43 +00:00
parent c330efb1ed
commit 4fba67caca
4 changed files with 1 additions and 41 deletions

View file

@ -338,15 +338,6 @@ struct atm_ncm {
#define DEVICE_LOCK(u) ((u)->cu_savepri = splimp())
#define DEVICE_UNLOCK(u) ((void) splx((u)->cu_savepri))
/*
* SBus defines
*/
#if defined(sun)
#define SBUS_BURST32 0x20 /* Device supports 32-byte bursts */
#endif
/*
* Macro to schedule the ATM interrupt queue handler
*/

View file

@ -415,7 +415,7 @@ struct air_phy_stat_rsp {
/*
* PF_ATM ioctls
*/
#if defined(sun) && !defined(__GNUC__)
#if !defined(__GNUC__)
#define AIOCCFG _IOW(A, 128, struct atmcfgreq) /* Configure i/f */
#define AIOCADD _IOW(A, 129, struct atmaddreq) /* Add (e.g. PVC) */
#define AIOCDEL _IOW(A, 130, struct atmdelreq) /* Delete */

View file

@ -38,25 +38,6 @@
#ifndef _NETATM_PORT_H
#define _NETATM_PORT_H
/*
* Try to ensure that this system is supported
*/
#if (defined(BSD) && (BSD >= 199103))
/* 4.3 BSD Net2 based */
#elif defined(sun)
/* SunOS4.x */
#else
/* Ooops */
#error "Undefined/unsupported system type"
#endif
/*
* User-space memory management
*
@ -73,11 +54,6 @@
#define UM_COPY(from, to, len) bcopy((void *)(from), (void *)(to),\
(size_t)(len))
#define UM_ZERO(addr, len) bzero((void *)(addr), (size_t)(len))
#elif defined(sun)
#define UM_ALLOC(size) malloc(size)
#define UM_FREE(addr) free((char *)(addr))
#define UM_COPY(from, to, len) bcopy((char *)(from), (char *)(to), (len))
#define UM_ZERO(addr, len) bzero((char *)(addr), (len))
#endif
@ -483,8 +459,6 @@ typedef int KTimeout_ret;
#endif
#if (defined(BSD) && (BSD >= 199103))
#define KT_TIME(t) microtime(&t)
#elif defined(sun)
#define KT_TIME(t) uniqtime(&t)
#else
#define KT_TIME(t) ((t) = time)
#endif

View file

@ -84,8 +84,6 @@ __RCSID("@(#) $FreeBSD$");
* Mountain View, California 94043
*/
#if !defined(sun)
#if defined(LIBC_SCCS) && !defined(lint)
/*static char *sccsid = "from: @(#)xdr.c 1.35 87/08/12";*/
/*static char *sccsid = "from: @(#)xdr.c 2.1 88/07/29 4.0 RPCSRC";*/
@ -683,6 +681,3 @@ xdrmbuf_getpos(xdrs)
return ((u_int)xdrs->x_private - (u_int)xdrs->x_base);
}
#endif /* !defined(sun) */