OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rc203soc/] [sw/] [uClinux/] [drivers/] [sound/] [adlib_card.c] - Blame information for rev 1626

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1626 jcastillo
/*
2
 * sound/adlib_card.c
3
 *
4
 * Detection routine for the AdLib card.
5
 */
6
 
7
/*
8
 * Copyright (C) by Hannu Savolainen 1993-1996
9
 *
10
 * USS/Lite for Linux is distributed under the GNU GENERAL PUBLIC LICENSE (GPL)
11
 * Version 2 (June 1991). See the "COPYING" file distributed with this software
12
 * for more info.
13
 */
14
#include <linux/config.h>
15
 
16
 
17
#include "sound_config.h"
18
 
19
#if defined(CONFIG_YM3812)
20
 
21
void
22
attach_adlib_card (struct address_info *hw_config)
23
{
24
 
25
  opl3_init (hw_config->io_base, hw_config->osp);
26
  request_region (hw_config->io_base, 4, "OPL3/OPL2");
27
}
28
 
29
int
30
probe_adlib (struct address_info *hw_config)
31
{
32
 
33
  if (check_region (hw_config->io_base, 4))
34
    {
35
      printk ("\n\nopl3.c: I/O port %x already in use\n\n", hw_config->io_base);
36
      return 0;
37
    }
38
 
39
  return opl3_detect (hw_config->io_base, hw_config->osp);
40
}
41
 
42
void
43
unload_adlib (struct address_info *hw_config)
44
{
45
  release_region (hw_config->io_base, 4);
46
}
47
 
48
 
49
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.