lpcvar.h (239278) | lpcvar.h (265858) |
---|---|
1/*- 2 * Copyright (c) 2011 Jakub Wojciech Klama <jceel@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 2011 Jakub Wojciech Klama <jceel@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/arm/lpc/lpcvar.h 239278 2012-08-15 05:37:10Z gonzo $ | 26 * $FreeBSD: head/sys/arm/lpc/lpcvar.h 265858 2014-05-10 21:30:19Z andrew $ |
27 */ 28 29#ifndef _ARM_LPC_LPCVAR_H 30#define _ARM_LPC_LPCVAR_H 31 32#include <sys/types.h> 33#include <sys/bus.h> 34#include <machine/bus.h> 35 36/* Clocking and power control */ 37uint32_t lpc_pwr_read(device_t, int); 38void lpc_pwr_write(device_t, int, uint32_t); 39 40/* GPIO */ | 27 */ 28 29#ifndef _ARM_LPC_LPCVAR_H 30#define _ARM_LPC_LPCVAR_H 31 32#include <sys/types.h> 33#include <sys/bus.h> 34#include <machine/bus.h> 35 36/* Clocking and power control */ 37uint32_t lpc_pwr_read(device_t, int); 38void lpc_pwr_write(device_t, int, uint32_t); 39 40/* GPIO */ |
41void platform_gpio_init(void); | 41void lpc_gpio_init(void); |
42int lpc_gpio_set_flags(device_t, int, int); 43int lpc_gpio_set_state(device_t, int, int); 44int lpc_gpio_get_state(device_t, int, int *); 45 46/* DMA */ 47struct lpc_dmac_channel_config 48{ 49 int ldc_fcntl; --- 20 unchanged lines hidden --- | 42int lpc_gpio_set_flags(device_t, int, int); 43int lpc_gpio_set_state(device_t, int, int); 44int lpc_gpio_get_state(device_t, int, int *); 45 46/* DMA */ 47struct lpc_dmac_channel_config 48{ 49 int ldc_fcntl; --- 20 unchanged lines hidden --- |