summaryrefslogtreecommitdiff
path: root/device/net_io.c
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@gnu.org>2006-03-19 19:31:16 +0000
committerThomas Schwinge <tschwinge@gnu.org>2009-06-18 00:26:36 +0200
commitb80e893edaa066af2a0c5c725c0c394e7c7c20e0 (patch)
tree7cb2014a52bdace2aa84e6d5a6ee87513b025eea /device/net_io.c
parentac066e39f2dab1c3d01fadce2de0e3dbd19dcb73 (diff)
2006-03-19 Thomas Schwinge <tschwinge@gnu.org>
* DEVELOPMENT: Document the FIPC removal. 2006-03-19 Leonardo Lopes Pereira <leonardolopespereira@gmail.com> Remove unused and unsuported code. Consult the file `DEVELOPMENT' for details. * ipc/fipc.c: Remove file. * ipc/fipc.h: Likewise. * Makefile.in (ipc-cfiles): Remove `fipc.c'. (ipc-files): Remove `fipc.h'. * device/device_init.c [FIPC]: Remove code. * device/net_io.c [FIPC]: Likewise. * include/mach/syscall_sw.h [FIPC]: Likewise. * kern/syscall_sw.c [FIPC]: Likewise.
Diffstat (limited to 'device/net_io.c')
-rw-r--r--device/net_io.c57
1 files changed, 0 insertions, 57 deletions
diff --git a/device/net_io.c b/device/net_io.c
index 5762c88..a98523b 100644
--- a/device/net_io.c
+++ b/device/net_io.c
@@ -1432,63 +1432,6 @@ net_write(ifp, start, ior)
return (D_IO_QUEUED);
}
-#ifdef FIPC
-/* This gets called by nefoutput for dev_ops->d_port_death ... */
-
-io_return_t
-net_fwrite(ifp, start, ior)
- register struct ifnet *ifp;
- int (*start)();
- io_req_t ior;
-{
- spl_t s;
- kern_return_t rc;
- boolean_t wait;
-
- /*
- * Reject the write if the interface is down.
- */
- if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING))
- return (D_DEVICE_DOWN);
-
- /*
- * Reject the write if the packet is too large or too small.
- */
- if (ior->io_count < ifp->if_header_size ||
- ior->io_count > ifp->if_header_size + ifp->if_mtu)
- return (D_INVALID_SIZE);
-
- /*
- * DON'T Wire down the memory.
- */
-#if 0
- rc = device_write_get(ior, &wait);
- if (rc != KERN_SUCCESS)
- return (rc);
-#endif
- /*
- * Network interfaces can't cope with VM continuations.
- * If wait is set, just panic.
- */
- /* I'll have to figure out who was setting wait...*/
-#if 0
- if (wait) {
- panic("net_write: VM continuation");
- }
-#endif
- /*
- * Queue the packet on the output queue, and
- * start the device.
- */
- s = splimp();
- IF_ENQUEUE(&ifp->if_snd, ior);
- (*start)(ifp->if_unit);
- splx(s);
-
- return (D_IO_QUEUED);
-}
-#endif /* FIPC */
-
/*
* Initialize the whole package.
*/