xref: /linux/drivers/char/mwave/README (revision 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2)
1*1da177e4SLinus TorvaldsModule options
2*1da177e4SLinus Torvalds--------------
3*1da177e4SLinus Torvalds
4*1da177e4SLinus TorvaldsThe mwave module takes the following options.  Note that these options
5*1da177e4SLinus Torvaldsare not saved by the BIOS and so do not persist after unload and reload.
6*1da177e4SLinus Torvalds
7*1da177e4SLinus Torvalds  mwave_debug=value, where value is bitwise OR of trace flags:
8*1da177e4SLinus Torvalds	0x0001 mwavedd api tracing
9*1da177e4SLinus Torvalds	0x0002 smapi api tracing
10*1da177e4SLinus Torvalds	0x0004 3780i tracing
11*1da177e4SLinus Torvalds	0x0008 tp3780i tracing
12*1da177e4SLinus Torvalds
13*1da177e4SLinus Torvalds        Tracing only occurs if the driver has been compiled with the
14*1da177e4SLinus Torvalds        MW_TRACE macro #defined  (i.e. let EXTRA_CFLAGS += -DMW_TRACE
15*1da177e4SLinus Torvalds        in the Makefile).
16*1da177e4SLinus Torvalds
17*1da177e4SLinus Torvalds  mwave_3780i_irq=5/7/10/11/15
18*1da177e4SLinus Torvalds	If the dsp irq has not been setup and stored in bios by the
19*1da177e4SLinus Torvalds	thinkpad configuration utility then this parameter allows the
20*1da177e4SLinus Torvalds	irq used by the dsp to be configured.
21*1da177e4SLinus Torvalds
22*1da177e4SLinus Torvalds  mwave_3780i_io=0x130/0x350/0x0070/0xDB0
23*1da177e4SLinus Torvalds	If the dsp io range has not been setup and stored in bios by the
24*1da177e4SLinus Torvalds	thinkpad configuration utility then this parameter allows the
25*1da177e4SLinus Torvalds	io range used by the dsp to be configured.
26*1da177e4SLinus Torvalds
27*1da177e4SLinus Torvalds  mwave_uart_irq=3/4
28*1da177e4SLinus Torvalds	If the mwave's uart irq has not been setup and stored in bios by the
29*1da177e4SLinus Torvalds	thinkpad configuration utility then this parameter allows the
30*1da177e4SLinus Torvalds	irq used by the mwave uart to be configured.
31*1da177e4SLinus Torvalds
32*1da177e4SLinus Torvalds  mwave_uart_io=0x3f8/0x2f8/0x3E8/0x2E8
33*1da177e4SLinus Torvalds	If the uart io range has not been setup and stored in bios by the
34*1da177e4SLinus Torvalds	thinkpad configuration utility then this parameter allows the
35*1da177e4SLinus Torvalds	io range used by the mwave uart to be configured.
36*1da177e4SLinus Torvalds
37*1da177e4SLinus TorvaldsExample to enable the 3780i DSP using ttyS1 resources:
38*1da177e4SLinus Torvalds
39*1da177e4SLinus Torvalds  insmod mwave mwave_3780i_irq=10 mwave_3780i_io=0x0130 mwave_uart_irq=3 mwave_uart_io=0x2f8
40*1da177e4SLinus Torvalds
41*1da177e4SLinus TorvaldsAccessing the driver
42*1da177e4SLinus Torvalds--------------------
43*1da177e4SLinus Torvalds
44*1da177e4SLinus TorvaldsYou must also create a node for the driver.  Without devfs:
45*1da177e4SLinus Torvalds  mkdir -p /dev/modems
46*1da177e4SLinus Torvalds  mknod --mode=660 /dev/modems/mwave c 10 219
47*1da177e4SLinus TorvaldsWith devfs:
48*1da177e4SLinus Torvalds  mkdir -p /dev/modems
49*1da177e4SLinus Torvalds  ln -s ../misc/mwave /dev/modems/mwave
50*1da177e4SLinus Torvalds
51