mptbl.h revision 242131
1242131Sgrehan/*- 2242131Sgrehan * Copyright (c) 2012 NetApp, Inc. 3242131Sgrehan * All rights reserved. 4242131Sgrehan * 5242131Sgrehan * Redistribution and use in source and binary forms, with or without 6242131Sgrehan * modification, are permitted provided that the following conditions 7242131Sgrehan * are met: 8242131Sgrehan * 1. Redistributions of source code must retain the above copyright 9242131Sgrehan * notice, this list of conditions and the following disclaimer. 10242131Sgrehan * 2. Redistributions in binary form must reproduce the above copyright 11242131Sgrehan * notice, this list of conditions and the following disclaimer in the 12242131Sgrehan * documentation and/or other materials provided with the distribution. 13242131Sgrehan * 14242131Sgrehan * THIS SOFTWARE IS PROVIDED BY NETAPP, INC ``AS IS'' AND 15242131Sgrehan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16242131Sgrehan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17242131Sgrehan * ARE DISCLAIMED. IN NO EVENT SHALL NETAPP, INC OR CONTRIBUTORS BE LIABLE 18242131Sgrehan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19242131Sgrehan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20242131Sgrehan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21242131Sgrehan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22242131Sgrehan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23242131Sgrehan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24242131Sgrehan * SUCH DAMAGE. 25242131Sgrehan * 26242131Sgrehan * $FreeBSD: projects/bhyve/usr.sbin/bhyve/mptbl.h 242131 2012-10-26 13:40:12Z grehan $ 27242131Sgrehan */ 28242131Sgrehan 29242131Sgrehan#ifndef _MPTBL_H_ 30242131Sgrehan#define _MPTBL_H_ 31242131Sgrehan 32242131Sgrehanint mptable_build(struct vmctx *ctx, int ncpu, int ioapic); 33242131Sgrehanvoid mptable_add_oemtbl(void *tbl, int tblsz); 34242131Sgrehan 35242131Sgrehan#endif /* _MPTBL_H_ */ 36