Deleted Added
sdiff udiff text old ( 119853 ) new ( 124277 )
full compact
1/*
2 * Copyright (c) 2004 David O'Brien <obrien@FreeBSD.org>
3 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org>
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.

--- 17 unchanged lines hidden (view full) ---

28#include <dev/sound/pcm/sound.h>
29#include <dev/sound/pcm/ac97.h>
30#include <gnu/dev/sound/pci/emu10k1.h>
31
32#include <dev/pci/pcireg.h>
33#include <dev/pci/pcivar.h>
34#include <sys/queue.h>
35
36SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/emu10k1.c 124277 2004-01-09 06:38:11Z obrien $");
37
38/* -------------------------------------------------------------------- */
39
40#define NUM_G 64 /* use all channels */
41#define WAVEOUT_MAXBUFSIZE 32768
42#define EMUPAGESIZE 4096 /* don't change */
43#define MAXPAGES (WAVEOUT_MAXBUFSIZE * NUM_G / EMUPAGESIZE)
44#define EMU10K1_PCI_ID 0x00021102
45#define EMU10K2_PCI_ID 0x00041102
46#define EMU_DEFAULT_BUFSZ 4096
47#define EMU_CHANS 4
48#define ENV_ON DCYSUSV_CHANNELENABLE_MASK
49#define ENV_OFF 0x00 /* XXX: should this be 1? */
50#undef EMUDEBUG
51
52struct emu_memblk {
53 SLIST_ENTRY(emu_memblk) link;
54 void *buf;
55 bus_addr_t buf_addr;
56 u_int32_t pte_start, pte_size;
57};

--- 1587 unchanged lines hidden ---