1*3ec638c9Svisa /* $OpenBSD: ogxvar.h,v 1.1 2019/11/04 14:58:40 visa Exp $ */ 2*3ec638c9Svisa 3*3ec638c9Svisa /* 4*3ec638c9Svisa * Copyright (c) 2019 Visa Hankala 5*3ec638c9Svisa * 6*3ec638c9Svisa * Permission to use, copy, modify, and/or distribute this software for any 7*3ec638c9Svisa * purpose with or without fee is hereby granted, provided that the above 8*3ec638c9Svisa * copyright notice and this permission notice appear in all copies. 9*3ec638c9Svisa * 10*3ec638c9Svisa * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 11*3ec638c9Svisa * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 12*3ec638c9Svisa * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 13*3ec638c9Svisa * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 14*3ec638c9Svisa * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 15*3ec638c9Svisa * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16*3ec638c9Svisa * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17*3ec638c9Svisa */ 18*3ec638c9Svisa 19*3ec638c9Svisa #ifndef _OGXVAR_H_ 20*3ec638c9Svisa #define _OGXVAR_H_ 21*3ec638c9Svisa 22*3ec638c9Svisa struct fpa3pool { 23*3ec638c9Svisa uint32_t nodeid; 24*3ec638c9Svisa uint32_t poolid; 25*3ec638c9Svisa bus_dmamap_t dmap; 26*3ec638c9Svisa bus_dma_segment_t dmaseg; 27*3ec638c9Svisa caddr_t kva; 28*3ec638c9Svisa }; 29*3ec638c9Svisa 30*3ec638c9Svisa struct fpa3aura { 31*3ec638c9Svisa uint32_t nodeid; 32*3ec638c9Svisa uint32_t poolid; 33*3ec638c9Svisa uint32_t auraid; 34*3ec638c9Svisa bus_dmamap_t dmap; 35*3ec638c9Svisa bus_dma_segment_t dmaseg; 36*3ec638c9Svisa }; 37*3ec638c9Svisa 38*3ec638c9Svisa struct ogx_attach_args { 39*3ec638c9Svisa int oaa_node; 40*3ec638c9Svisa int oaa_bgxid; 41*3ec638c9Svisa bus_space_tag_t oaa_iot; 42*3ec638c9Svisa bus_space_handle_t oaa_ioh; 43*3ec638c9Svisa bus_dma_tag_t oaa_dmat; 44*3ec638c9Svisa }; 45*3ec638c9Svisa 46*3ec638c9Svisa #define BGX_NCAM 32 47*3ec638c9Svisa #define BGX_NLMAC 4 48*3ec638c9Svisa #define OGX_NCAM (BGX_NCAM / BGX_NLMAC) 49*3ec638c9Svisa 50*3ec638c9Svisa #endif /* !_OGXVAR_H_ */ 51