cyvar.h revision 128799
1128799Sbde/*- 2128799Sbde * Copyright (c) 2004 Bruce D. Evans 3128799Sbde * All rights reserved. 4128799Sbde * 5128799Sbde * Redistribution and use in source and binary forms, with or without 6128799Sbde * modification, are permitted provided that the following conditions 7128799Sbde * are met: 8128799Sbde * 1. Redistributions of source code must retain the above copyright 9128799Sbde * notice, this list of conditions and the following disclaimer. 10128799Sbde * 2. Redistributions in binary form must reproduce the above copyright 11128799Sbde * notice, this list of conditions and the following disclaimer in the 12128799Sbde * documentation and/or other materials provided with the distribution. 13128799Sbde * 14128799Sbde * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15128799Sbde * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16128799Sbde * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17128799Sbde * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18128799Sbde * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19128799Sbde * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20128799Sbde * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21128799Sbde * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22128799Sbde * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23128799Sbde * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24128799Sbde * SUCH DAMAGE. 25128799Sbde * 26128799Sbde * $FreeBSD: head/sys/dev/cy/cyvar.h 128799 2004-05-01 17:44:03Z bde $ 27128799Sbde */ 28128799Sbde 29128799Sbdetypedef u_char volatile *cy_addr; 30128799Sbde 31128799Sbdeextern devclass_t cy_devclass; 32128799Sbdeextern char cy_driver_name[]; 33128799Sbde 34128799Sbdevoid *cyattach_common(cy_addr cy_iobase, int cy_align); 35128799Sbdedriver_intr_t cyintr; 36128799Sbdeint cy_units(cy_addr cy_iobase, int cy_align); 37