summaryrefslogtreecommitdiffstats
path: root/sys/pccard
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-09-06 23:09:20 +0000
committerphk <phk@FreeBSD.org>1996-09-06 23:09:20 +0000
commitbca885205da7f15208946f0896edc2eda3caff01 (patch)
tree35dad08bf59366e84921fd4aad9718c2f9426a1b /sys/pccard
parent9640e2d9e8f825813ec445d294de60884ad82bc8 (diff)
downloadFreeBSD-src-bca885205da7f15208946f0896edc2eda3caff01.zip
FreeBSD-src-bca885205da7f15208946f0896edc2eda3caff01.tar.gz
Remove devconf, it never grew up to be of any use.
Diffstat (limited to 'sys/pccard')
-rw-r--r--sys/pccard/pccard.c16
-rw-r--r--sys/pccard/pcic.c39
2 files changed, 0 insertions, 55 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index 9f3a7c5..7cb4dae 100644
--- a/sys/pccard/pccard.c
+++ b/sys/pccard/pccard.c
@@ -39,9 +39,7 @@
#include <sys/proc.h>
#include <sys/ioctl.h>
#include <sys/syslog.h>
-#include <sys/devconf.h>
#include <sys/malloc.h>
-#include <sys/devconf.h>
#include <sys/conf.h>
#ifdef DEVFS
#include <sys/devfsext.h>
@@ -70,18 +68,6 @@
#include <machine/laptops.h>
#include <machine/md_var.h>
-extern struct kern_devconf kdc_cpu0;
-
-struct kern_devconf kdc_pccard0 = {
- 0, 0, 0, /* filled in by dev_attach */
- "pccard", 0, { MDDT_BUS, 0 },
- 0, 0, 0, BUS_EXTERNALLEN,
- &kdc_cpu0, /* parent is the CPU */
- 0, /* no parentdata */
- DC_UNCONFIGURED, /* until we see it */
- "PCCARD or PCMCIA bus",
- DC_CLS_BUS /* class */
-};
#define PCCARD_MEMSIZE (4*1024)
@@ -149,7 +135,6 @@ static struct cdevsw crd_cdevsw =
void
pccard_configure()
{
- dev_attach(&kdc_pccard0);
#include "pcic.h"
#if NPCIC > 0
@@ -397,7 +382,6 @@ pccard_alloc_slot(struct slot_ctrl *cp)
break;
if (slotno >= MAXSLOT)
return(0);
- kdc_pccard0.kdc_state = DC_BUSY;
MALLOC(sp, struct slot *, sizeof(*sp), M_DEVBUF, M_WAITOK);
bzero(sp, sizeof(*sp));
#ifdef DEVFS
diff --git a/sys/pccard/pcic.c b/sys/pccard/pcic.c
index a5ffb12..b047c8a 100644
--- a/sys/pccard/pcic.c
+++ b/sys/pccard/pcic.c
@@ -51,7 +51,6 @@
#include <sys/sysent.h>
#include <sys/exec.h>
#include <sys/lkm.h>
-#include <sys/devconf.h>
#include <machine/clock.h>
#include <machine/laptops.h>
@@ -74,21 +73,6 @@
#include <pccard/driver.h>
#include <pccard/slot.h>
-extern struct kern_devconf kdc_pccard0;
-
-struct kern_devconf kdc_pcic[PCIC_MAX_SLOTS] = {
- {
- 0, 0, 0, /* filled in by dev_attach */
- "pcic", 0, { MDDT_BUS, 0 },
- 0, 0, 0, BUS_EXTERNALLEN,
- &kdc_pccard0, /* parent is the CPU */
- 0, /* no parentdata */
- DC_UNKNOWN,
- "PCMCIA or PCCARD slot",
- DC_CLS_BUS /* class */
- }
-};
-
/*
* Prototypes for interrupt handler.
*/
@@ -265,7 +249,6 @@ pcic_unload(struct lkm_table *lkmtp, int cmd)
for (slot = 0; slot < PCIC_MAX_SLOTS; slot++, sp++) {
if (sp->slotp)
putb(sp, PCIC_STAT_INT, 0);
- kdc_pcic[slot].kdc_state = DC_UNCONFIGURED;
}
unregister_intr(pcic_irq, pcicintr);
}
@@ -703,18 +686,9 @@ pcic_probe ()
*/
validslots++;
sp->slot = slot;
- if (kdc_pcic[slot].kdc_state == DC_UNKNOWN) {
- if (slot != 0)
- kdc_pcic[slot] = kdc_pcic[0];
- kdc_pcic[slot].kdc_unit = slot;
- kdc_pcic[slot].kdc_state = DC_UNCONFIGURED;
- kdc_pcic[slot].kdc_description = cinfo.name;
- dev_attach(kdc_pcic+slot);
- }
slotp = pccard_alloc_slot(&cinfo);
if (slotp == 0)
continue;
- kdc_pcic[slot].kdc_state = DC_IDLE;
slotp->cdata = sp;
sp->slotp = slotp;
/*
@@ -758,21 +732,12 @@ pcic_probe ()
cinfo.irqs = 0x1468;
validslots++;
sp->slot = slot;
- if (kdc_pcic[slot].kdc_state == DC_UNKNOWN) {
- if (slot != 0)
- kdc_pcic[slot] = kdc_pcic[0];
- kdc_pcic[slot].kdc_unit = slot;
- kdc_pcic[slot].kdc_state = DC_UNCONFIGURED;
- kdc_pcic[slot].kdc_description = cinfo.name;
- dev_attach(kdc_pcic+slot);
- }
slotp = pccard_alloc_slot(&cinfo);
if (slotp == 0){
printf("pcic98: slotp == NULL\n");
goto pcic98_probe_end;
}
- kdc_pcic[slot].kdc_state = DC_IDLE;
slotp->cdata = sp;
sp->slotp = slotp;
@@ -1067,12 +1032,10 @@ pcicintr(int unit)
/* Check for a card in this slot */
if (inb(PCIC98_REG1) & PCIC98_CARDEXIST){
if (sp->slotp->laststate != filled){
- kdc_pcic[slot].kdc_state = DC_BUSY;;
pccard_event(sp->slotp, card_inserted);
}
} else {
if (sp->slotp->laststate != empty){
- kdc_pcic[slot].kdc_state = DC_IDLE;;
pccard_event(sp->slotp, card_removed);
}
}
@@ -1086,13 +1049,11 @@ pcicintr(int unit)
if (chg & PCIC_CDTCH) {
if ((getb(sp, PCIC_STATUS) & PCIC_CD) ==
PCIC_CD) {
- kdc_pcic[slot].kdc_state = DC_BUSY;;
pccard_event(sp->slotp,
card_inserted);
} else {
pccard_event(sp->slotp,
card_removed);
- kdc_pcic[slot].kdc_state = DC_IDLE;;
}
}
splx(s);
OpenPOWER on IntegriCloud