2 #include <reg-82801b.h>
6 static uint16_t _get_PMBASE()
8 static long pmbase = -1;
11 pmbase = pci_read32(ICH2_LPC_BUS, ICH2_LPC_DEV, ICH2_LPC_FN, ICH2_LPC_PCI_PMBASE) & ICH2_PMBASE_MASK;
17 extern unsigned int poke(short addr);
19 int main(int argc, char **argv)
29 res = poke(_get_PMBASE() + 0x04);
30 printf("found %p\n", res);