diff options
author | phk <phk@FreeBSD.org> | 2003-02-08 12:30:12 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-02-08 12:30:12 +0000 |
commit | 15f4f6a52b122bc25685c03d547db8506a57b97a (patch) | |
tree | d34334359b265964548809092a17a4a0aecd11f7 /sys/geom/geom_int.h | |
parent | 88f80d9925505d844e8a8a35a32f4b4742ca91e9 (diff) | |
download | FreeBSD-src-15f4f6a52b122bc25685c03d547db8506a57b97a.zip FreeBSD-src-15f4f6a52b122bc25685c03d547db8506a57b97a.tar.gz |
Move #defines of major/minor to internal header file so other bits can
share and coordinate with geom_dev.
Diffstat (limited to 'sys/geom/geom_int.h')
-rw-r--r-- | sys/geom/geom_int.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/geom/geom_int.h b/sys/geom/geom_int.h index 5962c86..3b33501 100644 --- a/sys/geom/geom_int.h +++ b/sys/geom/geom_int.h @@ -70,13 +70,20 @@ struct g_event { g_call_me_t *func; }; +/* + * We actually have a number of drivers sharing the same major number + * so we coordinate the major/minor usage here + */ +#define GEOM_MAJOR 4 +#define GEOM_MINOR_STATS 0 +#define GEOM_MINOR_PROVIDERS 10 + /* geom_dump.c */ void g_confxml(void *); void g_conf_specific(struct sbuf *sb, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp); void g_confdot(void *); void g_conftxt(void *); - /* geom_event.c */ void g_event_init(void); void g_post_event(enum g_events ev, struct g_class *mp, struct g_geom *gp, struct g_provider *pp, struct g_consumer *cp); |