~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to arch/mips/include/asm/mach-loongson/gpio.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * STLS2F GPIO Support
 
3
 *
 
4
 * Copyright (c) 2008  Richard Liu, STMicroelectronics <richard.liu@st.com>
 
5
 * Copyright (c) 2008-2010  Arnaud Patard <apatard@mandriva.com>
 
6
 *
 
7
 * This program is free software; you can redistribute it and/or modify
 
8
 * it under the terms of the GNU General Public License as published by
 
9
 * the Free Software Foundation; either version 2 of the License, or
 
10
 * (at your option) any later version.
 
11
 */
 
12
 
 
13
#ifndef __STLS2F_GPIO_H
 
14
#define __STLS2F_GPIO_H
 
15
 
 
16
#include <asm-generic/gpio.h>
 
17
 
 
18
extern void gpio_set_value(unsigned gpio, int value);
 
19
extern int gpio_get_value(unsigned gpio);
 
20
extern int gpio_cansleep(unsigned gpio);
 
21
 
 
22
/* The chip can do interrupt
 
23
 * but it has not been tested and doc not clear
 
24
 */
 
25
static inline int gpio_to_irq(int gpio)
 
26
{
 
27
        return -EINVAL;
 
28
}
 
29
 
 
30
static inline int irq_to_gpio(int gpio)
 
31
{
 
32
        return -EINVAL;
 
33
}
 
34
 
 
35
#endif                          /* __STLS2F_GPIO_H */