emu10k1.c (119853) | emu10k1.c (124277) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2004 David O'Brien <obrien@FreeBSD.org> |
|
2 * Copyright (c) 1999 Cameron Grant <cg@freebsd.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. --- 17 unchanged lines hidden (view full) --- 27#include <dev/sound/pcm/sound.h> 28#include <dev/sound/pcm/ac97.h> 29#include <gnu/dev/sound/pci/emu10k1.h> 30 31#include <dev/pci/pcireg.h> 32#include <dev/pci/pcivar.h> 33#include <sys/queue.h> 34 | 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 |
35SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/emu10k1.c 119853 2003-09-07 16:28:03Z cg $"); | 36SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/emu10k1.c 124277 2004-01-09 06:38:11Z obrien $"); |
36 37/* -------------------------------------------------------------------- */ 38 | 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) |
|
39#define EMU10K1_PCI_ID 0x00021102 40#define EMU10K2_PCI_ID 0x00041102 41#define EMU_DEFAULT_BUFSZ 4096 42#define EMU_CHANS 4 | 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? */ |
|
43#undef EMUDEBUG 44 45struct emu_memblk { 46 SLIST_ENTRY(emu_memblk) link; 47 void *buf; 48 bus_addr_t buf_addr; 49 u_int32_t pte_start, pte_size; 50}; --- 1587 unchanged lines hidden --- | 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 --- |