FreeBSD kernel sound device code
|
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/kernel.h>
#include <sys/bus.h>
#include <sys/malloc.h>
#include <sys/module.h>
#include <machine/resource.h>
#include <machine/bus.h>
#include <sys/rman.h>
#include <dev/sound/pcm/sound.h>
#include <dev/sound/chip.h>
#include "bus_if.h"
#include <isa/isavar.h>
#include <isa/isa_common.h>
Go to the source code of this file.
Data Structures | |
struct | gusc_ihandler |
struct | gusc_softc |
Macros | |
#define | LOGICALID_NOPNP 0 |
#define | LOGICALID_PCM 0x0000561e |
#define | LOGICALID_OPL 0x0300561e |
#define | LOGICALID_MIDI 0x0400561e |
Typedefs | |
typedef struct gusc_softc * | sc_p |
Functions | |
SND_DECLARE_FILE ("$FreeBSD$") | |
static int | gusc_probe (device_t dev) |
static int | gusc_attach (device_t dev) |
static int | gusisa_probe (device_t dev) |
static void | gusc_intr (void *) |
static struct resource * | gusc_alloc_resource (device_t bus, device_t child, int type, int *rid, rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) |
static int | gusc_release_resource (device_t bus, device_t child, int type, int rid, struct resource *r) |
static device_t | find_masterdev (sc_p scp) |
static int | alloc_resource (sc_p scp) |
static int | release_resource (sc_p scp) |
static void | port_wr (struct resource *r, int i, unsigned char v) |
static int | port_rd (struct resource *r, int i) |
static int | gusc_setup_intr (device_t dev, device_t child, struct resource *irq, int flags, driver_filter_t *filter, driver_intr_t *intr, void *arg, void **cookiep) |
DRIVER_MODULE (snd_gusc, isa, gusc_driver, gusc_devclass, 0, 0) | |
DRIVER_MODULE (snd_gusc, acpi, gusc_driver, gusc_devclass, 0, 0) | |
MODULE_DEPEND (snd_gusc, sound, SOUND_MINVER, SOUND_PREFVER, SOUND_MAXVER) | |
MODULE_VERSION (snd_gusc, 1) | |
ISA_PNP_INFO (gusc_ids) | |
Variables | |
static struct isa_pnp_id | gusc_ids [] |
static devclass_t | gusc_devclass |
static int | io_range [3] = {0x10, 0x8 , 0x4 } |
static int | io_offset [3] = {0x0 , 0x100, 0x10c} |
static device_method_t | gusc_methods [] |
static driver_t | gusc_driver |
typedef struct gusc_softc* sc_p |
|
static |
Definition at line 477 of file gusc.c.
References base, gusc_softc::dev, dev, gusc_softc::drq, gusc_softc::drq_alloced, gusc_softc::drq_rid, DV_F_DRQ_MASK, DV_F_DUAL_DMA, find_masterdev(), gusc_softc::io, gusc_softc::io_alloced, io_offset, io_range, gusc_softc::io_rid, gusc_softc::irq, gusc_softc::irq_alloced, gusc_softc::irq_rid, LOGICALID_MIDI, LOGICALID_NOPNP, LOGICALID_OPL, and LOGICALID_PCM.
Referenced by gusc_attach().
DRIVER_MODULE | ( | snd_gusc | , |
acpi | , | ||
gusc_driver | , | ||
gusc_devclass | , | ||
0 | , | ||
0 | |||
) |
DRIVER_MODULE | ( | snd_gusc | , |
isa | , | ||
gusc_driver | , | ||
gusc_devclass | , | ||
0 | , | ||
0 | |||
) |
|
static |
Definition at line 452 of file gusc.c.
References gusc_softc::dev, dev, and LOGICALID_PCM.
Referenced by alloc_resource(), and release_resource().
|
static |
Definition at line 354 of file gusc.c.
References bus, gusc_softc::drq, gusc_softc::drq_alloced, gusc_softc::io, gusc_softc::io_alloced, gusc_softc::irq, gusc_softc::irq_alloced, rid, and type.
|
static |
Definition at line 306 of file gusc.c.
References alloc_resource(), gusc_softc::dev, dev, gusc_intr(), gusc_softc::irq, release_resource(), and snd_setup_intr().
|
static |
Definition at line 333 of file gusc.c.
References gusc_ihandler::arg, gusc_ihandler::intr, gusc_softc::io, gusc_softc::midi_intr, gusc_softc::pcm_intr, and port_rd().
Referenced by gusc_attach().
|
static |
Definition at line 107 of file gusc.c.
References child, dev, sndcard_func::func, gusc_ids, gusisa_probe(), LOGICALID_MIDI, LOGICALID_OPL, LOGICALID_PCM, SCF_MIDI, SCF_PCM, and SCF_SYNTH.
|
static |
Definition at line 393 of file gusc.c.
References bus, gusc_softc::drq_alloced, gusc_softc::io_alloced, gusc_softc::irq_alloced, rid, and type.
|
static |
Definition at line 425 of file gusc.c.
References gusc_ihandler::arg, child, dev, intr, gusc_ihandler::intr, irq, gusc_softc::midi_intr, and gusc_softc::pcm_intr.
|
static |
Definition at line 181 of file gusc.c.
References base, child, dev, DV_F_DRQ_MASK, DV_F_DUAL_DMA, fail, sndcard_func::func, port_rd(), port_wr(), rid, SCF_MIDI, SCF_PCM, and val.
Referenced by gusc_probe().
ISA_PNP_INFO | ( | gusc_ids | ) |
MODULE_DEPEND | ( | snd_gusc | , |
sound | , | ||
SOUND_MINVER | , | ||
SOUND_PREFVER | , | ||
SOUND_MAXVER | |||
) |
MODULE_VERSION | ( | snd_gusc | , |
1 | |||
) |
|
static |
Definition at line 171 of file gusc.c.
References r.
Referenced by gusc_intr(), and gusisa_probe().
|
static |
Definition at line 165 of file gusc.c.
References r.
Referenced by gusisa_probe().
|
static |
Definition at line 589 of file gusc.c.
References gusc_softc::dev, dev, gusc_softc::drq, gusc_softc::drq_rid, find_masterdev(), gusc_softc::io, gusc_softc::io_rid, gusc_softc::irq, gusc_softc::irq_rid, LOGICALID_MIDI, LOGICALID_NOPNP, LOGICALID_OPL, and LOGICALID_PCM.
Referenced by gusc_attach().
SND_DECLARE_FILE | ( | "$FreeBSD$" | ) |
|
static |
|
static |
Definition at line 59 of file gusc.c.
Referenced by gusc_probe().
|
static |
|
static |
Definition at line 475 of file gusc.c.
Referenced by alloc_resource().
|
static |
Definition at line 474 of file gusc.c.
Referenced by alloc_resource().