~ubuntu-branches/ubuntu/trusty/oss4/trusty-proposed

« back to all changes in this revision

Viewing changes to kernel/framework/include/oss_pci.h

  • Committer: Bazaar Package Importer
  • Author(s): Romain Beauxis, Samuel Thibault, Romain Beauxis, Sebastien NOEL
  • Date: 2011-06-14 10:06:56 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110614100656-cx4oc7u426zn812z
Tags: 4.2-build2004-1
[ Samuel Thibault ]
* debian/control: Add liboss4-salsa2, liboss4-salsa-dev and
  liboss4-salsa-asound2 packages, equivalent to (and will replace) those from
  the oss-libsalsa package (Closes: #589127).
* debian/patches/liboss4-salsa.patch: New patch to rename libsalsa into
  liboss4-salsa to avoid conflicts in the archive for no good reason.
* debian/rules: Make in libOSSlib and libsalsa.
* debian/liboss4-salsa-dev.install, debian/liboss4-salsa2.install,
  debian/liboss4-salsa-asound2.links, debian/liboss4-salsa-dev.links:
  Install liboss4-salsa libraries like was done in the oss-libsalsa package.
* include-alsa: Add a copy of ALSA 1.0.5 headers: Cf ALSA_1.0.* symbols in
  libsalsa, this is the roughly supported version.
* debian/copyright: Update for new include-alsa files.
* alsa.pc: New file for compatibility with libasound-dev.
* debian/control:
  - Add Vcs-Browser and Vcs-Svn fields.
  - Use linux-any instead of the list of Linux archs (Closes: #604679).
  - Make dkms dependency linux-any only.
* debian/patches/hurd_iot.patch: New patch to fix soundcard.h usage in
  libsalsa on hurd-i386.
* debian/patches/libsalsa_fixes.patch: New patch to fix some printf usages
  and ioctl declaration in libsalsa.
* debian/patches/no_EBADE.patch: New patch to cope with hurd-i386 not having
  EBADE.
* debian/patches/CFLAGS.patch: New patch to make oss4 take debian/rules
  CFLAGS into account.
* debian/patches/snd_asoundlib_version.patch: New patch to add
  snd_asoundlib_version().
* debian/patches/generic_srccconf.patch: New patch to fix source
  configuration on unknown archs.

[ Romain Beauxis ]
* Fixed README.Debian to only mention dkms' modules.
* Switch to dpkg-source 3.0 (quilt) format
* Added DM-Upload-Allowed: yes

[ Sebastien NOEL ]
* New upstream release (Closes: #595298, #619272).
* Fix typo in initscript (Closes: #627149).
* debian/control: adjust linux-headers dependencies (Closes: #628879).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Purpose: Definitions of various PCI specific constants and functions
 
3
 *
 
4
 * All drivers for PCI devices should included this file.
 
5
 */
 
6
/*
 
7
 *
 
8
 * This file is part of Open Sound System.
 
9
 *
 
10
 * Copyright (C) 4Front Technologies 1996-2008.
 
11
 *
 
12
 * This this source file is released under GPL v2 license (no other versions).
 
13
 * See the COPYING file included in the main directory of this source
 
14
 * distribution for the license terms and conditions.
 
15
 *
 
16
 */
 
17
#ifndef OSS_PCI_H
 
18
#define OSS_PCI_H
 
19
#define OSS_HAVE_PCI
 
20
#define PCIBIOS_SUCCESSFUL              0x00
 
21
#define PCIBIOS_FAILED                  -1
 
22
 
 
23
#define PCI_CLASS_MULTIMEDIA_AUDIO      0x0401
 
24
#define PCI_CLASS_MULTIMEDIA_OTHER      0x0480
 
25
#define PCI_VENDOR_ID                   0x00
 
26
#define PCI_REVISION_ID                 0x08
 
27
#define PCI_COMMAND                     0x04
 
28
#define PCI_DEVICE_ID                   0x02
 
29
#define PCI_LATENCY_TIMER               0x0d
 
30
#define PCI_INTERRUPT_LINE              0x3c
 
31
#define PCI_BASE_ADDRESS_0              0x10
 
32
 
 
33
#define PCI_MEM_BASE_ADDRESS_0          0x10
 
34
#define PCI_MEM_BASE_ADDRESS_1          0x14
 
35
#define PCI_MEM_BASE_ADDRESS_2          0x18
 
36
#define PCI_MEM_BASE_ADDRESS_3          0x1c
 
37
#define PCI_BASE_ADDRESS_1              0x14
 
38
#define PCI_BASE_ADDRESS_2              0x18
 
39
#define PCI_BASE_ADDRESS_3              0x1c
 
40
#define PCI_BASE_ADDRESS_4              0x20
 
41
#define PCI_BASE_ADDRESS_5              0x24
 
42
#define PCI_COMMAND_IO                  0x01
 
43
#define PCI_COMMAND_MEMORY              0x02
 
44
#define PCI_COMMAND_MASTER              0x04
 
45
#define PCI_COMMAND_PARITY              0x40
 
46
#define PCI_COMMAND_SERR                0x100
 
47
 
 
48
#define PCI_STATUS                      0x06
 
49
#define PCI_SUBSYSTEM_VENDOR_ID         0x2c
 
50
#define PCI_SUBSYSTEM_ID                0x2e
 
51
 
 
52
extern int pci_read_config_byte (oss_device_t * osdev, offset_t where,
 
53
                                 unsigned char *val);
 
54
extern int pci_read_config_irq (oss_device_t * osdev, offset_t where,
 
55
                                unsigned char *val);
 
56
extern int pci_read_config_word (oss_device_t * osdev, offset_t where,
 
57
                                 unsigned short *val);
 
58
extern int pci_read_config_dword (oss_device_t * osdev, offset_t where,
 
59
                                  unsigned int *val);
 
60
extern int pci_write_config_byte (oss_device_t * osdev, offset_t where,
 
61
                                  unsigned char val);
 
62
extern int pci_write_config_word (oss_device_t * osdev, offset_t where,
 
63
                                  unsigned short val);
 
64
extern int pci_write_config_dword (oss_device_t * osdev, offset_t where,
 
65
                                   unsigned int val);
 
66
extern int pci_enable_msi (oss_device_t * osdev);
 
67
#endif