Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mtpav.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/platform_device.h>
#include <linux/ioport.h>
#include <linux/io.h>
#include <linux/moduleparam.h>
#include <sound/core.h>
#include <sound/initval.h>
#include <sound/rawmidi.h>
#include <linux/delay.h>

Go to the source code of this file.

Data Structures

struct  mtpav_port
 
struct  mtpav
 

Macros

#define MTPAV_IOBASE   0x378
 
#define MTPAV_IRQ   7
 
#define MTPAV_MAX_PORTS   8
 
#define SIGS_BYTE   0x08
 
#define SIGS_RFD   0x80
 
#define SIGS_IRQ   0x40
 
#define SIGS_IN0   0x10
 
#define SIGS_IN1   0x20
 
#define SIGC_WRITE   0x04
 
#define SIGC_READ   0x08
 
#define SIGC_INTEN   0x10
 
#define DREG   0
 
#define SREG   1
 
#define CREG   2
 
#define MTPAV_MODE_INPUT_OPENED   0x01
 
#define MTPAV_MODE_OUTPUT_OPENED   0x02
 
#define MTPAV_MODE_INPUT_TRIGGERED   0x04
 
#define MTPAV_MODE_OUTPUT_TRIGGERED   0x08
 
#define NUMPORTS   (0x12+1)
 
#define MTPAV_PIDX_COMPUTER   0
 
#define MTPAV_PIDX_ADAT   1
 
#define MTPAV_PIDX_BROADCAST   2
 
#define SND_MTPAV_DRIVER   "snd_mtpav"
 

Functions

 MODULE_AUTHOR ("Michael T. Mayers")
 
 MODULE_DESCRIPTION ("MOTU MidiTimePiece AV multiport MIDI")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_SUPPORTED_DEVICE ("{{MOTU,MidiTimePiece AV multiport MIDI}}")
 
 module_param (index, int, 0444)
 
 MODULE_PARM_DESC (index,"Index value for MotuMTPAV MIDI.")
 
 module_param (id, charp, 0444)
 
 MODULE_PARM_DESC (id,"ID string for MotuMTPAV MIDI.")
 
 module_param (port, long, 0444)
 
 MODULE_PARM_DESC (port,"Parallel port # for MotuMTPAV MIDI.")
 
 module_param (irq, int, 0444)
 
 MODULE_PARM_DESC (irq,"Parallel IRQ # for MotuMTPAV MIDI.")
 
 module_param (hwports, int, 0444)
 
 MODULE_PARM_DESC (hwports,"Hardware ports # for MotuMTPAV MIDI.")
 

Macro Definition Documentation

#define CREG   2

Definition at line 116 of file mtpav.c.

#define DREG   0

Definition at line 114 of file mtpav.c.

#define MTPAV_IOBASE   0x378

Definition at line 75 of file mtpav.c.

#define MTPAV_IRQ   7

Definition at line 76 of file mtpav.c.

#define MTPAV_MAX_PORTS   8

Definition at line 77 of file mtpav.c.

#define MTPAV_MODE_INPUT_OPENED   0x01

Definition at line 119 of file mtpav.c.

#define MTPAV_MODE_INPUT_TRIGGERED   0x04

Definition at line 121 of file mtpav.c.

#define MTPAV_MODE_OUTPUT_OPENED   0x02

Definition at line 120 of file mtpav.c.

#define MTPAV_MODE_OUTPUT_TRIGGERED   0x08

Definition at line 122 of file mtpav.c.

#define MTPAV_PIDX_ADAT   1

Definition at line 178 of file mtpav.c.

#define MTPAV_PIDX_BROADCAST   2

Definition at line 179 of file mtpav.c.

#define MTPAV_PIDX_COMPUTER   0

Definition at line 177 of file mtpav.c.

#define NUMPORTS   (0x12+1)

Definition at line 124 of file mtpav.c.

#define SIGC_INTEN   0x10

Definition at line 112 of file mtpav.c.

#define SIGC_READ   0x08

Definition at line 111 of file mtpav.c.

#define SIGC_WRITE   0x04

Definition at line 110 of file mtpav.c.

#define SIGS_BYTE   0x08

Definition at line 104 of file mtpav.c.

#define SIGS_IN0   0x10

Definition at line 107 of file mtpav.c.

#define SIGS_IN1   0x20

Definition at line 108 of file mtpav.c.

#define SIGS_IRQ   0x40

Definition at line 106 of file mtpav.c.

#define SIGS_RFD   0x80

Definition at line 105 of file mtpav.c.

#define SND_MTPAV_DRIVER   "snd_mtpav"

Definition at line 756 of file mtpav.c.

#define SREG   1

Definition at line 115 of file mtpav.c.

Function Documentation

MODULE_AUTHOR ( "Michael T. Mayers"  )
MODULE_DESCRIPTION ( "MOTU MidiTimePiece AV multiport MIDI"  )
MODULE_LICENSE ( "GPL"  )
module_param ( index  ,
int  ,
0444   
)
module_param ( id  ,
charp  ,
0444   
)
module_param ( port  ,
long  ,
0444   
)
module_param ( irq  ,
int  ,
0444   
)
module_param ( hwports  ,
int  ,
0444   
)
MODULE_PARM_DESC ( index  ,
"Index value for MotuMTPAV MIDI."   
)
MODULE_PARM_DESC ( id  ,
"ID string for MotuMTPAV MIDI."   
)
MODULE_PARM_DESC ( port  ,
"Parallel port # for MotuMTPAV MIDI."   
)
MODULE_PARM_DESC ( irq  ,
"Parallel IRQ # for MotuMTPAV MIDI."   
)
MODULE_PARM_DESC ( hwports  ,
"Hardware ports # for MotuMTPAV MIDI."   
)
MODULE_SUPPORTED_DEVICE ( "{{MOTU,MidiTimePiece AV multiport MIDI}}"  )