summaryrefslogtreecommitdiff
path: root/usr/src/uts/sparc/ml
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/uts/sparc/ml')
-rw-r--r--usr/src/uts/sparc/ml/fd_asm.s13
-rw-r--r--usr/src/uts/sparc/ml/ip_ocsum.s14
-rw-r--r--usr/src/uts/sparc/ml/modstubs.s9
-rw-r--r--usr/src/uts/sparc/ml/sparc_ddi.s178
4 files changed, 0 insertions, 214 deletions
diff --git a/usr/src/uts/sparc/ml/fd_asm.s b/usr/src/uts/sparc/ml/fd_asm.s
index 400c97bf74..dd579ddf3b 100644
--- a/usr/src/uts/sparc/ml/fd_asm.s
+++ b/usr/src/uts/sparc/ml/fd_asm.s
@@ -32,18 +32,6 @@
* dreaded "Empty translation unit" warning.
*/
-#if defined(lint)
-#include <sys/types.h>
-
-/*ARGSUSED*/
-u_int
-fd_intr(caddr_t arg)
-{
- return (0);
-}
-
-#else /* lint */
-
#include <sys/asm_linkage.h>
#include <sys/fdreg.h>
#include <sys/fdvar.h>
@@ -356,4 +344,3 @@ fd_intr(caddr_t arg)
nop
-#endif /* lint */
diff --git a/usr/src/uts/sparc/ml/ip_ocsum.s b/usr/src/uts/sparc/ml/ip_ocsum.s
index acccf3e195..f3f31b70fb 100644
--- a/usr/src/uts/sparc/ml/ip_ocsum.s
+++ b/usr/src/uts/sparc/ml/ip_ocsum.s
@@ -28,10 +28,6 @@
#include <sys/asm_linkage.h>
-#if defined(lint)
-#include <sys/types.h>
-#endif /* lint */
-
/*
* ip_ocsum(address, halfword_count, sum)
* Do a 16 bit one's complement sum of a given number of (16-bit)
@@ -43,15 +39,6 @@
*
*/
-#if defined(lint)
-
-/* ARGSUSED */
-unsigned int
-ip_ocsum(u_short *address, int halfword_count, unsigned int sum)
-{ return (0); }
-
-#else /* lint */
-
ENTRY(ip_ocsum)
cmp %o1, 31 ! less than 62 bytes?
bl,a .dohw ! just do halfwords
@@ -124,4 +111,3 @@ ip_ocsum(u_short *address, int halfword_count, unsigned int sum)
addxcc %o2, 0, %o0 ! add in carry if any. result in %o0
SET_SIZE(ip_ocsum)
-#endif /* lint */
diff --git a/usr/src/uts/sparc/ml/modstubs.s b/usr/src/uts/sparc/ml/modstubs.s
index 1cf28e45e7..07de0dffff 100644
--- a/usr/src/uts/sparc/ml/modstubs.s
+++ b/usr/src/uts/sparc/ml/modstubs.s
@@ -25,18 +25,10 @@
* Copyright (c) 2017, Joyent, Inc. All rights reserved.
*/
-#if !defined(lint)
#include "assym.h"
-#endif /* !lint */
#include <sys/asm_linkage.h>
-#if defined(lint)
-
-char stubs_base[1], stubs_end[1];
-
-#else /* lint */
-
/*
* WARNING: there is no check for forgetting to write END_MODULE,
* and if you do, the kernel will most likely crash. Be careful
@@ -1284,4 +1276,3 @@ stubs_base:
stubs_end:
nop
-#endif /* lint */
diff --git a/usr/src/uts/sparc/ml/sparc_ddi.s b/usr/src/uts/sparc/ml/sparc_ddi.s
index 7497459b4a..5f4d1499ff 100644
--- a/usr/src/uts/sparc/ml/sparc_ddi.s
+++ b/usr/src/uts/sparc/ml/sparc_ddi.s
@@ -32,23 +32,12 @@
* These routines should ONLY be ISA-dependent.
*/
-#if defined(lint)
-
-#include <sys/types.h>
-#include <sys/systm.h>
-#include <sys/file.h>
-#include <sys/sunddi.h>
-
-#else /* lint */
-
#include <sys/asm_linkage.h>
#include <sys/clock.h>
#include <sys/intreg.h>
#include "assym.h" /* for FKIOCTL etc. */
-#endif /* lint */
-
/*
* Layered driver routines.
@@ -72,18 +61,6 @@
call routine; \
mov %g1, %o7
-#ifdef lint
-
-int
-ddi_copyin(const void *buf, void *kernbuf, size_t size, int flags)
-{
- if (flags & FKIOCTL)
- return (kcopy(buf, kernbuf, size) ? -1 : 0);
- return (copyin(buf, kernbuf, size));
-}
-
-#else /* lint */
-
ENTRY(ddi_copyin)
set FKIOCTL, %o4
andcc %o3, %o4, %g0
@@ -104,20 +81,6 @@ ddi_copyin(const void *buf, void *kernbuf, size_t size, int flags)
restore
SET_SIZE(ddi_copyin)
-#endif /* lint */
-
-#ifdef lint
-
-int
-ddi_copyout(const void *buf, void *kernbuf, size_t size, int flags)
-{
- if (flags & FKIOCTL)
- return (kcopy(buf, kernbuf, size) ? -1 : 0);
- return (copyout(buf, kernbuf, size));
-}
-
-#else /* lint */
-
ENTRY(ddi_copyout)
set FKIOCTL, %o4
andcc %o3, %o4, %g0
@@ -126,24 +89,11 @@ ddi_copyout(const void *buf, void *kernbuf, size_t size, int flags)
/*NOTREACHED*/
SET_SIZE(ddi_copyout)
-#endif /* lint */
-
/*
* DDI spine wrapper routines - here so as to not have to
* buy register windows when climbing the device tree (which cost!)
*/
-#if defined(lint)
-
-/*ARGSUSED*/
-int
-ddi_ctlops(dev_info_t *d, dev_info_t *r, ddi_ctl_enum_t op, void *a, void *v)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_ctlops)
tst %o0 ! dip != 0?
be,pn %ncc, 2f ! nope
@@ -162,20 +112,6 @@ ddi_ctlops(dev_info_t *d, dev_info_t *r, ddi_ctl_enum_t op, void *a, void *v)
sub %g0, 1, %o0 ! return (DDI_FAILURE);
SET_SIZE(ddi_ctlops)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_allochdl(dev_info_t *dip, dev_info_t *rdip, ddi_dma_attr_t *attr,
- int (*waitfp)(caddr_t), caddr_t arg, ddi_dma_handle_t *handlep)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_allochdl)
ldn [%o0 + DEVI_BUS_DMA_ALLOCHDL], %o0
! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_allochdl;
@@ -187,19 +123,6 @@ ddi_dma_allochdl(dev_info_t *dip, dev_info_t *rdip, ddi_dma_attr_t *attr,
nop ! as if we had never been here
SET_SIZE(ddi_dma_allochdl)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_freehdl(dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t handlep)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_freehdl)
ldn [%o0 + DEVI_BUS_DMA_FREEHDL], %o0
! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_freehdl;
@@ -211,21 +134,6 @@ ddi_dma_freehdl(dev_info_t *dip, dev_info_t *rdip, ddi_dma_handle_t handlep)
nop ! as if we had never been here
SET_SIZE(ddi_dma_freehdl)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_bindhdl(dev_info_t *dip, dev_info_t *rdip,
- ddi_dma_handle_t handle, struct ddi_dma_req *dmareq,
- ddi_dma_cookie_t *cp, u_int *ccountp)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_bindhdl)
ldn [%o0 + DEVI_BUS_DMA_BINDHDL], %o0
! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_bindhdl;
@@ -237,20 +145,6 @@ ddi_dma_bindhdl(dev_info_t *dip, dev_info_t *rdip,
nop ! as if we had never been here
SET_SIZE(ddi_dma_bindhdl)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_unbindhdl(dev_info_t *dip, dev_info_t *rdip,
- ddi_dma_handle_t handle)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_unbindhdl)
ldn [%o0 + DEVI_BUS_DMA_UNBINDHDL], %o0
! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_unbindhdl;
@@ -262,21 +156,6 @@ ddi_dma_unbindhdl(dev_info_t *dip, dev_info_t *rdip,
nop ! as if we had never been here
SET_SIZE(ddi_dma_unbindhdl)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_flush(dev_info_t *dip, dev_info_t *rdip,
- ddi_dma_handle_t handle, off_t off, size_t len,
- u_int cache_flags)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_flush)
ldn [%o0 + DEVI_BUS_DMA_FLUSH], %o0
! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_flush;
@@ -288,21 +167,6 @@ ddi_dma_flush(dev_info_t *dip, dev_info_t *rdip,
nop ! as if we had never been here
SET_SIZE(ddi_dma_flush)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_win(dev_info_t *dip, dev_info_t *rdip,
- ddi_dma_handle_t handle, uint_t win, off_t *offp,
- size_t *lenp, ddi_dma_cookie_t *cookiep, uint_t *ccountp)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_win)
ldn [%o0 + DEVI_BUS_DMA_WIN], %o0
! dip = (dev_info_t *)DEVI(dip)->devi_bus_dma_win;
@@ -314,19 +178,6 @@ ddi_dma_win(dev_info_t *dip, dev_info_t *rdip,
nop ! as if we had never been here
SET_SIZE(ddi_dma_win)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_sync(ddi_dma_handle_t h, off_t o, size_t l, u_int whom)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_sync)
ld [%o0 + DMA_HANDLE_RFLAGS], %o4 ! hp->dmai_rflags;
sethi %hi(DMP_NOSYNC), %o5
@@ -351,19 +202,6 @@ ddi_dma_sync(ddi_dma_handle_t h, off_t o, size_t l, u_int whom)
nop ! as if we had never been here
SET_SIZE(ddi_dma_sync)
-#endif /* lint */
-
-#if defined(lint)
-
-/* ARGSUSED */
-int
-ddi_dma_unbind_handle(ddi_dma_handle_t h)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
-
ENTRY(ddi_dma_unbind_handle)
ldn [%o0 + DMA_HANDLE_RDIP], %o1 ! dip = hp->dmai_rdip;
mov %o0, %o2
@@ -374,21 +212,6 @@ ddi_dma_unbind_handle(ddi_dma_handle_t h)
! hdip = (dev_info_t *)DEVI(dip)->devi_bus_dma_unbindhdl;
SET_SIZE(ddi_dma_unbind_handle)
-#endif /* lint */
-
-
-#if defined(lint)
-
-/*ARGSUSED*/
-int
-ddi_dma_mctl(register dev_info_t *dip, dev_info_t *rdip,
- ddi_dma_handle_t handle, enum ddi_dma_ctlops request,
- off_t *offp, size_t *lenp, caddr_t *objp, u_int flags)
-{
- return (DDI_SUCCESS);
-}
-
-#else /* lint */
ENTRY(ddi_dma_mctl)
ldn [%o0 + DEVI_BUS_DMA_CTL], %o0
@@ -400,4 +223,3 @@ ddi_dma_mctl(register dev_info_t *dip, dev_info_t *rdip,
nop ! as if we had never been here
SET_SIZE(ddi_dma_mctl)
-#endif /* lint */