summaryrefslogtreecommitdiffstats
path: root/sys/dev/pccard/pccardvar.h
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2000-01-10 06:58:17 +0000
committerimp <imp@FreeBSD.org>2000-01-10 06:58:17 +0000
commit8bbe94fd1aed82411a9c2db28aac6507d15105f5 (patch)
tree90299a87d409f6421e0402a50d2a034db09c84dc /sys/dev/pccard/pccardvar.h
parent168e054f179af73ecd3c1270fe02e8be4e22bd41 (diff)
downloadFreeBSD-src-8bbe94fd1aed82411a9c2db28aac6507d15105f5.zip
FreeBSD-src-8bbe94fd1aed82411a9c2db28aac6507d15105f5.tar.gz
Eliminate pccard_chip_* tonight.
o ifdef out pccardchip.h (almost all of it, there are dangling bits o Add rid/res members to pccard_function o remove pct/pch from pccard_softc o map memory properly in scan_cis (almost, see XXX for more work) o manage ccr. o remove bogus comment I added about touching the ccr being a layering violation for pccard. It is properly done at that level. o More function prototyping
Diffstat (limited to 'sys/dev/pccard/pccardvar.h')
-rw-r--r--sys/dev/pccard/pccardvar.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/sys/dev/pccard/pccardvar.h b/sys/dev/pccard/pccardvar.h
index b454296..3504f68 100644
--- a/sys/dev/pccard/pccardvar.h
+++ b/sys/dev/pccard/pccardvar.h
@@ -116,6 +116,8 @@ struct pccard_function {
int last_config_index;
u_long ccr_base;
u_long ccr_mask;
+ struct resource *ccr_res;
+ int ccr_rid;
STAILQ_HEAD(, pccard_config_entry) cfe_head;
STAILQ_ENTRY(pccard_function) pf_list;
/* run-time state */
@@ -167,25 +169,14 @@ struct pccard_ivar {
};
struct pccard_softc {
-
- /* this stuff is for the socket */
- pccard_chipset_tag_t pct;
- pccard_chipset_handle_t pch;
-
device_t dev;
+ /* this stuff is for the socket */
/* this stuff is for the card */
struct pccard_card card;
void *ih;
int sc_enabled_count; /* num functions enabled */
- /*
- * These are passed down from the PCCARD chip, and exist only
- * so that cards with Very Special address allocation needs
- * know what range they should be dealing with.
- */
- bus_addr_t iobase; /* start i/o space allocation here */
- bus_size_t iosize; /* size of the i/o space range */
};
void
@@ -278,7 +269,3 @@ void pccard_io_unmap(struct pccard_function *, int);
#define pccard_mem_unmap(pf, window) \
(pccard_chip_mem_unmap((pf)->sc->pct, (pf)->sc->pch, (window)))
-
-void *pccard_intr_establish(struct pccard_function *, int,
- int (*) (void *), void *);
-void pccard_intr_disestablish(struct pccard_function *, void *);
OpenPOWER on IntegriCloud