Date: Mon, 21 Sep 2009 08:53:26 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r197387 - in head/sys/dev: fb x86bios Message-ID: <200909210853.n8L8rQE4081866@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Mon Sep 21 08:53:26 2009 New Revision: 197387 URL: http://svn.freebsd.org/changeset/base/197387 Log: Style(9) fixes. Submitted by: swell.k at gmail.com Modified: head/sys/dev/fb/vesa.c head/sys/dev/x86bios/x86bios.c head/sys/dev/x86bios/x86bios_alloc.c Modified: head/sys/dev/fb/vesa.c ============================================================================== --- head/sys/dev/fb/vesa.c Mon Sep 21 08:37:57 2009 (r197386) +++ head/sys/dev/fb/vesa.c Mon Sep 21 08:53:26 2009 (r197387) @@ -461,7 +461,7 @@ vesa_bios_state_buf_size(void) if ((regs.R_AX & 0xff) != 0x4f) return 0; - return regs.R_BX*64; + return regs.R_BX * 64; } static int @@ -698,7 +698,7 @@ vesa_bios_init(void) vesa_revstr = (char *)x86biosOffs(FARP(vesa_adp_info->v_revstr)); } - vesa_vmodetab = (u_int16_t *)x86biosOffs(FARP(vesa_adp_info->v_modetable)); + vesa_vmodetab = (uint16_t *)x86biosOffs(FARP(vesa_adp_info->v_modetable)); if (vesa_vmodetab == NULL) return 1; @@ -783,7 +783,7 @@ vesa_bios_init(void) - vmode.v_lfb; else vesa_vmode[modes].vi_buffer_size - = vmode.v_offscreen + vmode.v_offscreensize*1024; + = vmode.v_offscreen + vmode.v_offscreensize * 1024; #endif vesa_vmode[modes].vi_mem_model = vesa_translate_mmodel(vmode.v_memmodel); @@ -1269,7 +1269,7 @@ vesa_get_origin(video_adapter_t *adp, of if ((regs.R_AX & 0xff) != 0x4f) return 1; - *offset = regs.DX*adp->va_window_gran; + *offset = regs.DX * adp->va_window_gran; return 0; } @@ -1298,7 +1298,7 @@ vesa_set_origin(video_adapter_t *adp, of regs.R_EAX = 0x4f05; regs.R_EBX = 0; - regs.R_EDX = offset/adp->va_window_gran; + regs.R_EDX = offset / adp->va_window_gran; x86biosCall(®s, 0x10); if ((regs.R_AX & 0xff) != 0x4f) @@ -1306,7 +1306,7 @@ vesa_set_origin(video_adapter_t *adp, of regs.R_EAX = 0x4f05; regs.R_EBX = 1; - regs.R_EDX = offset/adp->va_window_gran; + regs.R_EDX = offset / adp->va_window_gran; x86biosCall(®s, 0x10); adp->va_window_orig = (offset/adp->va_window_gran)*adp->va_window_gran; Modified: head/sys/dev/x86bios/x86bios.c ============================================================================== --- head/sys/dev/x86bios/x86bios.c Mon Sep 21 08:37:57 2009 (r197386) +++ head/sys/dev/x86bios/x86bios.c Mon Sep 21 08:53:26 2009 (r197387) @@ -27,8 +27,8 @@ __FBSDID("$FreeBSD$"); #include <contrib/x86emu/x86emu_regs.h> #include <dev/x86bios/x86bios.h> -unsigned char *pbiosMem = NULL; -static unsigned char *pbiosStack = NULL; +u_char *pbiosMem = NULL; +static u_char *pbiosStack = NULL; int busySegMap[5]; Modified: head/sys/dev/x86bios/x86bios_alloc.c ============================================================================== --- head/sys/dev/x86bios/x86bios_alloc.c Mon Sep 21 08:37:57 2009 (r197386) +++ head/sys/dev/x86bios/x86bios_alloc.c Mon Sep 21 08:53:26 2009 (r197387) @@ -29,7 +29,7 @@ __FBSDID("$FreeBSD$"); #include <dev/x86bios/x86bios.h> -extern unsigned char *pbiosMem; +extern u_char *pbiosMem; extern int busySegMap[5]; void * @@ -74,7 +74,7 @@ x86biosFree(void *pbuf, int count) int i; int busySeg; - busySeg = ((unsigned char *)pbuf - (unsigned char *)pbiosMem)/4096; + busySeg = ((u_char *)pbuf - pbiosMem) / 4096; for (i = busySeg; i < (busySeg + count); i++) busySegMap[i] = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909210853.n8L8rQE4081866>