xref: /freebsd/sys/dev/xen/xenpci/xenpcivar.h (revision 95ee2897)
1718cf2ccSPedro F. Giffuni /*-
24d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
412678024SDoug Rabson  * Copyright (c) 2008 Citrix Systems, Inc.
512678024SDoug Rabson  * All rights reserved.
612678024SDoug Rabson  *
712678024SDoug Rabson  * Redistribution and use in source and binary forms, with or without
812678024SDoug Rabson  * modification, are permitted provided that the following conditions
912678024SDoug Rabson  * are met:
1012678024SDoug Rabson  * 1. Redistributions of source code must retain the above copyright
1112678024SDoug Rabson  *    notice, this list of conditions and the following disclaimer.
1212678024SDoug Rabson  * 2. Redistributions in binary form must reproduce the above copyright
1312678024SDoug Rabson  *    notice, this list of conditions and the following disclaimer in the
1412678024SDoug Rabson  *    documentation and/or other materials provided with the distribution.
1512678024SDoug Rabson  *
1612678024SDoug Rabson  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS AS IS'' AND
1712678024SDoug Rabson  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1812678024SDoug Rabson  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1912678024SDoug Rabson  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2012678024SDoug Rabson  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2112678024SDoug Rabson  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2212678024SDoug Rabson  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2312678024SDoug Rabson  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2412678024SDoug Rabson  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2512678024SDoug Rabson  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2612678024SDoug Rabson  * SUCH DAMAGE.
2712678024SDoug Rabson  */
2812678024SDoug Rabson 
2912678024SDoug Rabson /*
3012678024SDoug Rabson  * One of these per allocated device.
3112678024SDoug Rabson  */
3212678024SDoug Rabson struct xenpci_softc {
3312678024SDoug Rabson 	int rid_ioport;
3412678024SDoug Rabson 	int rid_irq;
3512678024SDoug Rabson 	struct resource* res_irq;	/* Resource for irq range. */
3612678024SDoug Rabson 	void	*intr_cookie;
3712678024SDoug Rabson };
38