1 /******************************************************************************
2  *
3  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
4  * Use is subject to license terms.
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation;
9  * version 2.1 of the License.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; If not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #include "xc_private.h"
21 
22 #include <malloc.h>
23 
24 /* Optionally flush file to disk and discard page cache */
discard_file_cache(xc_interface * xch,int fd,int flush)25 void discard_file_cache(xc_interface *xch, int fd, int flush)
26 {
27     // TODO: Implement for Solaris!
28 }
29 
xc_memalign(xc_interface * xch,size_t alignment,size_t size)30 void *xc_memalign(xc_interface *xch, size_t alignment, size_t size)
31 {
32     return memalign(alignment, size);
33 }
34 
xc_pcidev_get_gsi(xc_interface * xch,uint32_t sbdf)35 int xc_pcidev_get_gsi(xc_interface *xch, uint32_t sbdf)
36 {
37     errno = ENOSYS;
38     return -1;
39 }
40 
41 /*
42  * Local variables:
43  * mode: C
44  * c-file-style: "BSD"
45  * c-basic-offset: 4
46  * tab-width: 4
47  * indent-tabs-mode: nil
48  * End:
49  */
50