blob: f81be8abbdeae248e0833b0c3c039d2123984284 [file] [log] [blame]
lh9ed821d2023-04-07 01:36:19 -07001#include <sys/types.h>
2#include <sys/param.h>
3#include <sys/conf.h>
4#include <sys/modctl.h>
5#include <sys/sunddi.h>
6
7extern struct streamtab ppp_ahdlcinfo;
8
9static struct fmodsw fsw = {
10 "ppp_ahdl",
11 &ppp_ahdlcinfo,
12 D_NEW | D_MP | D_MTQPAIR
13};
14
15extern struct mod_ops mod_strmodops;
16
17static struct modlstrmod modlstrmod = {
18 &mod_strmodops,
19 "PPP async HDLC module",
20 &fsw
21};
22
23static struct modlinkage modlinkage = {
24 MODREV_1,
25 (void *) &modlstrmod,
26 NULL
27};
28
29/*
30 * Entry points for modloading.
31 */
32int
33_init(void)
34{
35 return mod_install(&modlinkage);
36}
37
38int
39_fini(void)
40{
41 return mod_remove(&modlinkage);
42}
43
44int
45_info(mip)
46 struct modinfo *mip;
47{
48 return mod_info(&modlinkage, mip);
49}