Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
uart401.c File Reference
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include "sound_config.h"
#include "mpu401.h"
#include "midi_synth.h"

Go to the source code of this file.

Data Structures

struct  uart401_devc
 

Macros

#define DATAPORT   (devc->base)
 
#define COMDPORT   (devc->base+1)
 
#define STATPORT   (devc->base+1)
 
#define input_avail(devc)   (!(uart401_status(devc)&INPUT_AVAIL))
 
#define output_ready(devc)   (!(uart401_status(devc)&OUTPUT_READY))
 
#define OUTPUT_READY   0x40
 
#define INPUT_AVAIL   0x80
 
#define MPU_ACK   0xFE
 
#define MPU_RESET   0xFF
 
#define UART_MODE_ON   0x3F
 
#define MIDI_SYNTH_NAME   "MPU-401 UART"
 
#define MIDI_SYNTH_CAPS   SYNTH_CAP_INPUT
 

Typedefs

typedef struct uart401_devc uart401_devc
 

Functions

irqreturn_t uart401intr (int irq, void *dev_id)
 
int probe_uart401 (struct address_info *hw_config, struct module *owner)
 
void unload_uart401 (struct address_info *hw_config)
 
 EXPORT_SYMBOL (probe_uart401)
 
 EXPORT_SYMBOL (unload_uart401)
 
 EXPORT_SYMBOL (uart401intr)
 
 module_param (io, int, 0444)
 
 module_param (irq, int, 0444)
 
 module_init (init_uart401)
 
 module_exit (cleanup_uart401)
 
 __setup ("uart401=", setup_uart401)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define COMDPORT   (devc->base+1)

Definition at line 48 of file uart401.c.

#define DATAPORT   (devc->base)

Definition at line 47 of file uart401.c.

#define input_avail (   devc)    (!(uart401_status(devc)&INPUT_AVAIL))

Definition at line 56 of file uart401.c.

#define INPUT_AVAIL   0x80

Definition at line 75 of file uart401.c.

#define MIDI_SYNTH_CAPS   SYNTH_CAP_INPUT

Definition at line 204 of file uart401.c.

#define MIDI_SYNTH_NAME   "MPU-401 UART"

Definition at line 203 of file uart401.c.

#define MPU_ACK   0xFE

Definition at line 76 of file uart401.c.

#define MPU_RESET   0xFF

Definition at line 77 of file uart401.c.

#define output_ready (   devc)    (!(uart401_status(devc)&OUTPUT_READY))

Definition at line 57 of file uart401.c.

#define OUTPUT_READY   0x40

Definition at line 74 of file uart401.c.

#define STATPORT   (devc->base+1)

Definition at line 49 of file uart401.c.

#define UART_MODE_ON   0x3F

Definition at line 78 of file uart401.c.

Typedef Documentation

Function Documentation

__setup ( )
EXPORT_SYMBOL ( probe_uart401  )
EXPORT_SYMBOL ( unload_uart401  )
EXPORT_SYMBOL ( uart401intr  )
module_exit ( cleanup_uart401  )
module_init ( init_uart401  )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
0444   
)
module_param ( irq  ,
int  ,
0444   
)
int probe_uart401 ( struct address_info hw_config,
struct module owner 
)

Definition at line 293 of file uart401.c.

irqreturn_t uart401intr ( int  irq,
void dev_id 
)

Definition at line 100 of file uart401.c.

void unload_uart401 ( struct address_info hw_config)

Definition at line 397 of file uart401.c.