summaryrefslogtreecommitdiffstats
path: root/sys/pccard/slot.h
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-21 12:55:26 +0000
committerbde <bde@FreeBSD.org>1995-11-21 12:55:26 +0000
commit24ce87cc75daff742416402eb15baa8a2445fb87 (patch)
treecccb12ba068b651660e03742d946e8b53d952db7 /sys/pccard/slot.h
parent14d44cd2d7bf837c55a5c3bf55ab4eadbc48aad8 (diff)
downloadFreeBSD-src-24ce87cc75daff742416402eb15baa8a2445fb87.zip
FreeBSD-src-24ce87cc75daff742416402eb15baa8a2445fb87.tar.gz
Completed function declarations and/or added prototypes.
Diffstat (limited to 'sys/pccard/slot.h')
-rw-r--r--sys/pccard/slot.h24
1 files changed, 15 insertions, 9 deletions
diff --git a/sys/pccard/slot.h b/sys/pccard/slot.h
index 51c7cb9..a6d7618 100644
--- a/sys/pccard/slot.h
+++ b/sys/pccard/slot.h
@@ -36,14 +36,22 @@
/*
* Controller data - Specific to each slot controller.
*/
+struct slot;
struct slot_ctrl {
- int (*mapmem)(); /* Map memory */
- int (*mapio)(); /* Map io */
- void (*reset)(); /* init */
- void (*disable)(); /* Disable slot */
- int (*power)(); /* Set power values */
- int (*ioctl)(); /* ioctl to lower level */
- void (*mapirq)(); /* Map interrupt number */
+ int (*mapmem) __P((struct slot *, int));
+ /* Map memory */
+ int (*mapio) __P((struct slot *, int));
+ /* Map io */
+ void (*reset) __P((void *));
+ /* init */
+ void (*disable) __P((struct slot *));
+ /* Disable slot */
+ int (*power) __P((struct slot *));
+ /* Set power values */
+ int (*ioctl) __P((struct slot *, int, caddr_t));
+ /* ioctl to lower level */
+ void (*mapirq) __P((struct slot *, int));
+ /* Map interrupt number */
int extra; /* Controller specific size */
int maxmem; /* Number of allowed memory windows */
int maxio; /* Number of allowed I/O windows */
@@ -124,5 +132,3 @@ enum card_event { card_removed, card_inserted };
struct slot *pccard_alloc_slot(struct slot_ctrl *);
void pccard_event(struct slot *, enum card_event);
void pccard_remove_controller(struct slot_ctrl *);
-int pccard_alloc_intr();
-void pccard_add_driver(struct pccard_drv *);
OpenPOWER on IntegriCloud