~gma500/+junk/emgd152-natty

« back to all changes in this revision

Viewing changes to emgd-dkms-1.5.15.3082/emgd/utils/memmap.c

  • Committer: Luca Forina
  • Date: 2011-02-06 15:11:54 UTC
  • Revision ID: luca.forina@gmail.com-20110206151154-9dzn5ugxjub9qenb
Upload Emgd 1.5.2 for Natty (override Maverick)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* -*- pse-c -*-
 
2
 *-----------------------------------------------------------------------------
 
3
 * Filename: memmap.c
 
4
 * $Revision: 1.3 $
 
5
 *-----------------------------------------------------------------------------
 
6
 * Copyright © 2002-2010, Intel Corporation.
 
7
 *
 
8
 * This program is free software; you can redistribute it and/or modify it
 
9
 * under the terms and conditions of the GNU General Public License,
 
10
 * version 2, as published by the Free Software Foundation.
 
11
 *
 
12
 * This program is distributed in the hope it will be useful, but WITHOUT
 
13
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
14
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 
15
 * more details.
 
16
 *
 
17
 * You should have received a copy of the GNU General Public License along with
 
18
 * this program; if not, write to the Free Software Foundation, Inc.,
 
19
 * 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
 
20
 *
 
21
 *-----------------------------------------------------------------------------
 
22
 * Description:
 
23
 *  This file contains the XFree86 implementations of the OAL
 
24
 *  memory.h abstractions.
 
25
 *-----------------------------------------------------------------------------
 
26
 */
 
27
#include <io.h>
 
28
 
 
29
#ifndef _OAL_LINUX_KERNEL_IO_MEMMAP_H
 
30
#define _OAL_LINUX_KERNEL_IO_MEMMAP_H
 
31
 
 
32
 
 
33
void * os_map_io_to_mem_nocache(
 
34
                                unsigned long base_address,
 
35
                                unsigned long size
 
36
                                )
 
37
{
 
38
  return ioremap(base_address, size);
 
39
}
 
40
 
 
41
void os_unmap_io_from_mem(
 
42
                          void * virt_addr,
 
43
                          unsigned long size
 
44
                          )
 
45
{
 
46
  iounmap(virt_addr);
 
47
}
 
48
 
 
49
 
 
50
#endif