xref: /kernel/linux/linux-6.6/drivers/char/mwave/README (revision 62306a36)
162306a36Sopenharmony_ciModule options
262306a36Sopenharmony_ci--------------
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciThe mwave module takes the following options.  Note that these options
562306a36Sopenharmony_ciare not saved by the BIOS and so do not persist after unload and reload.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci  mwave_debug=value, where value is bitwise OR of trace flags:
862306a36Sopenharmony_ci	0x0001 mwavedd api tracing
962306a36Sopenharmony_ci	0x0002 smapi api tracing
1062306a36Sopenharmony_ci	0x0004 3780i tracing
1162306a36Sopenharmony_ci	0x0008 tp3780i tracing
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci        Tracing only occurs if the driver has been compiled with the
1462306a36Sopenharmony_ci        MW_TRACE macro #defined  (i.e. let ccflags-y := -DMW_TRACE
1562306a36Sopenharmony_ci        in the Makefile).
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci  mwave_3780i_irq=5/7/10/11/15
1862306a36Sopenharmony_ci	If the dsp irq has not been setup and stored in bios by the 
1962306a36Sopenharmony_ci	thinkpad configuration utility then this parameter allows the
2062306a36Sopenharmony_ci	irq used by the dsp to be configured.
2162306a36Sopenharmony_ci
2262306a36Sopenharmony_ci  mwave_3780i_io=0x130/0x350/0x0070/0xDB0
2362306a36Sopenharmony_ci	If the dsp io range has not been setup and stored in bios by the 
2462306a36Sopenharmony_ci	thinkpad configuration utility then this parameter allows the
2562306a36Sopenharmony_ci	io range used by the dsp to be configured.
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci  mwave_uart_irq=3/4
2862306a36Sopenharmony_ci	If the mwave's uart irq has not been setup and stored in bios by the 
2962306a36Sopenharmony_ci	thinkpad configuration utility then this parameter allows the
3062306a36Sopenharmony_ci	irq used by the mwave uart to be configured.
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci  mwave_uart_io=0x3f8/0x2f8/0x3E8/0x2E8
3362306a36Sopenharmony_ci	If the uart io range has not been setup and stored in bios by the 
3462306a36Sopenharmony_ci	thinkpad configuration utility then this parameter allows the
3562306a36Sopenharmony_ci	io range used by the mwave uart to be configured.
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ciExample to enable the 3780i DSP using ttyS1 resources:
3862306a36Sopenharmony_ci	
3962306a36Sopenharmony_ci  insmod mwave mwave_3780i_irq=10 mwave_3780i_io=0x0130 mwave_uart_irq=3 mwave_uart_io=0x2f8
4062306a36Sopenharmony_ci
4162306a36Sopenharmony_ciAccessing the driver
4262306a36Sopenharmony_ci--------------------
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ciYou must also create a node for the driver:
4562306a36Sopenharmony_ci  mkdir -p /dev/modems
4662306a36Sopenharmony_ci  mknod --mode=660 /dev/modems/mwave c 10 219
4762306a36Sopenharmony_ci
48