Deleted Added
full compact
ds1.c (93816) ds1.c (107285)
1/*
2 * Copyright (c) 2000 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

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

28#include <dev/sound/pcm/ac97.h>
29
30#include <pci/pcireg.h>
31#include <pci/pcivar.h>
32
33#include <dev/sound/pci/ds1.h>
34#include <dev/sound/pci/ds1-fw.h>
35
1/*
2 * Copyright (c) 2000 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

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

28#include <dev/sound/pcm/ac97.h>
29
30#include <pci/pcireg.h>
31#include <pci/pcivar.h>
32
33#include <dev/sound/pci/ds1.h>
34#include <dev/sound/pci/ds1-fw.h>
35
36SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/ds1.c 93816 2002-04-04 20:56:47Z jhb $");
36SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/ds1.c 107285 2002-11-26 18:16:27Z cg $");
37
38/* -------------------------------------------------------------------- */
39
40#define DS1_CHANS 4
41#define DS1_RECPRIMARY 0
42#define DS1_IRQHZ ((48000 << 8) / 256)
43#define DS1_BUFFSIZE 4096
44

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

111 bus_space_tag_t st;
112 bus_space_handle_t sh;
113 bus_dma_tag_t buffer_dmat, control_dmat;
114 bus_dmamap_t map;
115
116 struct resource *reg, *irq;
117 int regid, irqid;
118 void *ih;
37
38/* -------------------------------------------------------------------- */
39
40#define DS1_CHANS 4
41#define DS1_RECPRIMARY 0
42#define DS1_IRQHZ ((48000 << 8) / 256)
43#define DS1_BUFFSIZE 4096
44

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

111 bus_space_tag_t st;
112 bus_space_handle_t sh;
113 bus_dma_tag_t buffer_dmat, control_dmat;
114 bus_dmamap_t map;
115
116 struct resource *reg, *irq;
117 int regid, irqid;
118 void *ih;
119 void *lock;
119 struct mtx *lock;
120
121 void *regbase;
122 u_int32_t *pbase, pbankbase, pbanksize;
123 volatile struct pbank *pbank[2 * 64];
124 volatile struct rbank *rbank;
125 int pslotfree, currbank, pchn, rchn;
126 unsigned int bufsz;
127

--- 957 unchanged lines hidden ---
120
121 void *regbase;
122 u_int32_t *pbase, pbankbase, pbanksize;
123 volatile struct pbank *pbank[2 * 64];
124 volatile struct rbank *rbank;
125 int pslotfree, currbank, pchn, rchn;
126 unsigned int bufsz;
127

--- 957 unchanged lines hidden ---