diff options
author | wollman <wollman@FreeBSD.org> | 1998-11-14 21:58:51 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1998-11-14 21:58:51 +0000 |
commit | 2f0e3424ed6bcb975173592be454fab41a7d659a (patch) | |
tree | 570ac1a59a276154fa1ecdf8529f4edc007e8800 /sys/sys/module.h | |
parent | d0ac456c883f5146f0c93ef654a57e02ffbffb87 (diff) | |
download | FreeBSD-src-2f0e3424ed6bcb975173592be454fab41a7d659a.zip FreeBSD-src-2f0e3424ed6bcb975173592be454fab41a7d659a.tar.gz |
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
Diffstat (limited to 'sys/sys/module.h')
-rw-r--r-- | sys/sys/module.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/sys/module.h b/sys/sys/module.h index 0ec8933..7bcee0e 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 |