summaryrefslogtreecommitdiffstats
path: root/sys/pccard
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>1999-12-06 01:35:37 +0000
committerimp <imp@FreeBSD.org>1999-12-06 01:35:37 +0000
commit484903be510053a1a488f59f6a6dc4e1d930f62c (patch)
tree84957889f9960da688ac95371b5d0da0becb38fd /sys/pccard
parentec639a84fc6227c3db0865a965fe3c850fcfaa9a (diff)
downloadFreeBSD-src-484903be510053a1a488f59f6a6dc4e1d930f62c.zip
FreeBSD-src-484903be510053a1a488f59f6a6dc4e1d930f62c.tar.gz
Remove unused junk: next fields and list head. Likely not completely
needed on software reaching EOL, but I'd have caught the hang bug sooner had I done this earlier.
Diffstat (limited to 'sys/pccard')
-rw-r--r--sys/pccard/pccard.c6
-rw-r--r--sys/pccard/slot.h15
2 files changed, 1 insertions, 20 deletions
diff --git a/sys/pccard/pccard.c b/sys/pccard/pccard.c
index ec56bf5..3f5d9cb 100644
--- a/sys/pccard/pccard.c
+++ b/sys/pccard/pccard.c
@@ -112,8 +112,6 @@ static struct apmhook r_hook[MAXSLOT]; /* APM resume */
#endif /* NAPM > 0 */
static struct slot *pccard_slots[MAXSLOT]; /* slot entries */
-static struct slot *slot_list;
-static struct slot_ctrl *cont_list;
/*
* The driver interface for read/write uses a block
@@ -303,15 +301,11 @@ pccard_alloc_slot(struct slot_ctrl *ctrl)
slt->ctrl = ctrl;
slt->slotnum = slotno;
pccard_slots[slotno] = slt;
- slt->next = slot_list;
- slot_list = slt;
/*
* If this controller hasn't been seen before, then
* link it into the list of controllers.
*/
if (ctrl->slots++ == 0) {
- ctrl->next = cont_list;
- cont_list = ctrl;
if (ctrl->maxmem > NUM_MEM_WINDOWS)
ctrl->maxmem = NUM_MEM_WINDOWS;
if (ctrl->maxio > NUM_IO_WINDOWS)
diff --git a/sys/pccard/slot.h b/sys/pccard/slot.h
index 6893276..a987f83 100644
--- a/sys/pccard/slot.h
+++ b/sys/pccard/slot.h
@@ -95,7 +95,6 @@ struct pccard_devinfo {
struct slot *slt; /* Back pointer to slot */
struct resource_list resources;
- struct pccard_devinfo *next; /* List of drivers */
};
/*
@@ -106,8 +105,7 @@ struct slot {
int flags; /* Slot flags (see below) */
int rwmem; /* Read/write flags */
int irq; /* IRQ allocated (0 = none) */
- int irqref; /* Reference count of driver IRQs */
- struct pccard_devinfo *devices; /* List of drivers attached */
+
/*
* flags.
*/
@@ -124,7 +122,6 @@ struct slot {
struct slot_ctrl *ctrl; /* Per-controller data */
void *cdata; /* Controller specific data */
int pwr_off_pending;/* Power status of slot */
- struct slot *next; /* Master list */
};
enum card_event { card_removed, card_inserted };
@@ -132,14 +129,4 @@ enum card_event { card_removed, card_inserted };
struct slot *pccard_alloc_slot(struct slot_ctrl *);
void pccard_event(struct slot *, enum card_event);
-static __inline__ const char *
-pccard_get_name(device_t dev)
-{
- struct pccard_devinfo *devi = (struct pccard_devinfo *)
- device_get_ivars(dev);
- if (!devi)
- return ("anonymous");
- return (devi->name);
-}
-
#endif /* !_PCCARD_SLOT_H */
OpenPOWER on IntegriCloud