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

Go to the source code of this file.

Data Structures

struct  ad1848_info
 
struct  ad1848_port_info
 

Macros

#define DEB(x)
 
#define DEB1(x)
 
#define MD_1848   1
 
#define MD_4231   2
 
#define MD_4231A   3
 
#define MD_1845   4
 
#define MD_4232   5
 
#define MD_C930   6
 
#define MD_IWAVE   7
 
#define MD_4235   8 /* Crystal Audio CS4235 */
 
#define MD_1845_SSCAPE   9 /* Ensoniq Soundscape PNP*/
 
#define MD_4236   10 /* 4236 and higher */
 
#define MD_42xB   11 /* CS 42xB */
 
#define MD_4239   12 /* CS4239 */
 
#define io_Index_Addr(d)   ((d)->base)
 
#define io_Indexed_Data(d)   ((d)->base+1)
 
#define io_Status(d)   ((d)->base+2)
 
#define io_Polled_IO(d)   ((d)->base+3)
 
#define CAP_F_TIMER   0x01
 

Typedefs

typedef struct ad1848_port_info ad1848_port_info
 

Functions

int ad1848_detect (struct resource *ports, int *ad_flags, int *osp)
 
int ad1848_init (char *name, struct resource *ports, int irq, int dma_playback, int dma_capture, int share_dma, int *osp, struct module *owner)
 
int ad1848_control (int cmd, int arg)
 
void ad1848_unload (int io_base, int irq, int dma_playback, int dma_capture, int share_dma)
 
int probe_ms_sound (struct address_info *hw_config, struct resource *ports)
 
void attach_ms_sound (struct address_info *hw_config, struct resource *ports, struct module *owner)
 
void unload_ms_sound (struct address_info *hw_config)
 
 EXPORT_SYMBOL (ad1848_detect)
 
 EXPORT_SYMBOL (ad1848_init)
 
 EXPORT_SYMBOL (ad1848_unload)
 
 EXPORT_SYMBOL (ad1848_control)
 
 EXPORT_SYMBOL (probe_ms_sound)
 
 EXPORT_SYMBOL (attach_ms_sound)
 
 EXPORT_SYMBOL (unload_ms_sound)
 
 module_param (io, int, 0)
 
 module_param (irq, int, 0)
 
 module_param (dma, int, 0)
 
 module_param (dma2, int, 0)
 
 module_param (type, int, 0)
 
 module_param (deskpro_xl, bool, 0)
 
 module_param (deskpro_m, bool, 0)
 
 module_param (soundpro, bool, 0)
 
 module_init (init_ad1848)
 
 module_exit (cleanup_ad1848)
 
 __setup ("ad1848=", setup_ad1848)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define CAP_F_TIMER   0x01

Definition at line 163 of file ad1848.c.

#define DEB (   x)

Definition at line 53 of file ad1848.c.

#define DEB1 (   x)

Definition at line 54 of file ad1848.c.

#define io_Index_Addr (   d)    ((d)->base)

Definition at line 156 of file ad1848.c.

#define io_Indexed_Data (   d)    ((d)->base+1)

Definition at line 157 of file ad1848.c.

#define io_Polled_IO (   d)    ((d)->base+3)

Definition at line 159 of file ad1848.c.

#define io_Status (   d)    ((d)->base+2)

Definition at line 158 of file ad1848.c.

#define MD_1845   4

Definition at line 84 of file ad1848.c.

#define MD_1845_SSCAPE   9 /* Ensoniq Soundscape PNP*/

Definition at line 89 of file ad1848.c.

#define MD_1848   1

Definition at line 81 of file ad1848.c.

#define MD_4231   2

Definition at line 82 of file ad1848.c.

#define MD_4231A   3

Definition at line 83 of file ad1848.c.

#define MD_4232   5

Definition at line 85 of file ad1848.c.

#define MD_4235   8 /* Crystal Audio CS4235 */

Definition at line 88 of file ad1848.c.

#define MD_4236   10 /* 4236 and higher */

Definition at line 90 of file ad1848.c.

#define MD_4239   12 /* CS4239 */

Definition at line 92 of file ad1848.c.

#define MD_42xB   11 /* CS 42xB */

Definition at line 91 of file ad1848.c.

#define MD_C930   6

Definition at line 86 of file ad1848.c.

#define MD_IWAVE   7

Definition at line 87 of file ad1848.c.

Typedef Documentation

Function Documentation

__setup ( )
int ad1848_control ( int  cmd,
int  arg 
)

Definition at line 2098 of file ad1848.c.

int ad1848_detect ( struct resource ports,
int ad_flags,
int osp 
)

Definition at line 1537 of file ad1848.c.

int ad1848_init ( char name,
struct resource ports,
int  irq,
int  dma_playback,
int  dma_capture,
int  share_dma,
int osp,
struct module owner 
)

Definition at line 1946 of file ad1848.c.

void ad1848_unload ( int  io_base,
int  irq,
int  dma_playback,
int  dma_capture,
int  share_dma 
)

Definition at line 2158 of file ad1848.c.

void attach_ms_sound ( struct address_info hw_config,
struct resource ports,
struct module owner 
)

Definition at line 2595 of file ad1848.c.

EXPORT_SYMBOL ( ad1848_detect  )
EXPORT_SYMBOL ( ad1848_init  )
EXPORT_SYMBOL ( ad1848_unload  )
EXPORT_SYMBOL ( ad1848_control  )
EXPORT_SYMBOL ( probe_ms_sound  )
EXPORT_SYMBOL ( attach_ms_sound  )
EXPORT_SYMBOL ( unload_ms_sound  )
module_exit ( cleanup_ad1848  )
module_init ( init_ad1848  )
MODULE_LICENSE ( "GPL"  )
module_param ( io  ,
int  ,
 
)
module_param ( irq  ,
int  ,
 
)
module_param ( dma  ,
int  ,
 
)
module_param ( dma2  ,
int  ,
 
)
module_param ( type  ,
int  ,
 
)
module_param ( deskpro_xl  ,
bool  ,
 
)
module_param ( deskpro_m  ,
bool  ,
 
)
module_param ( soundpro  ,
bool  ,
 
)
int probe_ms_sound ( struct address_info hw_config,
struct resource ports 
)

Definition at line 2509 of file ad1848.c.

void unload_ms_sound ( struct address_info hw_config)

Definition at line 2684 of file ad1848.c.

Variable Documentation

unsigned char flags

Definition at line 162 of file ad1848.c.