diff options
author | imp <imp@FreeBSD.org> | 1999-12-06 01:35:37 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 1999-12-06 01:35:37 +0000 |
commit | 484903be510053a1a488f59f6a6dc4e1d930f62c (patch) | |
tree | 84957889f9960da688ac95371b5d0da0becb38fd /sys/pccard/slot.h | |
parent | ec639a84fc6227c3db0865a965fe3c850fcfaa9a (diff) | |
download | FreeBSD-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/slot.h')
-rw-r--r-- | sys/pccard/slot.h | 15 |
1 files changed, 1 insertions, 14 deletions
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 */ |