WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Remove dead code from Xen.

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] Remove dead code from Xen.
From: BitKeeper Bot <riel@xxxxxxxxxxx>
Date: Wed, 04 May 2005 08:46:22 +0000
Delivery-date: Wed, 04 May 2005 09:04:32 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: Xen Development List <xen-devel@xxxxxxxxxxxxxxxxxxx>
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
ChangeSet 1.1428, 2005/05/04 09:46:22+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Remove dead code from Xen.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 b/xen/arch/ia64/xenmisc.c     |   67 
 b/xen/arch/x86/Makefile       |    2 
 b/xen/drivers/Makefile        |    2 
 b/xen/drivers/acpi/Makefile   |   55 
 xen/arch/x86/pci-irq.c        | 1084 ------
 xen/arch/x86/pci-pc.c         | 1557 --------
 xen/arch/x86/pci-x86.c        |  402 --
 xen/arch/x86/pci-x86.h        |   71 
 xen/drivers/acpi/acpi_ksyms.c |  157 
 xen/drivers/pci/Makefile      |   45 
 xen/drivers/pci/gen-devlist.c |  130 
 xen/drivers/pci/names.c       |  135 
 xen/drivers/pci/pci.c         | 1773 ---------
 xen/drivers/pci/pci.ids       | 7514 ------------------------------------------
 xen/drivers/pci/quirks.c      |  835 ----
 xen/drivers/pci/setup-res.c   |  241 -
 xen/include/acpi/acdebug.h    |  469 --
 xen/include/acpi/acdisasm.h   |  402 --
 xen/include/acpi/acdispat.h   |  513 --
 xen/include/acpi/acevents.h   |  274 -
 xen/include/acpi/acinterp.h   |  738 ----
 xen/include/acpi/acnamesp.h   |  513 --
 xen/include/acpi/acparser.h   |  347 -
 xen/include/acpi/acresrc.h    |  391 --
 xen/include/acpi/actables.h   |  233 -
 xen/include/acpi/actbl71.h    |  144 
 xen/include/acpi/amlcode.h    |  506 --
 xen/include/acpi/amlresrc.h   |  329 -
 28 files changed, 1 insertion(+), 18928 deletions(-)


diff -Nru a/xen/arch/ia64/xenmisc.c b/xen/arch/ia64/xenmisc.c
--- a/xen/arch/ia64/xenmisc.c   2005-05-04 05:04:56 -04:00
+++ b/xen/arch/ia64/xenmisc.c   2005-05-04 05:04:56 -04:00
@@ -133,73 +133,6 @@
 }
 
 ///////////////////////////////
-// from arch/x86/pci.c
-///////////////////////////////
-
-int
-pcibios_prep_mwi (struct pci_dev *dev)
-{
-       dummy();
-}
-
-///////////////////////////////
-// from arch/x86/pci-irq.c
-///////////////////////////////
-
-void pcibios_enable_irq(struct pci_dev *dev)
-{
-       dummy();
-}
-
-///////////////////////////////
-// from arch/ia64/pci-pc.c
-///////////////////////////////
-
-#include <xen/pci.h>
-
-int pcibios_enable_device(struct pci_dev *dev, int mask)
-{
-       dummy();
-       return 0;
-}
-
-int (*pci_config_read)(int seg, int bus, int dev, int fn, int reg, int len, 
u32 *value) = NULL;
-int (*pci_config_write)(int seg, int bus, int dev, int fn, int reg, int len, 
u32 value) = NULL;
-
-//struct pci_fixup pcibios_fixups[] = { { 0 } };
-struct pci_fixup pcibios_fixups[] = { { 0 } };
-
-void
-pcibios_align_resource(void *data, struct resource *res,
-                      unsigned long size, unsigned long align)
-{
-       dummy();
-}
-
-void
-pcibios_update_resource(struct pci_dev *dev, struct resource *root,
-                       struct resource *res, int resource)
-{
-       dummy();
-}
-
-void __devinit  pcibios_fixup_bus(struct pci_bus *b)
-{
-       dummy();
-}
-
-void __init pcibios_init(void)
-{
-       dummy();
-}
-
-char * __devinit  pcibios_setup(char *str)
-{
-       dummy();
-       return 0;
-}
-
-///////////////////////////////
 // from arch/ia64/traps.c
 ///////////////////////////////
 
diff -Nru a/xen/arch/x86/Makefile b/xen/arch/x86/Makefile
--- a/xen/arch/x86/Makefile     2005-05-04 05:04:56 -04:00
+++ b/xen/arch/x86/Makefile     2005-05-04 05:04:56 -04:00
@@ -11,8 +11,6 @@
 OBJS := $(patsubst cdb%.o,,$(OBJS))
 endif
 
-OBJS := $(filter-out pci%,$(OBJS))
-
 default: $(TARGET)
 
 $(TARGET): $(TARGET)-syms boot/mkelf32
diff -Nru a/xen/arch/x86/pci-irq.c b/xen/arch/x86/pci-irq.c
--- a/xen/arch/x86/pci-irq.c    2005-05-04 05:04:57 -04:00
+++ /dev/null   Wed Dec 31 16:00:00 196900
@@ -1,1084 +0,0 @@
-/*
- *     Low-Level PCI Support for PC -- Routing of Interrupts
- *
- *     (c) 1999--2000 Martin Mares <mj@xxxxxx>
- */
-
-#include <xen/config.h>
-#include <xen/types.h>
-#include <xen/kernel.h>
-#include <xen/pci.h>
-#include <xen/init.h>
-#include <xen/slab.h>
-#include <xen/irq.h>
-#include <asm/io.h>
-#include <asm/smp.h>
-#include <asm/io_apic.h>
-#include "pci-x86.h"
-
-#define PIRQ_SIGNATURE (('$' << 0) + ('P' << 8) + ('I' << 16) + ('R' << 24))
-#define PIRQ_VERSION 0x0100
-
-int broken_hp_bios_irq9;
-
-static struct irq_routing_table *pirq_table;
-
-/*
- * Never use: 0, 1, 2 (timer, keyboard, and cascade)
- * Avoid using: 13, 14 and 15 (FP error and IDE).
- * Penalize: 3, 4, 6, 7, 12 (known ISA uses: serial, floppy, parallel and 
mouse)
- */
-unsigned int pcibios_irq_mask = 0xfff8;
-
-static int pirq_penalty[16] = {
-       1000000, 1000000, 1000000, 1000, 1000, 0, 1000, 1000,
-       0, 0, 0, 0, 1000, 100000, 100000, 100000
-};
-
-struct irq_router {
-       char *name;
-       u16 vendor, device;
-       int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq);
-       int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq, int 
new);
-};
-
-struct irq_router_handler {
-       u16 vendor;
-       int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device);
-};
-
-/*
- *  Search 0xf0000 -- 0xfffff for the PCI IRQ Routing Table.
- */
-
-static struct irq_routing_table * __init pirq_find_routing_table(void)
-{
-       u8 *addr;
-       struct irq_routing_table *rt;
-       int i;
-       u8 sum;
-
-       for(addr = (u8 *) __va(0xf0000); addr < (u8 *) __va(0x100000); addr += 
16) {
-               rt = (struct irq_routing_table *) addr;
-               if (rt->signature != PIRQ_SIGNATURE ||
-                   rt->version != PIRQ_VERSION ||
-                   rt->size % 16 ||
-                   rt->size < sizeof(struct irq_routing_table))
-                       continue;
-               sum = 0;
-               for(i=0; i<rt->size; i++)
-                       sum += addr[i];
-               if (!sum) {
-                       DBG("PCI: Interrupt Routing Table found at 0x%p\n", rt);
-                       return rt;
-               }
-       }
-       return NULL;
-}
-
-/*
- *  If we have a IRQ routing table, use it to search for peer host
- *  bridges.  It's a gross hack, but since there are no other known
- *  ways how to get a list of buses, we have to go this way.
- */
-
-static void __init pirq_peer_trick(void)
-{
-       struct irq_routing_table *rt = pirq_table;
-       u8 busmap[256];
-       int i;
-       struct irq_info *e;
-
-       memset(busmap, 0, sizeof(busmap));
-       for(i=0; i < (rt->size - sizeof(struct irq_routing_table)) / 
sizeof(struct irq_info); i++) {
-               e = &rt->slots[i];
-#ifdef DEBUG
-               {
-                       int j;
-                       DBG("%02x:%02x slot=%02x", e->bus, e->devfn/8, e->slot);
-                       for(j=0; j<4; j++)
-                               DBG(" %d:%02x/%04x", j, e->irq[j].link, 
e->irq[j].bitmap);
-                       DBG("\n");
-               }
-#endif
-               busmap[e->bus] = 1;
-       }
-       for(i=1; i<256; i++)
-               /*
-                *  It might be a secondary bus, but in this case its parent is 
already
-                *  known (ascending bus order) and therefore pci_scan_bus 
returns immediately.
-                */
-               if (busmap[i] && pci_scan_bus(i, pci_root_bus->ops, NULL))
-                       printk(KERN_INFO "PCI: Discovered primary peer bus %02x 
[IRQ]\n", i);
-       pcibios_last_bus = -1;
-}
-
-/*
- *  Code for querying and setting of IRQ routes on various interrupt routers.
- */
-
-void eisa_set_level_irq(unsigned int irq)
-{
-       unsigned char mask = 1 << (irq & 7);
-       unsigned int port = 0x4d0 + (irq >> 3);
-       unsigned char val = inb(port);
-
-       if (!(val & mask)) {
-               DBG(" -> edge");
-               outb(val | mask, port);
-       }
-}
-
-/*
- * Common IRQ routing practice: nybbles in config space,
- * offset by some magic constant.
- */
-static unsigned int read_config_nybble(struct pci_dev *router, unsigned 
offset, unsigned nr)
-{
-       u8 x;
-       unsigned reg = offset + (nr >> 1);
-
-       pci_read_config_byte(router, reg, &x);
-       return (nr & 1) ? (x >> 4) : (x & 0xf);
-}
-
-static void write_config_nybble(struct pci_dev *router, unsigned offset, 
unsigned nr, unsigned int val)
-{
-       u8 x;
-       unsigned reg = offset + (nr >> 1);
-
-       pci_read_config_byte(router, reg, &x);
-       x = (nr & 1) ? ((x & 0x0f) | (val << 4)) : ((x & 0xf0) | val);
-       pci_write_config_byte(router, reg, x);
-}
-
-/*
- * ALI pirq entries are damn ugly, and completely undocumented.
- * This has been figured out from pirq tables, and it's not a pretty

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Remove dead code from Xen., BitKeeper Bot <=