Broadcom SDK and wireless driver: another attempt to update to ver. 5.10.147.0
[tomato.git] / release / src-rt / linux / linux-2.6 / include / asm-mips / gpio.h
blob5e9fcfbd5ffc213049a8e9fd0e4524eee1bfa1e0
1 /*
2 * Generic GPIO Interface
4 * Copyright (C) 2009, Broadcom Corporation
5 * All Rights Reserved.
6 *
7 * THIS SOFTWARE IS OFFERED "AS IS", AND BROADCOM GRANTS NO WARRANTIES OF ANY
8 * KIND, EXPRESS OR IMPLIED, BY STATUTE, COMMUNICATION OR OTHERWISE. BROADCOM
9 * SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS
10 * FOR A SPECIFIC PURPOSE OR NONINFRINGEMENT CONCERNING THIS SOFTWARE.
12 * $Id: gpio.h,v 1.1 2009/11/02 19:10:00 Exp $
15 int gpio_direction_input(unsigned pin);
16 int gpio_direction_output(unsigned pin, int value);
18 int gpio_get_value(unsigned int gpio);
19 void gpio_set_value(unsigned int gpio, int value);
21 int gpio_request(unsigned int gpio, const char *label);
22 void gpio_free(unsigned int gpio);