FreeBSD Bugzilla – Attachment 8736 Details for
Bug 18162
APM: Add flag to disable timer-based BIOS requests [PATCH]
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.03 KB, created by
Allan Saddi
on 2000-04-22 18:50:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Allan Saddi
Created:
2000-04-22 18:50:02 UTC
Size:
1.03 KB
patch
obsolete
>--- sys/i386/apm/apm.c.orig Sun Feb 6 06:57:05 2000 >+++ sys/i386/apm/apm.c Sat Apr 22 04:17:55 2000 >@@ -219,6 +219,19 @@ > return (apm_bioscall()); > } > >+/* enable/disable timer-based standby/suspend requests (APM 1.2 or later) */ >+static int >+apm_enable_disable_timer_req(int enable) >+{ >+ struct apm_softc *sc = &apm_softc; >+ >+ sc->bios.r.eax = (APM_BIOS << 8) | APM_TIMERREQUESTS; >+ sc->bios.r.ebx = PMDV_APMBIOS; >+ sc->bios.r.ecx = enable; >+ sc->bios.r.edx = 0; >+ return (apm_bioscall()); >+} >+ > /* get PM event */ > static u_int > apm_getevent(void) >@@ -1072,6 +1085,16 @@ > printf("apm: *Warning* engage function failed err=[%x]", > (sc->bios.r.eax >> 8) & 0xff); > printf(" (Docked or using external power?).\n"); >+#endif >+ } >+ } >+ >+ /* disable timer requests, if flag 0x40 is set (APM 1.2 or later) */ >+ if (sc->intversion >= INTVERSION(1, 2) && (flags & 0x40)) { >+ if (apm_enable_disable_timer_req(0)) { >+#ifdef APM_DEBUG >+ printf("apm: *Warning* timer request function failed! [%x]\n", >+ (sc->bios.r.eax >> 8) & 0xff); > #endif > } > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18162
: 8736