avila_gpio.c (226034) | avila_gpio.c (236987) |
---|---|
1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org> 3 * Copyright (c) 2009, Luiz Otavio O Souza. 4 * Copyright (c) 2010, Andrew Thompson <thompsa@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * SUCH DAMAGE. 28 */ 29 30/* 31 * GPIO driver for Gateworks Avilia 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org> 3 * Copyright (c) 2009, Luiz Otavio O Souza. 4 * Copyright (c) 2010, Andrew Thompson <thompsa@FreeBSD.org> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 18 unchanged lines hidden (view full) --- 27 * SUCH DAMAGE. 28 */ 29 30/* 31 * GPIO driver for Gateworks Avilia 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/avila_gpio.c 226034 2011-10-05 08:33:50Z thompsa $"); | 35__FBSDID("$FreeBSD: head/sys/arm/xscale/ixp425/avila_gpio.c 236987 2012-06-13 04:38:09Z imp $"); |
36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/bus.h> 40 41#include <sys/kernel.h> 42#include <sys/module.h> 43#include <sys/rman.h> --- 53 unchanged lines hidden (view full) --- 97 { "EX_CLK", 15, GPIO_PIN_OUTPUT }, 98#endif 99}; 100#undef GPIO_PIN_IO 101 102/* 103 * Helpers 104 */ | 36 37#include <sys/param.h> 38#include <sys/systm.h> 39#include <sys/bus.h> 40 41#include <sys/kernel.h> 42#include <sys/module.h> 43#include <sys/rman.h> --- 53 unchanged lines hidden (view full) --- 97 { "EX_CLK", 15, GPIO_PIN_OUTPUT }, 98#endif 99}; 100#undef GPIO_PIN_IO 101 102/* 103 * Helpers 104 */ |
105static void avila_gpio_pin_configure(struct avila_gpio_softc *sc, | 105static void avila_gpio_pin_configure(struct avila_gpio_softc *sc, |
106 struct gpio_pin *pin, uint32_t flags); 107static int avila_gpio_pin_flags(struct avila_gpio_softc *sc, uint32_t pin); 108 109/* 110 * Driver stuff 111 */ 112static int avila_gpio_probe(device_t dev); 113static int avila_gpio_attach(device_t dev); --- 252 unchanged lines hidden --- | 106 struct gpio_pin *pin, uint32_t flags); 107static int avila_gpio_pin_flags(struct avila_gpio_softc *sc, uint32_t pin); 108 109/* 110 * Driver stuff 111 */ 112static int avila_gpio_probe(device_t dev); 113static int avila_gpio_attach(device_t dev); --- 252 unchanged lines hidden --- |