From b80e893edaa066af2a0c5c725c0c394e7c7c20e0 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Sun, 19 Mar 2006 19:31:16 +0000 Subject: 2006-03-19 Thomas Schwinge * DEVELOPMENT: Document the FIPC removal. 2006-03-19 Leonardo Lopes Pereira 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. --- device/device_init.c | 6 ------ device/net_io.c | 57 ---------------------------------------------------- 2 files changed, 63 deletions(-) (limited to 'device') diff --git a/device/device_init.c b/device/device_init.c index 4eef63d..292de92 100644 --- a/device/device_init.c +++ b/device/device_init.c @@ -43,9 +43,6 @@ extern void dev_lookup_init(); extern void net_io_init(); extern void device_pager_init(); extern void chario_init(void); -#ifdef FIPC -extern void fipc_init(); -#endif extern void io_done_thread(); extern void net_thread(); @@ -64,9 +61,6 @@ device_service_create() net_io_init(); device_pager_init(); chario_init(); -#ifdef FIPC - fipc_init(); -#endif (void) kernel_thread(kernel_task, io_done_thread, 0); (void) kernel_thread(kernel_task, net_thread, 0); 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. */ -- cgit v1.2.3