i386_set_ioperm.c (111010) | i386_set_ioperm.c (124296) |
---|---|
1/*- 2 * Copyright (c) 1998 Jonathan Lemon 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1998 Jonathan Lemon 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/lib/libc/i386/sys/i386_set_ioperm.c 111010 2003-02-16 17:29:11Z nectar $"); | 28__FBSDID("$FreeBSD: head/lib/libc/i386/sys/i386_set_ioperm.c 124296 2004-01-09 16:52:09Z nectar $"); |
29 30#include <machine/sysarch.h> 31 | 29 30#include <machine/sysarch.h> 31 |
32extern int sysarch(int op, char *parms); 33 | |
34int 35i386_set_ioperm(unsigned int start, unsigned int length, int enable) 36{ 37 struct i386_ioperm_args p; 38 39 p.start = start; 40 p.length = length; 41 p.enable = enable; 42 | 32int 33i386_set_ioperm(unsigned int start, unsigned int length, int enable) 34{ 35 struct i386_ioperm_args p; 36 37 p.start = start; 38 p.length = length; 39 p.enable = enable; 40 |
43 return (sysarch(I386_SET_IOPERM, (char *)&p)); | 41 return (sysarch(I386_SET_IOPERM, &p)); |
44} | 42} |