11905Swollman/*- 21905Swollman * Copyright (c) 2012 The NetBSD Foundation, Inc. 31905Swollman * All rights reserved. 4299293Sgjb * 5299293Sgjb * This code is derived from software contributed to The NetBSD Foundation 6299293Sgjb * by Paul Fleischer <paul@xpg.dk> 7299293Sgjb * 81905Swollman * Redistribution and use in source and binary forms, with or without 91905Swollman * modification, are permitted provided that the following conditions 101905Swollman * are met: 111905Swollman * 1. Redistributions of source code must retain the above copyright 121905Swollman * notice, this list of conditions and the following disclaimer. 131905Swollman * 2. Redistributions in binary form must reproduce the above copyright 141905Swollman * notice, this list of conditions and the following disclaimer in the 151905Swollman * documentation and/or other materials provided with the distribution. 161905Swollman * 171905Swollman * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 181905Swollman * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 191905Swollman * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 201905Swollman * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 211905Swollman * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 221905Swollman * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 231905Swollman * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 241905Swollman * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 251905Swollman * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 261905Swollman * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 271905Swollman * POSSIBILITY OF SUCH DAMAGE. 281905Swollman */ 291905Swollman#ifndef _DM9K_H 301905Swollman#define _DM9K_H 311905Swollman 321905Swollmanint dm9k_match(unsigned int tag, void *macaddr); 331905Swollmanvoid *dm9k_init(unsigned int tag, void *macaddr); 341905Swollmanint dm9k_send(void *cookie, char *data, unsigned int len); 351905Swollmanint dm9k_recv(void *cookie, char *data, unsigned int len, unsigned int to); 361905Swollman 371905Swollman#endif 381905Swollman