aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/module.h
diff options
context:
space:
mode:
authorGarrett Wollman <wollman@FreeBSD.org>1998-11-14 21:58:51 +0000
committerGarrett Wollman <wollman@FreeBSD.org>1998-11-14 21:58:51 +0000
commit14177d72cd15185c1aac906395e6ced8ff6ffa21 (patch)
tree19b3d76afd87073733e88087de6a6ba809b99456 /sys/sys/module.h
parenta55946faaf173abb352e5390855017e0b1ac741c (diff)
downloadsrc-14177d72cd15185c1aac906395e6ced8ff6ffa21.tar.gz
src-14177d72cd15185c1aac906395e6ced8ff6ffa21.zip
My changes to the new device interface:
- Interface wth the new resource manager. - Allow for multiple drivers implementing a single devclass. - Remove ordering dependencies between header files. - Style cleanup. - Add DEVICE_SUSPEND and DEVICE_RESUME methods. - Move to a single-phase interrupt setup scheme. Kernel builds on the Alpha are brken until Doug gets a chance to incorporate these changes on that side. Agreed to in principle by: dfr
Notes
Notes: svn path=/head/; revision=41153
Diffstat (limited to 'sys/sys/module.h')
-rw-r--r--sys/sys/module.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/sys/module.h b/sys/sys/module.h
index 0ec89336a3c3..7bcee0ef1636 100644
--- a/sys/sys/module.h
+++ b/sys/sys/module.h
@@ -23,31 +23,31 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: module.h,v 1.3 1998/06/10 10:57:29 dfr Exp $
+ * $Id: module.h,v 1.4 1998/10/09 23:05:45 peter Exp $
*/
#ifndef _SYS_MODULE_H_
#define _SYS_MODULE_H_
-typedef enum {
+typedef enum modeventtype {
MOD_LOAD,
MOD_UNLOAD,
MOD_SHUTDOWN
} modeventtype_t;
-struct module;
-typedef struct module *module_t;
+typedef struct module *module_t;
-typedef int (*modeventhand_t)(module_t mod, modeventtype_t what, void *arg);
+typedef int (*modeventhand_t)(module_t mod, int /*modeventtype_t*/ what,
+ void *arg);
/*
* Struct for registering modules statically via SYSINIT.
*/
typedef struct moduledata {
- char* name; /* module name */
- modeventhand_t evhand; /* event handler */
- void* priv; /* extra data */
- void* _file; /* private; used by linker */
+ char *name; /* module name */
+ modeventhand_t evhand; /* event handler */
+ void *priv; /* extra data */
+ void *_file; /* private; used by linker */
} moduledata_t;
#ifdef KERNEL