Deleted Added
full compact
if_cpswvar.h (246276) if_cpswvar.h (283276)
1/*-
2 * Copyright (c) 2012 Damjan Marion <dmarion@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) 2012 Damjan Marion <dmarion@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/ti/cpsw/if_cpswvar.h 246276 2013-02-03 01:08:01Z kientzle $
26 * $FreeBSD: head/sys/arm/ti/cpsw/if_cpswvar.h 283276 2015-05-22 03:16:18Z gonzo $
27 */
28
29#ifndef _IF_CPSWVAR_H
30#define _IF_CPSWVAR_H
31
32#define CPSW_INTR_COUNT 4
33
34/* MII BUS */

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

73
74 /* TODO: We should set up a child structure for each port;
75 store mac, phy information, etc, in that structure. */
76 uint8_t mac_addr[ETHER_ADDR_LEN];
77
78 device_t miibus;
79 struct mii_data *mii;
80 /* We expect 1 memory resource and 4 interrupts from the device tree. */
27 */
28
29#ifndef _IF_CPSWVAR_H
30#define _IF_CPSWVAR_H
31
32#define CPSW_INTR_COUNT 4
33
34/* MII BUS */

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

73
74 /* TODO: We should set up a child structure for each port;
75 store mac, phy information, etc, in that structure. */
76 uint8_t mac_addr[ETHER_ADDR_LEN];
77
78 device_t miibus;
79 struct mii_data *mii;
80 /* We expect 1 memory resource and 4 interrupts from the device tree. */
81 struct resource *res[1 + CPSW_INTR_COUNT];
81 struct resource *mem_res;
82 int mem_rid;
83 struct resource *irq_res[CPSW_INTR_COUNT];
82
83 /* Interrupts get recorded here as we initialize them. */
84 /* Interrupt teardown just walks this list. */
85 struct {
86 struct resource *res;
87 void *ih_cookie;
88 const char *description;
89 } interrupts[CPSW_INTR_COUNT];

--- 35 unchanged lines hidden ---
84
85 /* Interrupts get recorded here as we initialize them. */
86 /* Interrupt teardown just walks this list. */
87 struct {
88 struct resource *res;
89 void *ih_cookie;
90 const char *description;
91 } interrupts[CPSW_INTR_COUNT];

--- 35 unchanged lines hidden ---