if_patm_attach.c (217556) | if_patm_attach.c (217566) |
---|---|
1/*- 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 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: --- 16 unchanged lines hidden (view full) --- 25 * SUCH DAMAGE. 26 * 27 * Author: Hartmut Brandt <harti@freebsd.org> 28 * 29 * Driver for IDT77252 based cards like ProSum's. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus). 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: --- 16 unchanged lines hidden (view full) --- 25 * SUCH DAMAGE. 26 * 27 * Author: Hartmut Brandt <harti@freebsd.org> 28 * 29 * Driver for IDT77252 based cards like ProSum's. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm_attach.c 217556 2011-01-18 21:14:23Z mdf $"); | 33__FBSDID("$FreeBSD: head/sys/dev/patm/if_patm_attach.c 217566 2011-01-19 00:57:58Z mdf $"); |
34 35#include "opt_inet.h" 36#include "opt_natm.h" 37 38#include <sys/types.h> 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> --- 237 unchanged lines hidden (view full) --- 279 if (SYSCTL_ADD_UINT(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), 280 OID_AUTO, "debug", CTLFLAG_RW, &sc->debug, 281 0, "debug flags") == NULL) 282 goto fail; 283 sc->debug = PATM_DEBUG; 284 patm_env_getuint(sc, &sc->debug, "debug"); 285 286 if (SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), | 34 35#include "opt_inet.h" 36#include "opt_natm.h" 37 38#include <sys/types.h> 39#include <sys/param.h> 40#include <sys/systm.h> 41#include <sys/malloc.h> --- 237 unchanged lines hidden (view full) --- 279 if (SYSCTL_ADD_UINT(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), 280 OID_AUTO, "debug", CTLFLAG_RW, &sc->debug, 281 0, "debug flags") == NULL) 282 goto fail; 283 sc->debug = PATM_DEBUG; 284 patm_env_getuint(sc, &sc->debug, "debug"); 285 286 if (SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), |
287 OID_AUTO, "regs", CTLFLAG_RD, sc, 0, patm_sysctl_regs, 288 "S", "registers") == NULL) | 287 OID_AUTO, "regs", CTLTYPE_OPAQUE | CTLFLAG_RD, sc, 0, 288 patm_sysctl_regs, "S", "registers") == NULL) |
289 goto fail; 290 291 if (SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), | 289 goto fail; 290 291 if (SYSCTL_ADD_PROC(&sc->sysctl_ctx, SYSCTL_CHILDREN(sc->sysctl_tree), |
292 OID_AUTO, "tsq", CTLFLAG_RD, sc, 0, patm_sysctl_tsq, 293 "S", "TSQ") == NULL) | 292 OID_AUTO, "tsq", CTLTYPE_OPAQUE | CTLFLAG_RD, sc, 0, 293 patm_sysctl_tsq, "S", "TSQ") == NULL) |
294 goto fail; 295#endif 296 297 patm_reset(sc); 298 299 /* 300 * Detect and attach the phy. 301 */ --- 773 unchanged lines hidden --- | 294 goto fail; 295#endif 296 297 patm_reset(sc); 298 299 /* 300 * Detect and attach the phy. 301 */ --- 773 unchanged lines hidden --- |