dpms.c (197444) | dpms.c (197466) |
---|---|
1/*- 2 * Copyright (c) 2008 Yahoo!, Inc. 3 * All rights reserved. 4 * Written by: John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 45 unchanged lines hidden (view full) --- 54 * SUCH DAMAGE. 55 */ 56 57/* 58 * Support for managing the display via DPMS for suspend/resume. 59 */ 60 61#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2008 Yahoo!, Inc. 3 * All rights reserved. 4 * Written by: John Baldwin <jhb@FreeBSD.org> 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 45 unchanged lines hidden (view full) --- 54 * SUCH DAMAGE. 55 */ 56 57/* 58 * Support for managing the display via DPMS for suspend/resume. 59 */ 60 61#include <sys/cdefs.h> |
62__FBSDID("$FreeBSD: head/sys/dev/dpms/dpms.c 197444 2009-09-23 20:49:14Z jkim $"); | 62__FBSDID("$FreeBSD: head/sys/dev/dpms/dpms.c 197466 2009-09-24 19:24:42Z jkim $"); |
63 64#include <sys/param.h> 65#include <sys/bus.h> 66#include <sys/kernel.h> 67#include <sys/libkern.h> 68#include <sys/module.h> 69 70#include <compat/x86bios/x86bios.h> --- 121 unchanged lines hidden (view full) --- 192{ 193 x86regs_t regs; 194 195 regs.R_AX = VBE_DPMS_FUNCTION; 196 regs.R_BL = subfunction; 197 regs.R_BH = *bh; 198 regs.R_ES = 0; 199 regs.R_DI = 0; | 63 64#include <sys/param.h> 65#include <sys/bus.h> 66#include <sys/kernel.h> 67#include <sys/libkern.h> 68#include <sys/module.h> 69 70#include <compat/x86bios/x86bios.h> --- 121 unchanged lines hidden (view full) --- 192{ 193 x86regs_t regs; 194 195 regs.R_AX = VBE_DPMS_FUNCTION; 196 regs.R_BL = subfunction; 197 regs.R_BH = *bh; 198 regs.R_ES = 0; 199 regs.R_DI = 0; |
200 x86biosCall(®s, 0x10); | 200 x86bios_intr(®s, 0x10); |
201 202 if ((regs.R_EAX & 0xffff) != 0x004f) 203 return (ENXIO); 204 205 *bh = regs.R_BH; 206 207 return (0); 208} --- 23 unchanged lines hidden --- | 201 202 if ((regs.R_EAX & 0xffff) != 0x004f) 203 return (ENXIO); 204 205 *bh = regs.R_BH; 206 207 return (0); 208} --- 23 unchanged lines hidden --- |