1255370Sloos/*- 2255370Sloos * Copyright (c) 2013 Oleksandr Tymoshenko <gonzo@bluezbox.com> 3255370Sloos * 4255370Sloos * Redistribution and use in source and binary forms, with or without 5255370Sloos * modification, are permitted provided that the following conditions 6255370Sloos * are met: 7255370Sloos * 1. Redistributions of source code must retain the above copyright 8255370Sloos * notice, this list of conditions and the following disclaimer. 9255370Sloos * 2. Redistributions in binary form must reproduce the above copyright 10255370Sloos * notice, this list of conditions and the following disclaimer in the 11255370Sloos * documentation and/or other materials provided with the distribution. 12255370Sloos * 13255370Sloos * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 14255370Sloos * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 15255370Sloos * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 16255370Sloos * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 17255370Sloos * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18255370Sloos * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19255370Sloos * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20255370Sloos * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21255370Sloos * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22255370Sloos * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23255370Sloos * SUCH DAMAGE. 24255370Sloos * 25255370Sloos * $FreeBSD: releng/10.2/sys/arm/broadcom/bcm2835/bcm2835_gpio.h 255370 2013-09-07 18:48:15Z loos $ 26255370Sloos */ 27255370Sloos 28255370Sloos#ifndef _BCM2835_GPIO_H_ 29255370Sloos#define _BCM2835_GPIO_H_ 30255370Sloos 31255370Sloosenum bcm_gpio_fsel { 32255370Sloos BCM_GPIO_INPUT, 33255370Sloos BCM_GPIO_OUTPUT, 34255370Sloos BCM_GPIO_ALT5, 35255370Sloos BCM_GPIO_ALT4, 36255370Sloos BCM_GPIO_ALT0, 37255370Sloos BCM_GPIO_ALT1, 38255370Sloos BCM_GPIO_ALT2, 39255370Sloos BCM_GPIO_ALT3, 40255370Sloos}; 41255370Sloos 42255370Sloosvoid bcm_gpio_set_alternate(device_t, uint32_t, uint32_t); 43255370Sloos 44255370Sloos#endif /* _BCM2835_GPIO_H_ */ 45