1 /* $NetBSD: cbusvar.h,v 1.1 2016/06/22 20:13:51 palle Exp $ */ 2 /* $OpenBSD: cbusvar.h,v 1.5 2015/01/25 21:42:13 kettenis Exp $ */ 3 /* 4 * Copyright (c) 2008 Mark Kettenis 5 * 6 * Permission to use, copy, modify, and distribute this software for any 7 * purpose with or without fee is hereby granted, provided that the above 8 * copyright notice and this permission notice appear in all copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 */ 18 19 #ifndef _SPARC64_DEV_CBUSVAR_H_ 20 #define _SPARC64_DEV_CBUSVAR_H_ 21 22 struct cbus_attach_args { 23 const char *ca_name; 24 int ca_node; 25 int ca_idx; 26 27 bus_space_tag_t ca_bustag; 28 bus_dma_tag_t ca_dmatag; 29 30 uint32_t *ca_reg; 31 int ca_nreg; 32 33 u_int64_t ca_id; 34 u_int64_t ca_tx_ino; 35 u_int64_t ca_rx_ino; 36 }; 37 38 int cbus_print(void *, const char *); 39 int cbus_intr_setstate(bus_space_tag_t, uint64_t, uint64_t); 40 int cbus_intr_setenabled(bus_space_tag_t, uint64_t, uint64_t); 41 42 #endif 43