Home | History | Annotate | Line # | Download | only in can
      1  1.2  bouyer /*	$NetBSD: h_canutils.h,v 1.2 2017/05/27 21:02:56 bouyer Exp $	*/
      2  1.2  bouyer 
      3  1.2  bouyer /*-
      4  1.2  bouyer  * Copyright (c) 2017 The NetBSD Foundation, Inc.
      5  1.2  bouyer  * All rights reserved.
      6  1.2  bouyer  *
      7  1.2  bouyer  * This code is derived from software contributed to The NetBSD Foundation
      8  1.2  bouyer  * by Manuel Bouyer
      9  1.2  bouyer  *
     10  1.2  bouyer  * Redistribution and use in source and binary forms, with or without
     11  1.2  bouyer  * modification, are permitted provided that the following conditions
     12  1.2  bouyer  * are met:
     13  1.2  bouyer  * 1. Redistributions of source code must retain the above copyright
     14  1.2  bouyer  *    notice, this list of conditions and the following disclaimer.
     15  1.2  bouyer  * 2. Redistributions in binary form must reproduce the above copyright
     16  1.2  bouyer  *    notice, this list of conditions and the following disclaimer in the
     17  1.2  bouyer  *    documentation and/or other materials provided with the distribution.
     18  1.2  bouyer  *
     19  1.2  bouyer  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
     20  1.2  bouyer  * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
     21  1.2  bouyer  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     22  1.2  bouyer  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     23  1.2  bouyer  * IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
     24  1.2  bouyer  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     25  1.2  bouyer  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
     26  1.2  bouyer  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     27  1.2  bouyer  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
     28  1.2  bouyer  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     29  1.2  bouyer  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
     30  1.2  bouyer  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     31  1.2  bouyer  */
     32  1.2  bouyer 
     33  1.2  bouyer void cancfg_rump_createif(const char *);
     34  1.2  bouyer int can_recvfrom(int, struct can_frame *, int *, struct sockaddr_can *);
     35  1.2  bouyer int can_read(int, struct can_frame *, int *);
     36  1.2  bouyer int can_bind(int s, const char *);
     37  1.2  bouyer int can_socket_with_own(void);
     38