Deleted Added
full compact
ar71xx_gpio.c (253510) ar71xx_gpio.c (254234)
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org>
3 * Copyright (c) 2009, Luiz Otavio O Souza.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 17 unchanged lines hidden (view full) ---

26 * SUCH DAMAGE.
27 */
28
29/*
30 * GPIO driver for AR71xx
31 */
32
33#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009, Oleksandr Tymoshenko <gonzo@FreeBSD.org>
3 * Copyright (c) 2009, Luiz Otavio O Souza.
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 17 unchanged lines hidden (view full) ---

26 * SUCH DAMAGE.
27 */
28
29/*
30 * GPIO driver for AR71xx
31 */
32
33#include <sys/cdefs.h>
34__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_gpio.c 253510 2013-07-21 03:55:18Z adrian $");
34__FBSDID("$FreeBSD: head/sys/mips/atheros/ar71xx_gpio.c 254234 2013-08-12 00:38:47Z adrian $");
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/bus.h>
39
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/rman.h>

--- 108 unchanged lines hidden (view full) ---

151 case AR71XX_SOC_AR9330:
152 case AR71XX_SOC_AR9331:
153 *maxpin = AR933X_GPIO_COUNT - 1;
154 break;
155 case AR71XX_SOC_AR9341:
156 case AR71XX_SOC_AR9342:
157 case AR71XX_SOC_AR9344:
158 *maxpin = AR934X_GPIO_COUNT - 1;
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/bus.h>
39
40#include <sys/kernel.h>
41#include <sys/module.h>
42#include <sys/rman.h>

--- 108 unchanged lines hidden (view full) ---

151 case AR71XX_SOC_AR9330:
152 case AR71XX_SOC_AR9331:
153 *maxpin = AR933X_GPIO_COUNT - 1;
154 break;
155 case AR71XX_SOC_AR9341:
156 case AR71XX_SOC_AR9342:
157 case AR71XX_SOC_AR9344:
158 *maxpin = AR934X_GPIO_COUNT - 1;
159 break;
159 default:
160 *maxpin = AR71XX_GPIO_PINS - 1;
161 }
162 return (0);
163}
164
165static int
166ar71xx_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps)

--- 320 unchanged lines hidden ---
160 default:
161 *maxpin = AR71XX_GPIO_PINS - 1;
162 }
163 return (0);
164}
165
166static int
167ar71xx_gpio_pin_getcaps(device_t dev, uint32_t pin, uint32_t *caps)

--- 320 unchanged lines hidden ---