utopia_priv.h revision 302408
1281681Srpaulo/*- 2281681Srpaulo * Copyright (c) 2005 3281681Srpaulo * Hartmut Brandt. 4281681Srpaulo * All rights reserved. 5281681Srpaulo * 6281681Srpaulo * Redistribution and use in source and binary forms, with or without 7281681Srpaulo * modification, are permitted provided that the following conditions 8281681Srpaulo * are met: 9281681Srpaulo * 1. Redistributions of source code must retain the above copyright 10281681Srpaulo * notice, this list of conditions and the following disclaimer. 11281681Srpaulo * 2. Redistributions in binary form must reproduce the above copyright 12281681Srpaulo * notice, this list of conditions and the following disclaimer in the 13281681Srpaulo * documentation and/or other materials provided with the distribution. 14281681Srpaulo * 15281681Srpaulo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16346981Scy * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17281681Srpaulo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18281681Srpaulo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19281681Srpaulo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20281681Srpaulo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21281681Srpaulo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22281681Srpaulo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23281681Srpaulo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24281681Srpaulo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25281681Srpaulo * SUCH DAMAGE. 26346981Scy * 27346981Scy * Author: Hartmut Brandt <harti@freebsd.org> 28346981Scy * 29346981Scy * $FreeBSD: stable/11/sys/dev/utopia/utopia_priv.h 142384 2005-02-24 16:56:36Z harti $ 30281681Srpaulo * 31281681Srpaulo * Private include file for the interface between chip files and 32281681Srpaulo * the utopia main stuff. 33 */ 34 35#ifndef _DEV_UTOPIA_UTOPIA_PRIV_H 36#define _DEV_UTOPIA_UTOPIA_PRIV_H 37 38#define UTP_READREGS(UTOPIA, REG, VALP, NP) \ 39 (UTOPIA)->methods->readregs((UTOPIA)->ifatm, REG, VALP, NP) 40#define UTP_WRITEREG(UTOPIA, REG, MASK, VAL) \ 41 (UTOPIA)->methods->writereg((UTOPIA)->ifatm, REG, MASK, VAL) 42 43uint32_t utopia_update(struct utopia *, u_int, u_int, uint32_t); 44void utopia_check_carrier(struct utopia *, u_int); 45 46#endif /* _DEV_UTOPIA_UTOPIA_PRIV_H */ 47