From 2486c56afd5ac4392aa95f0e478978331d1c15d6 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Mon, 20 Feb 2006 20:44:33 +0000 Subject: 2006-02-20 Thomas Schwinge Remove unused and unsupported code. Consult the file `DEVELOPMENT' for details. Partly based on suggestions by Gianluca Guida . * chips/atm.c: Remove file. * chips/atmreg.h: Likewise. * chips/audio.c: Likewise. * chips/audio_config.h: Likewise. * chips/audio_defs.h: Likewise. * chips/bt431.c: Likewise. * chips/bt431.h: Likewise. * chips/bt455.c: Likewise. * chips/bt455.h: Likewise. * chips/bt459.c: Likewise. * chips/bt459.h: Likewise. * chips/bt478.c: Likewise. * chips/bt478.h: Likewise. * chips/build_font.c: Likewise. * chips/cfb_hdw.c: Likewise. * chips/cfb_misc.c: Likewise. * chips/dc503.c: Likewise. * chips/dc503.h: Likewise. * chips/dtop.h: Likewise. * chips/dtop_handlers.c: Likewise. * chips/dtop_hdw.c: Likewise. * chips/dz_7085.h: Likewise. * chips/dz_defs.h: Likewise. * chips/dz_hdw.c: Likewise. * chips/eccreg.h: Likewise. * chips/fb_hdw.c: Likewise. * chips/fb_misc.c: Likewise. * chips/fdc_82077.h: Likewise. * chips/fdc_82077_hdw.c: Likewise. * chips/frc.c: Likewise. * chips/ims332.c: Likewise. * chips/ims332.h: Likewise. * chips/isdn_79c30.h: Likewise. * chips/isdn_79c30_hdw.c: Likewise. * chips/kernel_font.c: Likewise. * chips/kernel_font.data: Likewise. * chips/lance.c: Likewise. * chips/lance.h: Likewise. * chips/lance_mapped.c: Likewise. * chips/lk201.c: Likewise. * chips/lk201.h: Likewise. * chips/mc_clock.c: Likewise. * chips/mc_clock.h: Likewise. * chips/mouse.c: Likewise. * chips/nc.c: Likewise. * chips/nc.h: Likewise. * chips/nw.h: Likewise. * chips/nw_mk.c: Likewise. * chips/nw_mk.h: Likewise. * chips/pm_defs.h: Likewise. * chips/pm_hdw.c: Likewise. * chips/pm_misc.c: Likewise. * chips/scc_8530.h: Likewise. * chips/scc_8530_hdw.c: Likewise. * chips/screen.c: Likewise. * chips/screen.h: Likewise. * chips/screen_defs.h: Likewise. * chips/screen_switch.c: Likewise. * chips/screen_switch.h: Likewise. * chips/serial_console.c: Likewise. * chips/serial_defs.h: Likewise. * chips/sfb_hdw.c: Likewise. * chips/sfb_misc.c: Likewise. * chips/spans.c: Likewise. * chips/spans.h: Likewise. * chips/tca100.c: Likewise. * chips/tca100.h: Likewise. * chips/tca100_if.c: Likewise. * chips/tca100_if.h: Likewise. * chips/vs42x_rb.h: Likewise. * chips/xcfb_hdw.c: Likewise. * chips/xcfb_misc.c: Likewise. * chips/xcfb_monitor.h: Likewise. * Makefile.in (chips-files): Only contain `busses.c' and `busses.h'. * kern/syscall_sw.c: Don't include anymore. --- chips/frc.c | 150 ------------------------------------------------------------ 1 file changed, 150 deletions(-) delete mode 100644 chips/frc.c (limited to 'chips/frc.c') diff --git a/chips/frc.c b/chips/frc.c deleted file mode 100644 index 7f033c3..0000000 --- a/chips/frc.c +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Mach Operating System - * Copyright (c) 1993,1992 Carnegie Mellon University - * All Rights Reserved. - * - * Permission to use, copy, modify and distribute this software and its - * documentation is hereby granted, provided that both the copyright - * notice and this permission notice appear in all copies of the - * software, derivative works or modified versions, and any portions - * thereof, and that both notices appear in supporting documentation. - * - * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" - * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND FOR - * ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE. - * - * Carnegie Mellon requests users of this software to return to - * - * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU - * School of Computer Science - * Carnegie Mellon University - * Pittsburgh PA 15213-3890 - * - * any improvements or extensions that they make and grant Carnegie Mellon - * the rights to redistribute these changes. - */ -/* - * File: frc.c - * Author: Alessandro Forin, Carnegie Mellon University - * Date: 3/92 - * - * Generic, mappable free running counter driver. - */ - -#include -#if NFRC > 0 - -#include -#include -#include - -/* - * Machine defines - * All you need to do to get this working on a - * random box is to define one macro and provide - * the correct virtual address. - */ -#include -#ifdef DECSTATION -#define btop(x) mips_btop(x) -#endif /* DECSTATION */ - -/* - * Autoconf info - */ - -static vm_offset_t frc_std[NFRC] = { 0 }; -static vm_size_t frc_offset[NFRC] = { 0 }; -static struct bus_device *frc_info[NFRC]; -static int frc_probe(vm_offset_t,struct bus_ctlr *); -static void frc_attach(struct bus_device *); - -struct bus_driver frc_driver = - { frc_probe, 0, frc_attach, 0, frc_std, "frc", frc_info, }; - -/* - * Externally visible functions - */ -io_return_t frc_openclose(int,int); /* user */ -vm_offset_t frc_mmap(int,vm_offset_t,vm_prot_t); -void frc_set_address(int,vm_size_t); - -/* - * FRC's in kernel virtual memory. For in-kernel timestamps. - */ -vm_offset_t frc_address[NFRC]; - -/* machine-specific setups */ -void -frc_set_address( - int unit, - vm_size_t offset) -{ - if (unit < NFRC) { - frc_offset[unit] = offset; - } -} - - -/* - * Probe chip to see if it is there - */ -static frc_probe ( - vm_offset_t reg, - struct bus_ctlr *ui) -{ - /* see if something present at the given address */ - if (check_memory(reg, 0)) { - frc_address[ui->unit] = 0; - return 0; - } - frc_std[ui->unit] = (vm_offset_t) reg; - printf("[mappable] "); - return 1; -} - -static void -frc_attach ( - struct bus_device *ui) -{ - if (ui->unit < NFRC) { - frc_address[ui->unit] = - (vm_offset_t) frc_std[ui->unit] + frc_offset[ui->unit]; - printf(": free running counter %d at kernel vaddr 0x%x", - ui->unit, frc_address[ui->unit]); - } - else - panic("frc: unknown unit number"); /* shouldn't happen */ -} - -int frc_intr() -{ - /* we do not expect interrupts */ - panic("frc_intr"); -} - -io_return_t -frc_openclose( - int dev, - int flag) -{ - if (frc_std[dev]) - return D_SUCCESS; - else - return D_NO_SUCH_DEVICE; -} - -vm_offset_t -frc_mmap( - int dev, - vm_offset_t off, - vm_prot_t prot) -{ - vm_offset_t addr; - if ((prot & VM_PROT_WRITE) || (off >= PAGE_SIZE) ) - return (-1); - addr = (vm_offset_t) frc_std[dev] + frc_offset[dev]; - return btop(pmap_extract(pmap_kernel(), addr)); -} - -#endif -- cgit v1.2.3