aboutsummaryrefslogtreecommitdiff
path: root/sys/pccard/slot.h
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>1999-12-06 01:35:37 +0000
committerWarner Losh <imp@FreeBSD.org>1999-12-06 01:35:37 +0000
commit4e3e1583d110c2257787eb09c1ea49cbba04072d (patch)
treeee39bf3f84554ab65574d82517e70c19c3e9c25a /sys/pccard/slot.h
parent769300a1f133b1078aef78b2a26e34d4dbc6bd0b (diff)
downloadsrc-4e3e1583d110c2257787eb09c1ea49cbba04072d.tar.gz
src-4e3e1583d110c2257787eb09c1ea49cbba04072d.zip
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.
Notes
Notes: svn path=/head/; revision=54179
Diffstat (limited to 'sys/pccard/slot.h')
-rw-r--r--sys/pccard/slot.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/pccard/slot.h b/sys/pccard/slot.h
index 6893276b56ab..a987f83accf3 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 */