1142384Sharti/*- 2142384Sharti * Copyright (c) 2005 3142384Sharti * Hartmut Brandt. 4142384Sharti * All rights reserved. 5142384Sharti * 6142384Sharti * Redistribution and use in source and binary forms, with or without 7142384Sharti * modification, are permitted provided that the following conditions 8142384Sharti * are met: 9142384Sharti * 1. Redistributions of source code must retain the above copyright 10142384Sharti * notice, this list of conditions and the following disclaimer. 11142384Sharti * 2. Redistributions in binary form must reproduce the above copyright 12142384Sharti * notice, this list of conditions and the following disclaimer in the 13142384Sharti * documentation and/or other materials provided with the distribution. 14142384Sharti * 15142384Sharti * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 16142384Sharti * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 17142384Sharti * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 18142384Sharti * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 19142384Sharti * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20142384Sharti * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21142384Sharti * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22142384Sharti * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23142384Sharti * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24142384Sharti * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25142384Sharti * SUCH DAMAGE. 26142384Sharti * 27142384Sharti * Author: Hartmut Brandt <harti@freebsd.org> 28142384Sharti * 29142384Sharti * $FreeBSD: releng/10.2/sys/dev/utopia/utopia_priv.h 142384 2005-02-24 16:56:36Z harti $ 30142384Sharti * 31142384Sharti * Private include file for the interface between chip files and 32142384Sharti * the utopia main stuff. 33142384Sharti */ 34142384Sharti 35142384Sharti#ifndef _DEV_UTOPIA_UTOPIA_PRIV_H 36142384Sharti#define _DEV_UTOPIA_UTOPIA_PRIV_H 37142384Sharti 38142384Sharti#define UTP_READREGS(UTOPIA, REG, VALP, NP) \ 39142384Sharti (UTOPIA)->methods->readregs((UTOPIA)->ifatm, REG, VALP, NP) 40142384Sharti#define UTP_WRITEREG(UTOPIA, REG, MASK, VAL) \ 41142384Sharti (UTOPIA)->methods->writereg((UTOPIA)->ifatm, REG, MASK, VAL) 42142384Sharti 43142384Shartiuint32_t utopia_update(struct utopia *, u_int, u_int, uint32_t); 44142384Shartivoid utopia_check_carrier(struct utopia *, u_int); 45142384Sharti 46142384Sharti#endif /* _DEV_UTOPIA_UTOPIA_PRIV_H */ 47