⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acpi-timer-support

📁 xen虚拟机源代码安装包
💻
字号:
Index: ioemu/hw/piix4acpi.c===================================================================--- ioemu.orig/hw/piix4acpi.c	2007-05-03 19:36:00.000000000 +0100+++ ioemu/hw/piix4acpi.c	2007-05-03 19:46:01.000000000 +0100@@ -24,26 +24,26 @@  */  #include "vl.h"-#define FREQUENCE_PMTIMER  3753425+#define FREQUENCE_PMTIMER  3579545 /* acpi register bit define here  */ -/* PM1_STS 						*/-#define TMROF_STS 	  (1 << 0)-#define BM_STS 	  	  (1 << 4)-#define GBL_STS 	  (1 << 5)-#define PWRBTN_STS 	  (1 << 8)-#define RTC_STS 	  (1 << 10)+/* PM1_STS */+#define TMROF_STS         (1 << 0)+#define BM_STS            (1 << 4)+#define GBL_STS           (1 << 5)+#define PWRBTN_STS        (1 << 8)+#define RTC_STS           (1 << 10) #define PRBTNOR_STS       (1 << 11)-#define WAK_STS 	  (1 << 15)-/* PM1_EN						*/+#define WAK_STS           (1 << 15)+/* PM1_EN */ #define TMROF_EN          (1 << 0) #define GBL_EN            (1 << 5) #define PWRBTN_EN         (1 << 8)-#define RTC_EN   	  (1 << 10)-/* PM1_CNT						*/+#define RTC_EN            (1 << 10)+/* PM1_CNT */ #define SCI_EN            (1 << 0) #define GBL_RLS           (1 << 2)-#define SLP_EN   	  (1 << 13)+#define SLP_EN            (1 << 13)  typedef struct AcpiDeviceState AcpiDeviceState; AcpiDeviceState *acpi_device_table;@@ -53,13 +53,6 @@     uint16_t pm1_control; /* pm1a_ECNT_BLK */ } PCIAcpiState; -static inline void acpi_set_irq(PCIAcpiState *s)-{-/* no real SCI event need for now, so comment the following line out */-/*  pic_set_irq(s->irq, 1); */-    printf("acpi_set_irq: s->irq %x \n",s->irq);-}- static void acpiPm1Control_writeb(void *opaque, uint32_t addr, uint32_t val) {     PCIAcpiState *s = opaque;@@ -132,7 +125,7 @@ {     PCIAcpiState *d = (PCIAcpiState *)pci_dev; -    printf("register acpi io \n");+    printf("register acpi io\n");      /* Byte access */     register_ioport_write(addr + 4, 1, 1, acpiPm1Control_writeb, d);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -