Deleted Added
full compact
at91_pit.c (234281) at91_pit.c (234291)
1/*-
2 * Copyright (c) 2009 Gallon Sylvestre. All rights reserved.
3 * Copyright (c) 2010 Greg Ansley. 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

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

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
27#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 2009 Gallon Sylvestre. All rights reserved.
3 * Copyright (c) 2010 Greg Ansley. 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

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

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
27#include <sys/cdefs.h>
28__FBSDID("$FreeBSD: head/sys/arm/at91/at91_pit.c 234281 2012-04-14 11:29:32Z marius $");
28__FBSDID("$FreeBSD: head/sys/arm/at91/at91_pit.c 234291 2012-04-14 17:09:38Z marius $");
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/resource.h>
35#include <sys/systm.h>
36#include <sys/rman.h>

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

85 "AT91SAM9 timer", /* name */
86 1000 /* quality */
87};
88
89static int
90at91pit_probe(device_t dev)
91{
92
29
30#include <sys/param.h>
31#include <sys/bus.h>
32#include <sys/kernel.h>
33#include <sys/module.h>
34#include <sys/resource.h>
35#include <sys/systm.h>
36#include <sys/rman.h>

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

85 "AT91SAM9 timer", /* name */
86 1000 /* quality */
87};
88
89static int
90at91pit_probe(device_t dev)
91{
92
93 if (at91_is_sam9()) {
93 if (at91_is_sam9() || at91_is_sam9xe()) {
94 device_set_desc(dev, "AT91SAM9 PIT");
95 return (0);
96 }
97 return (ENXIO);
98}
99
100static int
101at91pit_attach(device_t dev)

--- 128 unchanged lines hidden ---
94 device_set_desc(dev, "AT91SAM9 PIT");
95 return (0);
96 }
97 return (ENXIO);
98}
99
100static int
101at91pit_attach(device_t dev)

--- 128 unchanged lines hidden ---