2001-07-20 06:07:34 +00:00
|
|
|
/*-
|
|
|
|
* Copyright (c) 2001 Takanori Watanabe <takawata@jp.freebsd.org>
|
|
|
|
* Copyright (c) 2001 Mitsuru IWASAKI <iwasaki@jp.freebsd.org>
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
|
|
|
* Redistribution and use in source and binary forms, with or without
|
|
|
|
* modification, are permitted provided that the following conditions
|
|
|
|
* are met:
|
|
|
|
* 1. Redistributions of source code must retain the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer.
|
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
* notice, this list of conditions and the following disclaimer in the
|
|
|
|
* documentation and/or other materials provided with the distribution.
|
|
|
|
*
|
|
|
|
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
|
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
|
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
|
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
|
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
|
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
|
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
|
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
|
|
* SUCH DAMAGE.
|
|
|
|
*/
|
|
|
|
|
2003-06-02 06:16:45 +00:00
|
|
|
#include <sys/cdefs.h>
|
|
|
|
__FBSDID("$FreeBSD$");
|
|
|
|
|
2001-07-20 06:07:34 +00:00
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/kernel.h>
|
|
|
|
#include <sys/bus.h>
|
|
|
|
#include <sys/lock.h>
|
|
|
|
#include <sys/proc.h>
|
|
|
|
#include <sys/sysctl.h>
|
|
|
|
|
|
|
|
#include <vm/vm.h>
|
|
|
|
#include <vm/pmap.h>
|
2001-11-11 15:51:30 +00:00
|
|
|
#include <vm/vm_object.h>
|
2001-07-20 06:07:34 +00:00
|
|
|
#include <vm/vm_page.h>
|
|
|
|
#include <vm/vm_map.h>
|
|
|
|
|
|
|
|
#include <machine/bus.h>
|
|
|
|
#include <machine/cpufunc.h>
|
2003-11-03 22:18:57 +00:00
|
|
|
#include <machine/intr_machdep.h>
|
2001-07-20 06:07:34 +00:00
|
|
|
#include <machine/segments.h>
|
|
|
|
|
2009-06-05 18:44:36 +00:00
|
|
|
#include <contrib/dev/acpica/include/acpi.h>
|
|
|
|
|
2001-07-20 06:07:34 +00:00
|
|
|
#include <dev/acpica/acpivar.h>
|
|
|
|
|
|
|
|
#include "acpi_wakecode.h"
|
|
|
|
|
2006-06-10 08:20:17 +00:00
|
|
|
/* Make sure the code is less than one page and leave room for the stack. */
|
|
|
|
CTASSERT(sizeof(wakecode) < PAGE_SIZE - 1024);
|
|
|
|
|
2005-03-02 21:33:29 +00:00
|
|
|
#ifndef _SYS_CDEFS_H_
|
|
|
|
#error this file needs sys/cdefs.h as a prerequisite
|
|
|
|
#endif
|
|
|
|
|
2006-06-08 17:54:10 +00:00
|
|
|
extern uint32_t acpi_resume_beep;
|
2003-11-01 00:18:29 +00:00
|
|
|
extern uint32_t acpi_reset_video;
|
|
|
|
extern void initializecpu(void);
|
2001-07-20 06:07:34 +00:00
|
|
|
|
2009-02-18 22:44:55 +00:00
|
|
|
static struct region_descriptor __used saved_idt, saved_gdt;
|
|
|
|
static struct region_descriptor *p_gdt;
|
|
|
|
static uint16_t __used saved_ldt;
|
2001-07-20 06:07:34 +00:00
|
|
|
|
2009-02-18 22:44:55 +00:00
|
|
|
static uint32_t __used r_eax, r_ebx, r_ecx, r_edx, r_ebp, r_esi, r_edi,
|
2001-07-20 06:07:34 +00:00
|
|
|
r_efl, r_cr0, r_cr2, r_cr3, r_cr4, ret_addr;
|
|
|
|
|
2009-02-18 22:44:55 +00:00
|
|
|
static uint16_t __used r_cs, r_ds, r_es, r_fs, r_gs, r_ss, r_tr;
|
|
|
|
static uint32_t __used r_esp;
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
static void acpi_printcpu(void);
|
|
|
|
static void acpi_realmodeinst(void *arg, bus_dma_segment_t *segs,
|
|
|
|
int nsegs, int error);
|
|
|
|
static void acpi_alloc_wakeup_handler(void);
|
|
|
|
|
|
|
|
/* XXX shut gcc up */
|
|
|
|
extern int acpi_savecpu(void);
|
|
|
|
extern int acpi_restorecpu(void);
|
|
|
|
|
2005-03-02 21:33:29 +00:00
|
|
|
#ifdef __GNUCLIKE_ASM
|
2002-05-19 06:42:29 +00:00
|
|
|
__asm__(" \n\
|
|
|
|
.text \n\
|
|
|
|
.p2align 2, 0x90 \n\
|
|
|
|
.type acpi_restorecpu, @function\n\
|
|
|
|
acpi_restorecpu: \n\
|
|
|
|
.align 4 \n\
|
|
|
|
movl r_eax,%eax \n\
|
|
|
|
movl r_ebx,%ebx \n\
|
|
|
|
movl r_ecx,%ecx \n\
|
|
|
|
movl r_edx,%edx \n\
|
|
|
|
movl r_ebp,%ebp \n\
|
|
|
|
movl r_esi,%esi \n\
|
|
|
|
movl r_edi,%edi \n\
|
|
|
|
movl r_esp,%esp \n\
|
|
|
|
\n\
|
|
|
|
pushl r_efl \n\
|
|
|
|
popfl \n\
|
|
|
|
\n\
|
2002-08-07 12:48:28 +00:00
|
|
|
movl ret_addr,%eax \n\
|
|
|
|
movl %eax,(%esp) \n\
|
2002-05-19 06:42:29 +00:00
|
|
|
xorl %eax,%eax \n\
|
|
|
|
ret \n\
|
|
|
|
\n\
|
|
|
|
.text \n\
|
|
|
|
.p2align 2, 0x90 \n\
|
|
|
|
.type acpi_savecpu, @function \n\
|
|
|
|
acpi_savecpu: \n\
|
|
|
|
movw %cs,r_cs \n\
|
|
|
|
movw %ds,r_ds \n\
|
|
|
|
movw %es,r_es \n\
|
|
|
|
movw %fs,r_fs \n\
|
|
|
|
movw %gs,r_gs \n\
|
|
|
|
movw %ss,r_ss \n\
|
|
|
|
\n\
|
|
|
|
movl %eax,r_eax \n\
|
|
|
|
movl %ebx,r_ebx \n\
|
|
|
|
movl %ecx,r_ecx \n\
|
|
|
|
movl %edx,r_edx \n\
|
|
|
|
movl %ebp,r_ebp \n\
|
|
|
|
movl %esi,r_esi \n\
|
|
|
|
movl %edi,r_edi \n\
|
|
|
|
\n\
|
|
|
|
movl %cr0,%eax \n\
|
|
|
|
movl %eax,r_cr0 \n\
|
|
|
|
movl %cr2,%eax \n\
|
|
|
|
movl %eax,r_cr2 \n\
|
|
|
|
movl %cr3,%eax \n\
|
|
|
|
movl %eax,r_cr3 \n\
|
|
|
|
movl %cr4,%eax \n\
|
|
|
|
movl %eax,r_cr4 \n\
|
|
|
|
\n\
|
|
|
|
pushfl \n\
|
|
|
|
popl r_efl \n\
|
|
|
|
\n\
|
|
|
|
movl %esp,r_esp \n\
|
|
|
|
\n\
|
2005-08-18 00:28:25 +00:00
|
|
|
sgdt saved_gdt \n\
|
|
|
|
sidt saved_idt \n\
|
|
|
|
sldt saved_ldt \n\
|
2002-05-19 06:42:29 +00:00
|
|
|
str r_tr \n\
|
|
|
|
\n\
|
|
|
|
movl (%esp),%eax \n\
|
|
|
|
movl %eax,ret_addr \n\
|
|
|
|
movl $1,%eax \n\
|
|
|
|
ret \n\
|
2001-07-20 06:07:34 +00:00
|
|
|
");
|
2005-03-02 21:33:29 +00:00
|
|
|
#endif /* __GNUCLIKE_ASM */
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
acpi_printcpu(void)
|
|
|
|
{
|
|
|
|
printf("======== acpi_printcpu() debug dump ========\n");
|
|
|
|
printf("gdt[%04x:%08x] idt[%04x:%08x] ldt[%04x] tr[%04x] efl[%08x]\n",
|
2005-08-18 00:28:25 +00:00
|
|
|
saved_gdt.rd_limit, saved_gdt.rd_base,
|
|
|
|
saved_idt.rd_limit, saved_idt.rd_base,
|
|
|
|
saved_ldt, r_tr, r_efl);
|
2001-07-20 06:07:34 +00:00
|
|
|
printf("eax[%08x] ebx[%08x] ecx[%08x] edx[%08x]\n",
|
|
|
|
r_eax, r_ebx, r_ecx, r_edx);
|
|
|
|
printf("esi[%08x] edi[%08x] ebp[%08x] esp[%08x]\n",
|
|
|
|
r_esi, r_edi, r_ebp, r_esp);
|
|
|
|
printf("cr0[%08x] cr2[%08x] cr3[%08x] cr4[%08x]\n",
|
|
|
|
r_cr0, r_cr2, r_cr3, r_cr4);
|
|
|
|
printf("cs[%04x] ds[%04x] es[%04x] fs[%04x] gs[%04x] ss[%04x]\n",
|
|
|
|
r_cs, r_ds, r_es, r_fs, r_gs, r_ss);
|
|
|
|
}
|
|
|
|
|
2001-11-11 15:51:30 +00:00
|
|
|
#define WAKECODE_FIXUP(offset, type, val) do { \
|
2004-07-28 06:32:28 +00:00
|
|
|
type *addr; \
|
|
|
|
addr = (type *)(sc->acpi_wakeaddr + offset); \
|
|
|
|
*addr = val; \
|
2001-11-11 15:51:30 +00:00
|
|
|
} while (0)
|
|
|
|
|
|
|
|
#define WAKECODE_BCOPY(offset, type, val) do { \
|
2004-07-28 06:32:28 +00:00
|
|
|
void *addr; \
|
|
|
|
addr = (void *)(sc->acpi_wakeaddr + offset); \
|
2001-11-11 15:51:30 +00:00
|
|
|
bcopy(&(val), addr, sizeof(type)); \
|
|
|
|
} while (0)
|
|
|
|
|
2006-08-08 01:30:54 +00:00
|
|
|
/* Turn off bits 1&2 of the PIT, stopping the beep. */
|
|
|
|
static void
|
|
|
|
acpi_stop_beep(void *arg)
|
|
|
|
{
|
|
|
|
outb(0x61, inb(0x61) & ~0x3);
|
|
|
|
}
|
|
|
|
|
2001-07-20 06:07:34 +00:00
|
|
|
int
|
|
|
|
acpi_sleep_machdep(struct acpi_softc *sc, int state)
|
|
|
|
{
|
|
|
|
ACPI_STATUS status;
|
|
|
|
struct pmap *pm;
|
2004-08-05 06:29:12 +00:00
|
|
|
int ret;
|
2004-05-05 19:51:15 +00:00
|
|
|
uint32_t cr3;
|
2001-07-20 06:07:34 +00:00
|
|
|
u_long ef;
|
|
|
|
|
2004-08-05 06:29:12 +00:00
|
|
|
ret = 0;
|
2003-08-28 16:26:24 +00:00
|
|
|
if (sc->acpi_wakeaddr == 0)
|
2001-07-20 06:07:34 +00:00
|
|
|
return (0);
|
|
|
|
|
|
|
|
AcpiSetFirmwareWakingVector(sc->acpi_wakephys);
|
|
|
|
|
|
|
|
ef = read_eflags();
|
|
|
|
|
2007-03-14 22:30:02 +00:00
|
|
|
/*
|
|
|
|
* Temporarily switch to the kernel pmap because it provides an
|
|
|
|
* identity mapping (setup at boot) for the low physical memory
|
|
|
|
* region containing the wakeup code.
|
|
|
|
*/
|
|
|
|
pm = kernel_pmap;
|
2003-07-21 20:59:27 +00:00
|
|
|
cr3 = rcr3();
|
|
|
|
#ifdef PAE
|
|
|
|
load_cr3(vtophys(pm->pm_pdpt));
|
|
|
|
#else
|
|
|
|
load_cr3(vtophys(pm->pm_pdir));
|
|
|
|
#endif
|
2001-11-11 15:51:30 +00:00
|
|
|
|
2001-07-20 06:07:34 +00:00
|
|
|
ret_addr = 0;
|
2004-08-19 18:48:17 +00:00
|
|
|
ACPI_DISABLE_IRQS();
|
2001-07-20 06:07:34 +00:00
|
|
|
if (acpi_savecpu()) {
|
|
|
|
/* Execute Sleep */
|
2003-11-03 22:18:57 +00:00
|
|
|
intr_suspend();
|
|
|
|
|
2003-08-28 16:26:24 +00:00
|
|
|
p_gdt = (struct region_descriptor *)
|
|
|
|
(sc->acpi_wakeaddr + physical_gdt);
|
2005-08-18 00:28:25 +00:00
|
|
|
p_gdt->rd_limit = saved_gdt.rd_limit;
|
|
|
|
p_gdt->rd_base = vtophys(saved_gdt.rd_base);
|
2001-11-11 15:51:30 +00:00
|
|
|
|
2004-05-05 19:51:15 +00:00
|
|
|
WAKECODE_FIXUP(physical_esp, uint32_t, vtophys(r_esp));
|
|
|
|
WAKECODE_FIXUP(previous_cr0, uint32_t, r_cr0);
|
|
|
|
WAKECODE_FIXUP(previous_cr2, uint32_t, r_cr2);
|
|
|
|
WAKECODE_FIXUP(previous_cr3, uint32_t, r_cr3);
|
|
|
|
WAKECODE_FIXUP(previous_cr4, uint32_t, r_cr4);
|
2001-11-11 15:51:30 +00:00
|
|
|
|
2006-06-08 17:54:10 +00:00
|
|
|
WAKECODE_FIXUP(resume_beep, uint32_t, acpi_resume_beep);
|
2003-11-01 00:18:29 +00:00
|
|
|
WAKECODE_FIXUP(reset_video, uint32_t, acpi_reset_video);
|
2003-10-30 16:14:55 +00:00
|
|
|
|
2004-05-05 19:51:15 +00:00
|
|
|
WAKECODE_FIXUP(previous_tr, uint16_t, r_tr);
|
2005-08-18 00:28:25 +00:00
|
|
|
WAKECODE_BCOPY(previous_gdt, struct region_descriptor, saved_gdt);
|
|
|
|
WAKECODE_FIXUP(previous_ldt, uint16_t, saved_ldt);
|
|
|
|
WAKECODE_BCOPY(previous_idt, struct region_descriptor, saved_idt);
|
2001-11-11 15:51:30 +00:00
|
|
|
|
2004-07-28 06:32:28 +00:00
|
|
|
WAKECODE_FIXUP(where_to_recover, void *, acpi_restorecpu);
|
2001-11-11 15:51:30 +00:00
|
|
|
|
2004-05-05 19:51:15 +00:00
|
|
|
WAKECODE_FIXUP(previous_ds, uint16_t, r_ds);
|
|
|
|
WAKECODE_FIXUP(previous_es, uint16_t, r_es);
|
|
|
|
WAKECODE_FIXUP(previous_fs, uint16_t, r_fs);
|
|
|
|
WAKECODE_FIXUP(previous_gs, uint16_t, r_gs);
|
|
|
|
WAKECODE_FIXUP(previous_ss, uint16_t, r_ss);
|
2001-07-20 06:07:34 +00:00
|
|
|
|
2004-05-05 19:51:15 +00:00
|
|
|
if (bootverbose)
|
2001-07-20 06:07:34 +00:00
|
|
|
acpi_printcpu();
|
|
|
|
|
2003-08-29 04:02:19 +00:00
|
|
|
/* Call ACPICA to enter the desired sleep state */
|
2003-08-28 16:26:24 +00:00
|
|
|
if (state == ACPI_STATE_S4 && sc->acpi_s4bios)
|
2003-08-29 04:02:19 +00:00
|
|
|
status = AcpiEnterSleepStateS4bios();
|
2003-08-28 16:26:24 +00:00
|
|
|
else
|
2001-11-06 15:00:30 +00:00
|
|
|
status = AcpiEnterSleepState(state);
|
|
|
|
|
|
|
|
if (status != AE_OK) {
|
2001-07-20 06:07:34 +00:00
|
|
|
device_printf(sc->acpi_dev,
|
|
|
|
"AcpiEnterSleepState failed - %s\n",
|
2001-07-21 10:24:37 +00:00
|
|
|
AcpiFormatException(status));
|
2001-07-20 06:07:34 +00:00
|
|
|
ret = -1;
|
|
|
|
goto out;
|
|
|
|
}
|
|
|
|
|
|
|
|
for (;;) ;
|
|
|
|
} else {
|
|
|
|
/* Execute Wakeup */
|
2003-11-03 22:18:57 +00:00
|
|
|
intr_resume();
|
2001-07-20 06:07:34 +00:00
|
|
|
|
2004-05-05 19:51:15 +00:00
|
|
|
if (bootverbose) {
|
2001-07-20 06:07:34 +00:00
|
|
|
acpi_savecpu();
|
|
|
|
acpi_printcpu();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
out:
|
2003-07-21 20:59:27 +00:00
|
|
|
load_cr3(cr3);
|
2001-07-20 06:07:34 +00:00
|
|
|
write_eflags(ef);
|
|
|
|
|
2006-08-08 01:30:54 +00:00
|
|
|
/* If we beeped, turn it off after a delay. */
|
|
|
|
if (acpi_resume_beep)
|
|
|
|
timeout(acpi_stop_beep, NULL, 3 * hz);
|
|
|
|
|
2001-07-20 06:07:34 +00:00
|
|
|
return (ret);
|
|
|
|
}
|
|
|
|
|
|
|
|
static bus_dma_tag_t acpi_waketag;
|
|
|
|
static bus_dmamap_t acpi_wakemap;
|
2006-06-10 08:20:17 +00:00
|
|
|
static vm_offset_t acpi_wakeaddr;
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
acpi_alloc_wakeup_handler(void)
|
|
|
|
{
|
2004-07-06 04:56:31 +00:00
|
|
|
void *wakeaddr;
|
|
|
|
|
2002-11-24 02:27:07 +00:00
|
|
|
if (!cold)
|
|
|
|
return;
|
|
|
|
|
2006-06-10 08:20:17 +00:00
|
|
|
/*
|
|
|
|
* Specify the region for our wakeup code. We want it in the low 1 MB
|
|
|
|
* region, excluding video memory and above (0xa0000). We ask for
|
|
|
|
* it to be page-aligned, just to be safe.
|
|
|
|
*/
|
|
|
|
if (bus_dma_tag_create(/*parent*/ NULL,
|
|
|
|
/*alignment*/ PAGE_SIZE, /*no boundary*/ 0,
|
|
|
|
/*lowaddr*/ 0x9ffff, /*highaddr*/ BUS_SPACE_MAXADDR, NULL, NULL,
|
|
|
|
/*maxsize*/ PAGE_SIZE, /*segments*/ 1, /*maxsegsize*/ PAGE_SIZE,
|
|
|
|
0, busdma_lock_mutex, &Giant, &acpi_waketag) != 0) {
|
2003-08-28 16:26:24 +00:00
|
|
|
printf("acpi_alloc_wakeup_handler: can't create wake tag\n");
|
2001-07-20 06:07:34 +00:00
|
|
|
return;
|
|
|
|
}
|
2006-06-10 08:20:17 +00:00
|
|
|
if (bus_dmamem_alloc(acpi_waketag, &wakeaddr, BUS_DMA_NOWAIT,
|
|
|
|
&acpi_wakemap) != 0) {
|
2003-08-28 16:26:24 +00:00
|
|
|
printf("acpi_alloc_wakeup_handler: can't alloc wake memory\n");
|
2001-07-20 06:07:34 +00:00
|
|
|
return;
|
|
|
|
}
|
2004-07-06 04:56:31 +00:00
|
|
|
acpi_wakeaddr = (vm_offset_t)wakeaddr;
|
2001-07-20 06:07:34 +00:00
|
|
|
}
|
|
|
|
|
2008-03-16 10:58:09 +00:00
|
|
|
SYSINIT(acpiwakeup, SI_SUB_KMEM, SI_ORDER_ANY, acpi_alloc_wakeup_handler, 0);
|
2001-07-20 06:07:34 +00:00
|
|
|
|
|
|
|
static void
|
|
|
|
acpi_realmodeinst(void *arg, bus_dma_segment_t *segs, int nsegs, int error)
|
|
|
|
{
|
2006-06-10 08:20:17 +00:00
|
|
|
struct acpi_softc *sc;
|
|
|
|
uint32_t *addr;
|
2001-07-20 06:07:34 +00:00
|
|
|
|
2006-06-10 08:20:17 +00:00
|
|
|
/* Overwrite the ljmp target with the real address */
|
|
|
|
sc = arg;
|
|
|
|
sc->acpi_wakephys = segs[0].ds_addr;
|
2004-05-05 19:51:15 +00:00
|
|
|
addr = (uint32_t *)&wakecode[wakeup_sw32 + 2];
|
2006-06-10 08:20:17 +00:00
|
|
|
*addr = sc->acpi_wakephys + wakeup_32;
|
|
|
|
|
|
|
|
/* Copy the wake code into our low page and save its physical addr. */
|
2001-07-20 06:07:34 +00:00
|
|
|
bcopy(wakecode, (void *)sc->acpi_wakeaddr, sizeof(wakecode));
|
2006-06-10 08:20:17 +00:00
|
|
|
if (bootverbose) {
|
2006-06-16 14:04:21 +00:00
|
|
|
device_printf(sc->acpi_dev, "wakeup code va %#x pa %#jx\n",
|
|
|
|
acpi_wakeaddr, (uintmax_t)sc->acpi_wakephys);
|
2006-06-10 08:20:17 +00:00
|
|
|
}
|
2001-07-20 06:07:34 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
void
|
|
|
|
acpi_install_wakeup_handler(struct acpi_softc *sc)
|
|
|
|
{
|
2003-08-28 16:26:24 +00:00
|
|
|
if (acpi_wakeaddr == 0)
|
2001-07-20 06:07:34 +00:00
|
|
|
return;
|
|
|
|
|
|
|
|
sc->acpi_waketag = acpi_waketag;
|
|
|
|
sc->acpi_wakeaddr = acpi_wakeaddr;
|
|
|
|
sc->acpi_wakemap = acpi_wakemap;
|
|
|
|
|
|
|
|
bus_dmamap_load(sc->acpi_waketag, sc->acpi_wakemap,
|
2006-06-10 08:20:17 +00:00
|
|
|
(void *)sc->acpi_wakeaddr, PAGE_SIZE, acpi_realmodeinst, sc, 0);
|
2001-07-20 06:07:34 +00:00
|
|
|
}
|