Deleted Added
full compact
aureal.c (82180) aureal.c (107285)
1/*
2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
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

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

26
27#include <dev/sound/pcm/sound.h>
28#include <dev/sound/pcm/ac97.h>
29#include <dev/sound/pci/aureal.h>
30
31#include <pci/pcireg.h>
32#include <pci/pcivar.h>
33
1/*
2 * Copyright (c) 1999 Cameron Grant <gandalf@vilnya.demon.co.uk>
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

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

26
27#include <dev/sound/pcm/sound.h>
28#include <dev/sound/pcm/ac97.h>
29#include <dev/sound/pci/aureal.h>
30
31#include <pci/pcireg.h>
32#include <pci/pcivar.h>
33
34SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/aureal.c 82180 2001-08-23 11:30:52Z cg $");
34SND_DECLARE_FILE("$FreeBSD: head/sys/dev/sound/pci/aureal.c 107285 2002-11-26 18:16:27Z cg $");
35
36/* PCI IDs of supported chips */
37#define AU8820_PCI_ID 0x000112eb
38
39/* channel interface */
40static u_int32_t au_playfmt[] = {
41 AFMT_U8,
42 AFMT_STEREO | AFMT_U8,

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

68
69struct au_info {
70 int unit;
71
72 bus_space_tag_t st[3];
73 bus_space_handle_t sh[3];
74
75 bus_dma_tag_t parent_dmat;
35
36/* PCI IDs of supported chips */
37#define AU8820_PCI_ID 0x000112eb
38
39/* channel interface */
40static u_int32_t au_playfmt[] = {
41 AFMT_U8,
42 AFMT_STEREO | AFMT_U8,

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

68
69struct au_info {
70 int unit;
71
72 bus_space_tag_t st[3];
73 bus_space_handle_t sh[3];
74
75 bus_dma_tag_t parent_dmat;
76 void *lock;
76 struct mtx *lock;
77
78 u_int32_t x[32], y[128];
79 char z[128];
80 u_int32_t routes[4], interrupts;
81 struct au_chinfo pch;
82};
83
84static int au_init(device_t dev, struct au_info *au);

--- 601 unchanged lines hidden ---
77
78 u_int32_t x[32], y[128];
79 char z[128];
80 u_int32_t routes[4], interrupts;
81 struct au_chinfo pch;
82};
83
84static int au_init(device_t dev, struct au_info *au);

--- 601 unchanged lines hidden ---