biospnp.c (103870) | biospnp.c (118607) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * | 1/*- 2 * Copyright (c) 1998 Michael Smith <msmith@freebsd.org> 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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 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 * $FreeBSD: head/sys/boot/i386/libi386/biospnp.c 103870 2002-09-23 18:54:32Z alfred $ | 26 * $FreeBSD: head/sys/boot/i386/libi386/biospnp.c 118607 2003-08-07 15:04:27Z jhb $ |
27 */ 28 29/* 30 * PnP BIOS enumerator. 31 */ 32 33#include <stand.h> 34#include <machine/stdarg.h> --- 223 unchanged lines hidden (view full) --- 258 argp += sizeof(u_int16_t); 259 260 /* take args according to format */ 261 va_start(ap, fmt); 262 for (p = fmt; *p != 0; p++) { 263 switch(*p) { 264 265 case 'w': | 27 */ 28 29/* 30 * PnP BIOS enumerator. 31 */ 32 33#include <stand.h> 34#include <machine/stdarg.h> --- 223 unchanged lines hidden (view full) --- 258 argp += sizeof(u_int16_t); 259 260 /* take args according to format */ 261 va_start(ap, fmt); 262 for (p = fmt; *p != 0; p++) { 263 switch(*p) { 264 265 case 'w': |
266 i = va_arg(ap, uint); | 266 i = va_arg(ap, u_int); |
267 *(u_int16_t *)argp = i; 268 argp += sizeof(u_int16_t); 269 break; 270 271 case 'l': 272 i = va_arg(ap, u_int32_t); 273 *(u_int32_t *)argp = i; 274 argp += sizeof(u_int32_t); --- 16 unchanged lines hidden --- | 267 *(u_int16_t *)argp = i; 268 argp += sizeof(u_int16_t); 269 break; 270 271 case 'l': 272 i = va_arg(ap, u_int32_t); 273 *(u_int32_t *)argp = i; 274 argp += sizeof(u_int32_t); --- 16 unchanged lines hidden --- |