summaryrefslogtreecommitdiffstats
path: root/sys/netatm/atm_device.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2000-10-12 00:03:50 +0000
committerphk <phk@FreeBSD.org>2000-10-12 00:03:50 +0000
commit4d5d6d69caae71da99ba0702fed86b0546c11270 (patch)
treea68c1b4be98329ceb704b534012c2cb72f2e459f /sys/netatm/atm_device.c
parent11037c013d79eae9f06a8e84c4d35cce975567f2 (diff)
downloadFreeBSD-src-4d5d6d69caae71da99ba0702fed86b0546c11270.zip
FreeBSD-src-4d5d6d69caae71da99ba0702fed86b0546c11270.tar.gz
Do some cleanups of the HARP atm codes interface into the system:
Define the NETISR just like all the other NETISRs. unifdef -Usun -D__FreeBSD__ we will probably never support sun4c and if we do we can't use the solaris code anyway and I doubt anybody will be running Fore ATM cards in then in the first place.
Diffstat (limited to 'sys/netatm/atm_device.c')
-rw-r--r--sys/netatm/atm_device.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/sys/netatm/atm_device.c b/sys/netatm/atm_device.c
index 9c645a5..9bd4ee1 100644
--- a/sys/netatm/atm_device.c
+++ b/sys/netatm/atm_device.c
@@ -449,19 +449,7 @@ atm_dev_alloc(size, align, flags)
*
* This is obviously very OS-specific stuff
*/
-#ifdef sun
- if (flags & ATM_DEV_NONCACHE) {
- /* Byte-aligned */
- kalign = sizeof(long);
- } else {
- /* Doubleword-aligned */
- kalign = sizeof(double);
- }
-#elif (defined(BSD) && (BSD >= 199103))
kalign = MINALLOCSIZE;
-#else
- #error Unsupported/unconfigured OS
-#endif
/*
* Figure out how much memory we must allocate to satify the
@@ -476,13 +464,7 @@ atm_dev_alloc(size, align, flags)
* Finally, go get the memory
*/
if (flags & ATM_DEV_NONCACHE) {
-#ifdef sun
- mep->me_kaddr = IOPBALLOC(ksize);
-#elif defined(__i386__)
mep->me_kaddr = KM_ALLOC(ksize, M_DEVBUF, M_NOWAIT);
-#else
- #error Unsupported/unconfigured OS
-#endif
} else {
mep->me_kaddr = KM_ALLOC(ksize, M_DEVBUF, M_NOWAIT);
}
@@ -572,13 +554,7 @@ atm_dev_free(uaddr)
* Give the memory space back to the kernel
*/
if (mep->me_flags & ATM_DEV_NONCACHE) {
-#ifdef sun
- IOPBFREE(mep->me_kaddr, mep->me_ksize);
-#elif defined(__i386__)
KM_FREE(mep->me_kaddr, mep->me_ksize, M_DEVBUF);
-#else
- #error Unsupported/unconfigured OS
-#endif
} else {
KM_FREE(mep->me_kaddr, mep->me_ksize, M_DEVBUF);
}
OpenPOWER on IntegriCloud