Deleted Added
sdiff udiff text old ( 172358 ) new ( 186352 )
full compact
1/*-
2 * Copyright (c) 2006 Sam Leffler. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.

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

16 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
17 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
18 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
19 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
20 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
22 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 *
24 * $FreeBSD: head/sys/arm/xscale/ixp425/ixp425_npevar.h 172358 2007-09-27 22:39:49Z cognet $
25 */
26
27#ifndef _IXP425_NPEVAR_H_
28#define _IXP425_NPEVAR_H_
29
30/*
31 * Intel (R) IXP400 Software NPE Image ID Definition
32 *

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

90
91/* NPE B Firmware Image Id's */
92#define NPEFW_B_ETH 0x01000200 /* Basic Ethernet */
93#define NPEFW_B_ETH_VLAN 0x01010200 /* NPEFW_B_ETH + VLAN QoS */
94#define NPEFW_B_ETH_VLAN_HDR 0x01020201 /* NPEFW_B_ETH_VLAN + Hdr conv */
95#define NPEFW_B_DMA 0x01020100 /* DMA only */
96/* XXX ... more not include */
97
98#define IXP425_NPE_B_IMAGEID 0x01000200
99#define IXP425_NPE_C_IMAGEID 0x02000200
100
101struct ixpnpe_softc;
102struct ixpnpe_softc *ixpnpe_attach(device_t);
103void ixpnpe_detach(struct ixpnpe_softc *);
104int ixpnpe_stopandreset(struct ixpnpe_softc *);
105int ixpnpe_start(struct ixpnpe_softc *);
106int ixpnpe_stop(struct ixpnpe_softc *);
107int ixpnpe_init(struct ixpnpe_softc *,
108 const char *imageName, uint32_t imageId);
109int ixpnpe_getfunctionality(struct ixpnpe_softc *sc);
110
111int ixpnpe_sendmsg(struct ixpnpe_softc *, const uint32_t msg[2]);
112int ixpnpe_recvmsg(struct ixpnpe_softc *, uint32_t msg[2]);
113int ixpnpe_sendandrecvmsg(struct ixpnpe_softc *, const uint32_t send[2],
114 uint32_t recv[2]);
115#endif /* _IXP425_NPEVAR_H_ */