Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
serial-u16550.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/ioport.h>
#include <linux/module.h>
#include <sound/core.h>
#include <sound/rawmidi.h>
#include <sound/initval.h>
#include <linux/serial_reg.h>
#include <linux/jiffies.h>
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  snd_uart16550
 

Macros

#define SNDRV_SERIAL_SOUNDCANVAS   0 /* Roland Soundcanvas; F5 NN selects part */
 
#define SNDRV_SERIAL_MS124T   1 /* Midiator MS-124T */
 
#define SNDRV_SERIAL_MS124W_SA   2 /* Midiator MS-124W in S/A mode */
 
#define SNDRV_SERIAL_MS124W_MB   3 /* Midiator MS-124W in M/B mode */
 
#define SNDRV_SERIAL_GENERIC   4 /* Generic Interface */
 
#define SNDRV_SERIAL_MAX_ADAPTOR   SNDRV_SERIAL_GENERIC
 
#define SNDRV_SERIAL_NORMALBUFF   0 /* Normal blocking buffer operation */
 
#define SNDRV_SERIAL_DROPBUFF   1 /* Non-blocking discard operation */
 
#define SNDRV_SERIAL_MAX_OUTS   16 /* max 64, min 16 */
 
#define SNDRV_SERIAL_MAX_INS   16 /* max 64, min 16 */
 
#define TX_BUFF_SIZE   (1<<15) /* Must be 2^n */
 
#define TX_BUFF_MASK   (TX_BUFF_SIZE - 1)
 
#define SERIAL_MODE_NOT_OPENED   (0)
 
#define SERIAL_MODE_INPUT_OPEN   (1 << 0)
 
#define SERIAL_MODE_OUTPUT_OPEN   (1 << 1)
 
#define SERIAL_MODE_INPUT_TRIGGERED   (1 << 2)
 
#define SERIAL_MODE_OUTPUT_TRIGGERED   (1 << 3)
 
#define SND_SERIAL_DRIVER   "snd_serial_u16550"
 

Functions

 MODULE_DESCRIPTION ("MIDI serial u16550")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{ALSA, MIDI serial u16550}}")
 
 module_param_array (index, int, NULL, 0444)
 
 MODULE_PARM_DESC (index,"Index value for Serial MIDI.")
 
 module_param_array (id, charp, NULL, 0444)
 
 MODULE_PARM_DESC (id,"ID string for Serial MIDI.")
 
 module_param_array (enable, bool, NULL, 0444)
 
 MODULE_PARM_DESC (enable,"Enable UART16550A chip.")
 
 module_param_array (port, long, NULL, 0444)
 
 MODULE_PARM_DESC (port,"Port # for UART16550A chip.")
 
 module_param_array (irq, int, NULL, 0444)
 
 MODULE_PARM_DESC (irq,"IRQ # for UART16550A chip.")
 
 module_param_array (speed, int, NULL, 0444)
 
 MODULE_PARM_DESC (speed,"Speed in bauds.")
 
 module_param_array (base, int, NULL, 0444)
 
 MODULE_PARM_DESC (base,"Base for divisor in bauds.")
 
 module_param_array (outs, int, NULL, 0444)
 
 MODULE_PARM_DESC (outs,"Number of MIDI outputs.")
 
 module_param_array (ins, int, NULL, 0444)
 
 MODULE_PARM_DESC (ins,"Number of MIDI inputs.")
 
 module_param_array (droponfull, bool, NULL, 0444)
 
 MODULE_PARM_DESC (droponfull,"Flag to enable drop-on-full buffer mode")
 
 module_param_array (adaptor, int, NULL, 0444)
 
 MODULE_PARM_DESC (adaptor,"Type of adaptor.")
 

Macro Definition Documentation

#define SERIAL_MODE_INPUT_OPEN   (1 << 0)

Definition at line 115 of file serial-u16550.c.

#define SERIAL_MODE_INPUT_TRIGGERED   (1 << 2)

Definition at line 117 of file serial-u16550.c.

#define SERIAL_MODE_NOT_OPENED   (0)

Definition at line 114 of file serial-u16550.c.

#define SERIAL_MODE_OUTPUT_OPEN   (1 << 1)

Definition at line 116 of file serial-u16550.c.

#define SERIAL_MODE_OUTPUT_TRIGGERED   (1 << 3)

Definition at line 118 of file serial-u16550.c.

#define SND_SERIAL_DRIVER   "snd_serial_u16550"

Definition at line 992 of file serial-u16550.c.

#define SNDRV_SERIAL_DROPBUFF   1 /* Non-blocking discard operation */

Definition at line 68 of file serial-u16550.c.

#define SNDRV_SERIAL_GENERIC   4 /* Generic Interface */

Definition at line 57 of file serial-u16550.c.

#define SNDRV_SERIAL_MAX_ADAPTOR   SNDRV_SERIAL_GENERIC

Definition at line 58 of file serial-u16550.c.

#define SNDRV_SERIAL_MAX_INS   16 /* max 64, min 16 */

Definition at line 109 of file serial-u16550.c.

#define SNDRV_SERIAL_MAX_OUTS   16 /* max 64, min 16 */

Definition at line 108 of file serial-u16550.c.

#define SNDRV_SERIAL_MS124T   1 /* Midiator MS-124T */

Definition at line 54 of file serial-u16550.c.

#define SNDRV_SERIAL_MS124W_MB   3 /* Midiator MS-124W in M/B mode */

Definition at line 56 of file serial-u16550.c.

#define SNDRV_SERIAL_MS124W_SA   2 /* Midiator MS-124W in S/A mode */

Definition at line 55 of file serial-u16550.c.

#define SNDRV_SERIAL_NORMALBUFF   0 /* Normal blocking buffer operation */

Definition at line 67 of file serial-u16550.c.

#define SNDRV_SERIAL_SOUNDCANVAS   0 /* Roland Soundcanvas; F5 NN selects part */

Definition at line 53 of file serial-u16550.c.

#define TX_BUFF_MASK   (TX_BUFF_SIZE - 1)

Definition at line 112 of file serial-u16550.c.

#define TX_BUFF_SIZE   (1<<15) /* Must be 2^n */

Definition at line 111 of file serial-u16550.c.

Function Documentation

MODULE_DESCRIPTION ( "MIDI serial u16550"  )
MODULE_LICENSE ( "GPL"  )
module_param_array ( index  ,
int  ,
NULL  ,
0444   
)
module_param_array ( id  ,
charp  ,
NULL  ,
0444   
)
module_param_array ( enable  ,
bool  ,
NULL  ,
0444   
)
module_param_array ( port  ,
long  ,
NULL  ,
0444   
)
module_param_array ( irq  ,
int  ,
NULL  ,
0444   
)
module_param_array ( speed  ,
int  ,
NULL  ,
0444   
)
module_param_array ( base  ,
int  ,
NULL  ,
0444   
)
module_param_array ( outs  ,
int  ,
NULL  ,
0444   
)
module_param_array ( ins  ,
int  ,
NULL  ,
0444   
)
module_param_array ( droponfull  ,
bool  ,
NULL  ,
0444   
)
module_param_array ( adaptor  ,
int  ,
NULL  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for Serial MIDI."   
)
MODULE_PARM_DESC ( id  ,
"ID string for Serial MIDI."   
)
MODULE_PARM_DESC ( enable  ,
"Enable UART16550A chip."   
)
MODULE_PARM_DESC ( port  ,
"Port # for UART16550A chip."   
)
MODULE_PARM_DESC ( irq  ,
"IRQ # for UART16550A chip."   
)
MODULE_PARM_DESC ( speed  ,
"Speed in bauds."   
)
MODULE_PARM_DESC ( base  ,
"Base for divisor in bauds."   
)
MODULE_PARM_DESC ( outs  ,
"Number of MIDI outputs."   
)
MODULE_PARM_DESC ( ins  ,
"Number of MIDI inputs."   
)
MODULE_PARM_DESC ( droponfull  ,
"Flag to enable drop-on-full buffer mode  
)
MODULE_PARM_DESC ( adaptor  ,
"Type of adaptor."   
)
MODULE_SUPPORTED_DEVICE ( "{{ALSA, MIDI serial u16550}}"  )