/* $NetBSD: can_var.h,v 1.2 2017/05/27 21:02:56 bouyer Exp $ */ /*- * Copyright (c) 2003, 2017 The NetBSD Foundation, Inc. * All rights reserved. * * This code is derived from software contributed to The NetBSD Foundation * by Robert Swindells and Manuel Bouyer * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. */ #ifndef _NETCAN_CAN_VAR_H_ #define _NETCAN_CAN_VAR_H_ #include #include #include struct can_ifreq { char cfr_name[IFNAMSIZ]; /* if name, e.g. "sja0" */ }; #ifdef _KERNEL #include /* * common structure for CAN interface drivers. Should be at the start of * each driver's softc. */ struct canif_softc { device_t csc_dev; struct can_link_timecaps csc_timecaps; /* timing capabilities */ struct can_link_timings csc_timings; /* operating timing values */ uint32_t csc_linkmodes; }; extern struct ifqueue canintrq; extern struct domain candomain; extern const struct pr_usrreqs can_usrreqs; void can_ifattach(struct ifnet *); void can_ifdetach(struct ifnet *); void can_ifinit_timings(struct canif_softc *); void can_mbuf_tag_clean(struct mbuf *); void can_input(struct ifnet *, struct mbuf *); void *can_ctlinput(int, struct sockaddr *, void *); int can_ctloutput(int, struct socket *, struct sockopt *); void can_init(void); void canintr(void); void can_bpf_mtap(struct ifnet *, struct mbuf *, bool); #endif #endif +0000'>2017-07-03Remove workaround for ancient HTML generation code.wiz 2016-06-06Remove reference to uucp(1) in SEE ALSO, as it is no more there.abhinav 2014-09-06Sort sections. Remove trailing whitespace.wiz 2014-09-06Clarify the usage message. For PR 49177.dholland 2014-09-06On reflection change "outputname" to "headername" so it's clear it's notdholland 2014-09-06Clarify and generally improve. The expansion of files is not a bug,dholland 2014-09-06Fix wrong use of argument identifiers; pursuant to PR 49177.dholland 2013-01-28Document today's changes to uudecode:apb 2011-09-16Use __deadjoerg 2009-03-10Specify width for tag list.joerg 2008-12-01Really comment out uucp(1) crossref.wiz 2008-11-30Update SEE ALSO per PR 40071: compress -> gzip, add missing tar, commentdholland 2008-11-29Modernize and expand example. Bump date.dholland 2008-11-29Clarify man page with respect to input and output files, and sync usagedholland 2008-08-25Correction for previous from dillo: it is a backquote, not a single quote.wiz 2008-08-23Explicitly mention that it is the single quote character, to unconfuse joerg.wiz 2008-07-21Remove the \n and tabs from the __COPYRIGHT() strings.lukem 2006-09-24Add -m to SYNOPSIS.wiz 2006-09-24PR/33319: Seebs: base64 is annoyingelad 2005-06-29Add setprogname call.wiz 2005-06-29de-__P(), ansify, use {g,s}etprogname.wiz 2003-08-07Move UCB-licensed code from 4-clause to 3-clause licence.agc 2002-09-30New sentence, new line.grant 2002-08-06Fix mistake in algorithm description.soren 2002-02-08Generate <>& symbolically. I'm avoiding .../dist/... directories for now.ross 2001-12-08Sort sections, sort SEE ALSO.wiz 2001-12-08Sort sections.wiz 2001-12-01Whitespace cleanup.wiz 2000-09-04For commands and utilities, use EXIT STATUS rather than RETURN VALUES orkleink 1999-03-22More and more .Os cleanups. .Os is defined in the tmac.doc-common file,garbled 1999-03-18Add a -p option to uudecode(1), which causes it to write decoded data tokleink 1997-11-01Nuke trailing comma in SEE ALSO section.mycroft 1997-10-20WARNSify, fix .Nm usage, deprecate register, use err.hlukem 1997-08-03Major re-write.jeremy 1997-04-10Changed inaccuracy in termination description described by PR#2226.jeremy 1995-12-05Rename uuencode.format(5) to uuencode(5) as recommended by PR #1786jtc 1994-12-22specify man pages the new way.cgd 1994-11-17fix typojtc 1994-11-17Merged with 4.4lite.jtc