diff options
author | imp <imp@FreeBSD.org> | 2001-08-27 01:18:21 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2001-08-27 01:18:21 +0000 |
commit | c7dc6a1b502fc5d89f5bd34716a83be172ace33a (patch) | |
tree | 5afa4fd5455043c79f145591be9f130107abd3d0 | |
parent | 748a830ba62a6069418a080174b09156a0df361f (diff) | |
download | FreeBSD-src-c7dc6a1b502fc5d89f5bd34716a83be172ace33a.zip FreeBSD-src-c7dc6a1b502fc5d89f5bd34716a83be172ace33a.tar.gz |
Merge notes, but not code, from my latest tree on pccard_function_init and pccard_function_free
-rw-r--r-- | sys/dev/pccard/pccard.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 85a7ff4..20c4692 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -344,6 +344,12 @@ pccard_card_gettype(device_t dev, int *type) /* * Initialize a PCCARD function. May be called as long as the function is * disabled. + * + * Note: pccard_function_init should not keep resources allocated. It should + * only set them up ala isa pnp, set the values in the rl lists, and return. + * Any resource held after pccard_function_init is called is a bug. However, + * the bus routines to get the resources also assume that pccard_function_init + * does this, so they need to be fixed too. */ static void pccard_function_init(struct pccard_function *pf) @@ -440,6 +446,9 @@ pccard_function_init(struct pccard_function *pf) /* * Free resources allocated by pccard_function_init(), May be called as long * as the function is disabled. + * + * NOTE: This function should be unnecessary. pccard_function_init should + * never keep resources initialized. */ static void pccard_function_free(struct pccard_function *pf) |