Deleted Added
full compact
if_mn.c (142398) if_mn.c (142407)
1/*-
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 */

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

18 *
19 * The FALC54 and MUNICH32X have far too many registers and weird modes for
20 * comfort, so I have not bothered typing it all into a "fooreg.h" file,
21 * you will (badly!) need the documentation anyway if you want to mess with
22 * this gadget.
23 */
24
25#include <sys/cdefs.h>
1/*-
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 */

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

18 *
19 * The FALC54 and MUNICH32X have far too many registers and weird modes for
20 * comfort, so I have not bothered typing it all into a "fooreg.h" file,
21 * you will (badly!) need the documentation anyway if you want to mess with
22 * this gadget.
23 */
24
25#include <sys/cdefs.h>
26__FBSDID("$FreeBSD: head/sys/pci/if_mn.c 142398 2005-02-24 21:32:56Z imp $");
26__FBSDID("$FreeBSD: head/sys/pci/if_mn.c 142407 2005-02-24 22:33:05Z imp $");
27
28/*
29 * Stuff to describe the MUNIC32X and FALC54 chips.
30 */
31
32#define M32_CHAN 32 /* We have 32 channels */
33#define M32_TS 32 /* We have 32 timeslots */
34

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

160 vm_offset_t crxd[M32_CHAN];
161 vm_offset_t ctxd[M32_CHAN];
162};
163
164struct mn_softc;
165struct sockaddr;
166struct rtentry;
167
27
28/*
29 * Stuff to describe the MUNIC32X and FALC54 chips.
30 */
31
32#define M32_CHAN 32 /* We have 32 channels */
33#define M32_TS 32 /* We have 32 timeslots */
34

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

160 vm_offset_t crxd[M32_CHAN];
161 vm_offset_t ctxd[M32_CHAN];
162};
163
164struct mn_softc;
165struct sockaddr;
166struct rtentry;
167
168static int mn_probe (device_t self);
169static int mn_attach (device_t self);
168static int mn_probe(device_t self);
169static int mn_attach(device_t self);
170static void mn_create_channel(struct mn_softc *sc, int chan);
171static int mn_reset(struct mn_softc *sc);
172static struct trxd * mn_alloc_desc(void);
173static void mn_free_desc(struct trxd *dp);
174static void mn_intr(void *xsc);
175static u_int32_t mn_parse_ts(const char *s, int *nbit);
176#ifdef notyet
177static void m32_dump(struct mn_softc *sc);

--- 1294 unchanged lines hidden ---
170static void mn_create_channel(struct mn_softc *sc, int chan);
171static int mn_reset(struct mn_softc *sc);
172static struct trxd * mn_alloc_desc(void);
173static void mn_free_desc(struct trxd *dp);
174static void mn_intr(void *xsc);
175static u_int32_t mn_parse_ts(const char *s, int *nbit);
176#ifdef notyet
177static void m32_dump(struct mn_softc *sc);

--- 1294 unchanged lines hidden ---