From bca885205da7f15208946f0896edc2eda3caff01 Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 6 Sep 1996 23:09:20 +0000 Subject: Remove devconf, it never grew up to be of any use. --- sys/pci/pci.c | 79 ++--------------------------------------------------------- 1 file changed, 2 insertions(+), 77 deletions(-) (limited to 'sys/pci/pci.c') diff --git a/sys/pci/pci.c b/sys/pci/pci.c index 6bc7c9d..db97c8b 100644 --- a/sys/pci/pci.c +++ b/sys/pci/pci.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pci.c,v 1.52 1996/09/02 21:23:04 se Exp $ +** $Id: pci.c,v 1.53 1996/09/05 21:28:51 se Exp $ ** ** General subroutines for the PCI bus. ** pci_configure () @@ -53,13 +53,11 @@ #include #include #include /* declaration of wakeup(), used by vm.h */ -#include #include #include #include -#include #include /* XXX inthand2_t */ @@ -77,21 +75,7 @@ **======================================================== */ -extern struct kern_devconf kdc_cpu0; - -struct kern_devconf kdc_pci0 = { - 0, 0, 0, /* filled in by dev_attach */ - "pci", 0, { MDDT_BUS, 0 }, - 0, 0, 0, BUS_EXTERNALLEN, - &kdc_cpu0, /* parent is the CPU */ - 0, /* no parentdata */ - DC_BUSY, /* busses are always busy */ - "PCI bus", - DC_CLS_BUS /* class */ -}; - struct pci_devconf { - struct kern_devconf pdc_kdc; struct pci_info pdc_pi; }; @@ -123,10 +107,6 @@ struct pcicb { u_long pcicb_p_memlimit; }; -static int pci_externalize (struct kern_devconf *, struct sysctl_req *); - -static int pci_internalize (struct kern_devconf *, struct sysctl_req *); - static void not_supported (pcici_t tag, u_long type); @@ -677,27 +657,7 @@ pci_bus_config (void) pdcp -> pdc_pi.pi_bus = bus_no; pdcp -> pdc_pi.pi_device = device; pdcp -> pdc_pi.pi_func = func; - - pdcp -> pdc_kdc.kdc_name = dvp->pd_name; - pdcp -> pdc_kdc.kdc_unit = unit; - - pdcp -> pdc_kdc.kdc_md.mddc_devtype = MDDT_PCI; - - pdcp -> pdc_kdc.kdc_externalize = pci_externalize; - pdcp -> pdc_kdc.kdc_internalize = pci_internalize; - - pdcp -> pdc_kdc.kdc_datalen = PCI_EXTERNAL_LEN; - pdcp -> pdc_kdc.kdc_parent = &kdc_pci0; - pdcp -> pdc_kdc.kdc_parentdata = &pdcp->pdc_pi; - pdcp -> pdc_kdc.kdc_state = DC_UNKNOWN; - pdcp -> pdc_kdc.kdc_description = name; - pdcp -> pdc_kdc.kdc_shutdown = dvp->pd_shutdown; - - /* - ** And register this device - */ - - dev_attach (&pdcp->pdc_kdc); + pdcp -> pdc_pi.pi_unit = unit; /* ** attach device @@ -937,8 +897,6 @@ void pci_configure() ** hello world .. */ - dev_attach(&kdc_pci0); - pciroots = 1; while (pciroots--) { @@ -1196,39 +1154,6 @@ int pci_map_mem (pcici_t tag, u_long reg, vm_offset_t* va, vm_offset_t* pa) return (1); } -/*------------------------------------------------------------ -** -** Interface functions for the devconf module. -** -**------------------------------------------------------------ -*/ - -static int -pci_externalize (struct kern_devconf *kdcp, struct sysctl_req *req) -{ - struct pci_externalize_buffer buffer; - struct pci_info * pip = kdcp->kdc_parentdata; - pcici_t tag; - int i; - - tag = pcibus->pb_tag (pip->pi_bus, pip->pi_device, pip->pi_func); - - buffer.peb_pci_info = *pip; - - for (i=0; i